Installing Python 232 onto CD-ROM

  • Thread starter Barry Newberger
  • Start date
B

Barry Newberger

Wanted to install Python 2.3.2 for Windows onto a CD-ROM. Problem, my
high-speed connection is on PC with no CD burner. My solution: install
onto USB removable cartridge, move the cartridge to my "other" computer
and burn image of the cartridge onto the CD. Oh silly me.
Installation onto the cartridge, and so far, so good. Install and runs
hunky-dory from the removable. Burn onto the CD, and launch. Now fails
with an "import site failed" error. After hitting the documentation,
heck the sys.path list and no \lib\site-packages subdirectory. (Running
from the removable, this subdirectory does appear. And the subdirectory
is on both the CD-ROM and removable cartridge.) Add a .pth file with
the subdirectory string. Still no good.

Crying uncle at this point.

TIA,

Barry Newberger
 
M

Mike Huffman

heck the sys.path list and no \lib\site-packages subdirectory. (Running
from the removable, this subdirectory does appear. And the subdirectory
is on both the CD-ROM and removable cartridge.) Add a .pth file with
the subdirectory string. Still no good.

Are you by any chance trying to run the CD-ROM on a Windows 98 system?

Python is case-sensitive with regard to loading modules. However, Windows 98
does not seem to retain Windows 2K/XP case for 8.3 file names.
For example, os.pyc in Windows 2K/XP becomes OS.PYC on Windows 98, and
you typically get a message like " 'import site' failed; use -v for traceback "

Try setting the environment variable PYTHONCASEOK to some non-zero value.
The command
set PYTHONCASEOK=1
worked for me.

Mike Huffman
 
J

JanC

(e-mail address removed) (Mike Huffman) schreef:
Are you by any chance trying to run the CD-ROM on a Windows 98 system?

Python is case-sensitive with regard to loading modules. However,
Windows 98 does not seem to retain Windows 2K/XP case for 8.3 file
names. For example, os.pyc in Windows 2K/XP becomes OS.PYC on Windows
98

That's the default behaviour in Win9x, but you can change it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top