Welcome Guest ( Log In | Register )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
      
 
Reply to this topicStart new topic
Vista + Python = Screwd? Calling python experts!, Trying to compile python script...Vista
MaxHit
post Apr 24 2008, 07:00 PM
Post #1


New Member
*
Posts: 5
OS: windows vista



I need a tutorial on how to turn a .py script into an .exe file using py2exe. Ive tryed windows xp tutorials but i cant get it to work. I have everyhting set up, my setup.py is good and i have my hello.py ready. When i type " start setup.py py2exe" in my DOS window it says "Import Error: No module named py2exe. I think it might be because im running vista. Help please. (Oh and i am not an advanced programmer so try to keep it simple.)
Thx in advanced guys smile.gif

This post has been edited by MaxHit: Apr 24 2008, 07:40 PM
Go to the top of the page
 
+Quote Post
Titan8990
post Apr 25 2008, 03:01 PM
Post #2


Tech Apprentice
Group Icon
Posts: 2,081
From: Louisville, Ky
OS: Windows XP Home, Ubuntu 8.04, Back Track 3, Slackware, Windows Server 2003



I believe this is the tutorial you are looking for: http://www.py2exe.org/index.cgi/Tutorial.
Go to the top of the page
 
+Quote Post
MaxHit
post Apr 25 2008, 04:29 PM
Post #3


New Member
*
Posts: 5
OS: windows vista



Thx for the tut. I followed it twice and still got the same error(When i type " start setup.py py2exe" in my DOS window it says "Import Error: No module named py2exe.).
I think i might not have py2exe insatlled properly, is there a tutorial to install it? Or a way to check if it is installed?
Go to the top of the page
 
+Quote Post
MaxHit
post Apr 25 2008, 04:56 PM
Post #4


New Member
*
Posts: 5
OS: windows vista



Woot! Third times a charm!
I got all the way to where i ran my setup.py...
The error was...
c:\Python25\py2exe-0.6.6>setup1.py py2exe
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'unicodedata'
creating python loader for extension 'bz2'
*** finding dlls needed ***
Traceback (most recent call last):
File "C:\Python25\py2exe-0.6.6\setup1.py", line 4, in <module>
setup(console=['hello.py'])
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Users\Daniel Favor\Desktop\Caleb\py2exe-0.6.6\py2exe-0.6.6\py2exe\bui
ld_exe.py", line 223, in run
File "C:\Users\Daniel Favor\Desktop\Caleb\py2exe-0.6.6\py2exe-0.6.6\py2exe\bui
ld_exe.py", line 283, in _run
File "C:\Users\Daniel Favor\Desktop\Caleb\py2exe-0.6.6\py2exe-0.6.6\py2exe\bui
ld_exe.py", line 367, in find_dlls
File "C:\Users\Daniel Favor\Desktop\Caleb\py2exe-0.6.6\py2exe-0.6.6\py2exe\bui
ld_exe.py", line 925, in find_dependend_dlls
ImportError: No module named py2exe_util


I think it might be because i didnt install my py2exe properly, how do you install?(There is no installer in derectory)

This post has been edited by MaxHit: Apr 25 2008, 06:11 PM
Go to the top of the page
 
+Quote Post
MaxHit
post Apr 26 2008, 10:37 AM
Post #5


New Member
*
Posts: 5
OS: windows vista



Well i assumed that i had to run setup.py thats in py2exe folder to install it... BUT, it get this error

error: Python was built with visual studio 2003;
visual studio was not found on your computer. If you have cygwin installed compile with ming32, by passing "c- ming32" to setup.py.

i shortend it a bit but has all important things

Anyway i went out to download visual studio...I downloaded VS 2005 and tryed again! Same error.
Do i need the 2003 version?

Man this is so weird and messed up need help plz guys.
(Sry for triple post tongue.gif)
Go to the top of the page
 
+Quote Post
MaxHit
post Apr 27 2008, 09:36 PM
Post #6


New Member
*
Posts: 5
OS: windows vista



I have everythin setup...When i run my setup.py i get this.(Im running vista)
I have found this same error posted on 5 different forums without answer.
If somone could figure this our i think it would be very helpful for many people.
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'unicodedata'
creating python loader for extension 'bz2'
*** finding dlls needed ***
Traceback (most recent call last):
File "C:\Users\Daniel Favor\Desktop\mycode\setup.py", line 4, in <module>
setup(console = ["hello.py"])
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 223, in run
self._run()
File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 283, in _run
dlls = self.find_dlls(extensions)
File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 367, in find_dl
ls
self.dll_excludes)
File "C:\Python25\lib\site-packages\py2exe\build_exe.py", line 925, in find_de
pendend_dlls
import py2exe_util
ImportError: DLL load failed with error code 193
(Window pops up saying)
C:\python25\site-packages\py2exe\py2exe_util.pyd is either not designed to run on windos or it contains an error.
Try installing the program again using the original installation media or contact you system admin or software vendor for support.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts  
12 / 771 4th June 2007 - 04:21 PM
hypnoticstate started - last by hypnoticstate
No New Posts  
6 / 685 7th July 2007 - 04:59 PM
ummmm started - last by troy
No New Posts  
2 / 581 24th August 2007 - 09:09 AM
Matt L started - last by Matt L
No New Posts  
6 / 306 24th June 2008 - 07:14 PM
Woodyuk started - last by Makaveli213
No New Posts
2 / 80 17th August 2008 - 05:14 PM
okiflowa started - last by Rorschach112

RSS Time is now: 6th September 2008 - 10:09 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.