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

    Join Date
    Jun 2005
    Posts
    3
    Rep Power
    0

    py2exe problem please help!!!


    I've intalled python 2.3 and its corresponding py2exe utility. I intalled both of them in the same location as required which is Cython23\. Below is my setup.py:

    #setup.py
    from distutils.core import setup
    import py2exe

    setup(name='FileName',
    description="A brief description",
    version='0.0.1',
    scripts=['test.py'])

    ...and I try to execute setup.py using the following command:

    python setup.py py2exe

    ...and I get the following error:

    Traceback (most recent call last):
    File "setup.py", line 3, in ?
    import py2exe
    ImportError: No module named py2exe

    ....why cant it find the py2exe module on my comp?????
  2. #2
  3. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Possibly you didn't install py2exe, or it isn't in the correct path.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    461
    Rep Power
    25
    make sure you get the one for python2.3 or it will not work for python2.3 if you got python2.4
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    3
    Rep Power
    0
    Originally Posted by CyBerHigh
    make sure you get the one for python2.3 or it will not work for python2.3 if you got python2.4
    I have installed the correct version of py2exe. When I installed python 2.3 i installed it in C: python23\ and when I installed the corresponding version of py2exe the installer asked for the directory that python.exe was located in so i again routed the installation to C: python23\. C: python23\ is the path of python.exe. I am still clueless as to why it can't find the py2exe utility?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    3
    Rep Power
    0
    ok. apparently all is well. I was unaware that my script hat to be compiled within the "site-packages" folder that was created when i installed py2exe. thanks for your help!

IMN logo majestic logo threadwatch logo seochat tools logo