Hi All, I have been using McMillan Installer and then PyInstaller Snapshot for a while to create binary distributions of wxPython applications. Some of them also use Twisted. All worked fine. Until now. I am now trying to use PySNMP. The application runs fine under Pyon and I can build an executable with PyInstaller. However, the resulting executable does not succeed when importing the PySNMP files.
I am using PySNMP 4.16a (http://sourceforge.net/project/showfiles.php?group_id=14735&package_id=60747&release_id=419848). That version places everything under a v4 sub-directory and PySNMP __init__.py file installs v4 as the package. Since I though that could be the problem, I moved all of .../site-packages/pysnmp/v4 into .../site-packages/pysnmp. The resulting application works just as well, and again I can build an executable. The resulting application also fails in the import of pysnmp. I am using: - PyInstaller 1.2 - Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] - ASN.1 Library for Python (ASN.1 v0.0.5a) - PySNMP 4.1.6.a - Twisted 2.4 for Python 2.4 - wxPython 2.6.3.2 My application is called vsm.py and I am trying to turn it into vsm.exe I run: python Makespec.py -c --icon=d:\dev/cv/vsm/vsm.ico d:\dev\cv\vsm\vsm.py python Build.py vsm/vsm.spec The vsm.spec is:: #------------- a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), 'd:\\dev\\cv\\vsm\\vsm.py'], pathex=['c:\\pyinstaller_1.2']) pyz = PYZ(a.pure) exe = EXE(pyz, a.scripts, exclude_binaries=1, name='buildvsm/vsm.exe', debug=False, strip=False, upx=False, console=True , icon='d:\\dev\\cv\\vsm\\vsm.ico') coll = COLLECT( exe, a.binaries, strip=False, upx=False, name='distvsm') #----------- The result is:: C:\pyinstaller_1.2\vsm>cd buildvsm C:\pyinstaller_1.2\vsm\buildvsm>ls out0.toc out1.pyz out1.toc out2.toc out3.pkg out3.toc out4.toc vsm.exe C:\pyinstaller_1.2\vsm\buildvsm>b *.toc C:\pyinstaller_1.2\vsm\buildvsm>cd ..\distvsm C:\pyinstaller_1.2\vsm\distvsm>ls Crypto.Cipher.DES.pyd _bsddb.pyd ssleay32.dll win32process.pyd wx._windows_.pyd MFC71.DLL _socket.pyd unicodedata.pyd win32security.pyd wxmsw26uh_vc.dll MSVCR71.dll _ssl.pyd vsm.exe win32trace.pyd xml.parsers.pyexpat.pyd NETAPI32.dll _win32sysloader.pyd win32api.pyd win32ui.pyd xml.parsers.sgmlop.pyd OpenSSL.SSL.pyd bz2.pyd win32event.pyd winsound.pyd zlib.pyd OpenSSL.crypto.pyd libeay32.dll win32file.pyd wx._controls_.pyd zope.interface._zope_interface_coptimizations.pyd OpenSSL.rand.pyd python24.dll win32gui.pyd wx._core_.pyd PyWinTypes24.dll pythoncom24.dll win32help.pyd wx._gdi_.pyd SHLWAPI.dll select.pyd win32pipe.pyd wx._misc_.pyd C:\pyinstaller_1.2\vsm\distvsm>vsm.exe Traceback (most recent call last): File "<string>", line 219, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/vsm_app", line 219, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/mainframe", line 714, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/vstreamlist", line 385, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/vstream", line 366, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/ptzCreator", line 143, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/ptzpmpp", line 101, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/pysnmp.entity.rfc3413.oneliner.cmdgen", line 7, in ? File "c:\pyinstaller_1.2\iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "c:\pyinstaller_1.2\iu.py", line 398, in doimport exec co in mod.__dict__ File "vsm\buildvsm\out1.pyz/pyasn1", line 19, in ? WindowsError: [Errno 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\pyinstaller_1.2\\vsm\\distvsm\\vsm.exe?90112/*.*' -------------------- I don't see any PySNMP specific files in the list of dlls inside distvsm directory and the import fails. Am I missing something? Thanks in advance for any help. -- Pierre Rouleau _______________________________________________ PyInstaller mailing list [email protected] http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller
