Quantcast

Jump to content


Photo

Py2EXE Problems!

py2exe python

  • Please log in to reply
4 replies to this topic

#1 ChristianCareaga

ChristianCareaga
  • 40 posts

Posted 19 August 2013 - 11:54 PM

Okay, so i pretty much despise Py2EXE because i have not once successfully compiled a program 

 

so can anyone help me with py2exe im trying to compile my Inventory Manager so i can have Neoquest test it out but i cant seem to get it compiled (his BeautifulSoup isnt working so im making it an exe )

 

so he gave me his setup.py to make one exe with no dependencies and i run it and get an error that says i dont have a dll so i found the dll on my hard drive and put it in the same directory then when i run it i get this Traceback:

 


 
Traceback (most recent call last):
  File "C:\Python27\setup.py", line 26, in <module>
    py_exe(filenameyeah)
  File "C:\Python27\setup.py", line 23, in py_exe
    console = [{'script': filenameyeah}])
  File "c:\python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "c:\python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 243, in run
    self._run()
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 312, in _run
    self.create_binaries(py_files, extensions, dlls)
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 525, in create_binaries
    self.copy_dlls(dlls)
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 447, in copy_dlls
    self.copy_dlls_bundle_files(dlls)
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 497, in copy_dlls_bundle_files
    self.patch_python_dll_winver(dst)
  File "c:\python27\lib\site-packages\py2exe\build_exe.py", line 1008, in patch_python_dll_winver
    add_resource(unicode_name, mfest, RT_MANIFEST, 2, False)
RuntimeError: EndUpdateResource: The system cannot open the device or file specified.
then i run it again and i dont get this error everything goes right and an exe is created but then when  try to run the exe it shows the command prompt then nothing else then it closes
 
can someone please help me out with this!!!!

Edited by ChristianCareaga, 19 August 2013 - 11:56 PM.


#2 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 August 2013 - 01:40 AM

console = [{'script': filenameyeah}])

 

filenameyeah is your script file? O_o



#3 ChristianCareaga

ChristianCareaga
  • 40 posts

Posted 20 August 2013 - 03:45 AM

console = [{'script': filenameyeah}])
 
filenameyeah is your script file? O_o


Yeah it's a variable it gets assigned when the user is prompted for the file name

#4 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 August 2013 - 03:49 AM

Yeah it's a variable it gets assigned when the user is prompted for the file name

 

From the error message it sounds like the file isn't getting found.



#5 ShadowLink64

ShadowLink64
  • 16735 posts


Users Awards

Posted 20 August 2013 - 10:25 AM

Why not post your setup.py script so we can figure out why it's not compiling? :p

 

Or, use PyInstaller.





Also tagged with one or more of these keywords: py2exe, python

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users