Hi all, Trying to package jpype ( http://sourceforge.net/projects/jpype/ ) in a test app as a single file exe but I'm getting an error (Windows 7 64 bit, 32 bit Python in a virtualenv). The below is from the"Latest development code" link from http://www.pyinstaller.org/ but it seems out of date? (v2.0-695...). Same result with the 2.1 release and the latest from Github (except the WARNING is gone in the 2.1 released version?):
C:\SVNRepo\projects-sw\Agile_db\trunk\virtenv\src\dist>AgileTest-0.0.1.exe WARNING: file already exists but should not: C:\Temp\_MEI77882\include\pyconfig.h Traceback (most recent call last): File "<string>", line 33, in <module> File "c:\temp\easy_install-e_dss0\JPype-0.5.4.2-py2.7-win32.egg.tmp\jpype\__init__.py", line 17, in <module> File "c:\temp\easy_install-e_dss0\JPype-0.5.4.2-py2.7-win32.egg.tmp\jpype\_jpackage.py", line 18, in <module> File "c:\temp\easy_install-e_dss0\JPype-0.5.4.2-py2.7-win32.egg.tmp\_jpype.py", line 7, in <module> File "c:\temp\easy_install-e_dss0\JPype-0.5.4.2-py2.7-win32.egg.tmp\_jpype.py", line 6, in __bootstrap__ ImportError: DLL load failed: The specified module could not be found. I opened up JPype-0.5.4.2-py2.7-win32.egg (which is showing up in _MEI77882\eggs), pulled out _jpype.pyd and added it as a data_file in my spec and the exe now runs (still with the WARNING). This was the line in _jpype.py that caused me to try this: __file__ = pkg_resources.resource_filename(__name__,'_jpype.pyd') I'm running into the limits of my Python/programming knowledge but it seems like this should be something that pyinstaller could handle? Maybe with a hook file though that only talks about imports? Also, I first had a pkg_resources error but I put in an "import pkg_resources" in my app and it went away... Thanks, Eric -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/groups/opt_out.
