Menu

#2 installer does not see current Pythons

closed
None
5
2001-01-04
2000-12-23
No

Discussion

  • Nobody/Anonymous

    Logged In: YES
    user_id=20580
    Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)

    I downloaded PyOpenGL-1.5.6b1.win32-py1.5.2.exe and
    executed it on my Windows NT 4.0 machine. When the
    installer displays the "select python installation to
    use" screen it fails to list anything and I am
    blocked, even though I have both Python 1.5.2 and 1.6
    installed, along with whatever Python comes with Zope
    2.2. What can I do now to install PyOpenGL?

     
  • Rene Liebscher

    Rene Liebscher - 2001-01-04
    • assigned_to: nobody --> rliebscher
    • status: open --> closed
     
  • Nobody/Anonymous

    Logged In: YES
    user_id=28463
    Browser: Mozilla/4.7 [en] (X11; I; AIX 4.3)

    Meanwhile I found out what is wrong.
    The Windows installers relies on two registry entries,
    but if Python is not correctly installed in the registry
    it is not found.

    To add these registry entries write the following code in a
    file
    (reg.py):
    ##########################################################
    # these entries are necessary for the
    distutils-Windows-installer
    reg_data = """REGEDIT4

    [HKEY_LOCAL_MACHINE\Software\Python]

    [HKEY_LOCAL_MACHINE\Software\Python\PythonCore]

    [HKEY_LOCAL_MACHINE\Software\Python\PythonCore\$VERSION]

    [HKEY_LOCAL_MACHINE\Software\Python\PythonCore\$VERSION\InstallPath]
    @="$PYTHON"
    """

    import sys,string

    reg_data =
    string.replace(reg_data,"$VERSION",sys.version[0:3])
    reg_data =
    string.replace(reg_data,"$PYTHON",string.replace(sys.prefix,"\\","\\\\"))

    print reg_data
    ##########################################################

    Then call it with 'python reg.py >python.reg' and double
    click
    on python.reg. This will install the registry entries
    necessary for
    the Windows installer.
    (You can also import this file with regedit or type 'start
    python.reg'
    at the command line.)

    !!! It doesn't install all registry entries which are
    usually made by
    Python,
    but it should be enough to get distutils windows installer
    to work.

     
  • Nobody/Anonymous

    Hi! I've been following your web site for a long time now and finally got the courage to go ahead and give you a shout out from Porter Texas! Just wanted to mention keep up the excellent job!
    north face jackets cheap http://htrztbfdid.devhub.com/

     

Log in to post a comment.