py2exe and OpenGL problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bigredindian@gmail.com

    #1

    py2exe and OpenGL problem

    I am using the new py2exe and python 24. When I run my setup.py, the
    dist seems to generate just fine. However run I run the resulting exe,
    I get an error:

    IOError: [Errno 2] No such file or directory
    'c:\\app\\dist\ \library.zip\\O penGL\\version'

    Now I've tried the recommended route with older py2exes, where I
    exclude OpenGL and copy the entire directory over to my dist, but that
    didn't work. I included "version" into the "OpenGL" directory via my
    setup.py script, and it is there right in the library.zip, but I still
    get the same error.

    Anyone have any ideas or suggections?

    Thanks,
    Patrick

  • Mike C. Fletcher

    #2
    Re: py2exe and OpenGL problem

    Line 13:17 of OpenGL.__init__ .py, replace with:

    try:
    filename = os.path.join(os .path.dirname(_ _file__), 'version')
    __version__ = string.strip(op en(filename).re ad())
    except Exception, err:
    __version__ = '2.0.2.02'

    HTH,
    Mike

    bigredindian@gm ail.com wrote:
    [color=blue]
    >I am using the new py2exe and python 24. When I run my setup.py, the
    >dist seems to generate just fine. However run I run the resulting exe,
    >I get an error:
    >
    >IOError: [Errno 2] No such file or directory
    >'c:\\app\\dist \\library.zip\\ OpenGL\\version '
    >
    >Now I've tried the recommended route with older py2exes, where I
    >exclude OpenGL and copy the entire directory over to my dist, but that
    >didn't work. I included "version" into the "OpenGL" directory via my
    >setup.py script, and it is there right in the library.zip, but I still
    >get the same error.
    >
    >Anyone have any ideas or suggections?
    >
    >[/color]

    --
    _______________ _______________ _______________ ___
    Mike C. Fletcher
    Designer, VR Plumber, Coder



    Comment

    Working...