#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    8
    Rep Power
    0

    Py2exe .exe Error


    I got my exe file to come in the dist folder but the problem is when i try to run the program i get a error saying
    (most recent call last):
    File "opengl1.pyw", line 4, in ?
    File "OpenGL\__init__.pyc", line 18, in ?
    File "OpenGL\__init__.pyc", line 14, in __set_attributes
    IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\files\\My Documents\\Python\\code\\dist\\library.zip\\OpenGL\\version'

    Im not to sure what to do with this problem, any help would be very greatful. Thankyou
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    I don't know the OpenGL module but perhaps you could explicitly include the version module - the py2exe site explains how.

    grimey
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    8
    Rep Power
    0

    ?


    well thx for the help but i am kind of new to python and the wiki and have no clue what so ever to look for
  6. #4
  7. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    Thomas Heller himself has tried to help on this issue...
    http://aspn.activestate.com/ASPN/Mail/Message/py2exe-users/2129230

    The Python OpenGL site suggests a work around...
    http://pyopengl.sourceforge.net/documentation/py2exe.html
    but this may not work with py2exe 0.5 - let us know how you get on.

    grimey
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    8
    Rep Power
    0
    ok i did the --exclude Opengl and then copy and pasted all the files that i need and now i get
    Traceback (most recent call last):
    File "opengl1.pyw", line 4, in ?
    zipimport.ZipImportError: can't decompress data; zlib not available

IMN logo majestic logo threadwatch logo seochat tools logo