Installing Python 232 onto CD-ROM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barry Newberger

    Installing Python 232 onto CD-ROM

    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
  • Chris Liechti

    #2
    Re: Installing Python 232 onto CD-ROM

    Barry Newberger <bnsbp@texas.ne t> wrote in news:bnsbp-
    F285E6.14070206 122003@news.tex as.net:
    [color=blue]
    > Wanted to install Python 2.3.2 for Windows onto a CD-ROM. Problem, my[/color]

    is there a reson to NOT use py2exe ?

    chris

    Comment

    • Mike Huffman

      #3
      Re: Installing Python 232 onto CD-ROM

      > heck the sys.path list and no \lib\site-packages subdirectory. (Running[color=blue]
      > 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.
      >[/color]

      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

      Comment

      • Peter Hansen

        #4
        Re: Installing Python 232 onto CD-ROM

        Chris Liechti wrote:[color=blue]
        >
        > Barry Newberger <bnsbp@texas.ne t> wrote in news:bnsbp-
        > F285E6.14070206 122003@news.tex as.net:
        >[color=green]
        > > Wanted to install Python 2.3.2 for Windows onto a CD-ROM. Problem, my[/color]
        >
        > is there a reson to NOT use py2exe ?[/color]

        Perhaps he wants to run Python itself, and not a specific
        application?

        Comment

        • JanC

          #5
          Re: Installing Python 232 onto CD-ROM

          mike@mhuffman.c om (Mike Huffman) schreef:
          [color=blue]
          > 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[/color]

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

          --
          JanC

          "Be strict when sending and tolerant when receiving."
          RFC 1958 - Architectural Principles of the Internet - section 3.9

          Comment

          Working...