#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    14
    Rep Power
    0

    Beginner With Py2exe Needs Help


    here is my setup.py:

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

    setup(name="test",
    scripts=["test.py"],
    )

    then when I try to build it, I get this:

    C:\>c:\test\setup.py py2exe -w
    running py2exe
    running build
    running build_script
    error: file 'test.py' does not exist

    But it does exist
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69

    More info..


    Gonna need a lil more info Longhair,

    is test.py in the same directory as setup.py? What else is in there? I'd try entering the full path to test.py in setup.py and see if that works..

    Take care,
    Mark.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    14
    Rep Power
    0
    is test.py in the same directory as setup.py? - yes it is.

    What else is in there? - nothing right now, I am testing it out.

    I'd try entering the full path to test.py in setup.py and see if that works.. I got the same error, but with the path name also now.
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69

    Mmmm


    Strange :S, ok well you gotta be using windows so it can't be a platform thing... Maybe its your Python Version? what version of Python and Py2EXE do you have, also what's in test.py anyway? If theres an error in there then maybe that's what's causing the error. Other than that I have no idea.

    Take care,

    Mark.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    14
    Rep Power
    0
    I ended up d/l'ing py2exe-samples-0.3.1 and tried the same thing and recieved the same errors...

    With nothing to really lose, I changed directories in the command prompt (windows 2K) so it looked like this:

    C:\test>setup.py py2exe

    It worked the way it was suppose to

    I guess the simplest problems are always over looked

    Thank you once again for all your help and fast responces.
  10. #6
  11. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    I guess they are , very welcome longhair.

    Mark

IMN logo majestic logo threadwatch logo seochat tools logo