The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Beginner With Py2exe Needs Help
Discuss Beginner With Py2exe Needs Help in the Python Programming forum on Dev Shed. Beginner With Py2exe Needs Help Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 11th, 2003, 04:59 AM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 14
Time spent in forums: < 1 sec
Reputation 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 
|

June 11th, 2003, 05:51 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
|
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.
|

June 11th, 2003, 08:19 AM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 14
Time spent in forums: < 1 sec
Reputation 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.
|

June 11th, 2003, 11:38 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
|
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.
|

June 11th, 2003, 02:29 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 14
Time spent in forums: < 1 sec
Reputation 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.
|

June 11th, 2003, 02:42 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
I guess they are  , very welcome longhair.
Mark
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|