From: William F. <wil...@gm...> - 2014-10-03 23:23:40
|
Goodnight everyone I'm trying to compile a simple script that uses PySide[1] into an executable with py2exe with the following script[2]. Everything works normal, the generated executable in the "dist" folder along with any files needed: _bz2.pyd _ctypes.pyd _hashlib.pyd _lzma.pyd _socket.pyd _ssl.pyd program.exe pyexpat.pyd PySide.QtCore.pyd PySide.QtGui.pyd PySide.QtNetwork.pyd PySide-python3.4.dll python34.dll QtCore4.dll QtGui4.dll QtNetwork4.dll select.pyd shiboken-python3.4.dll unicodedata.pyd However I would like to generate an executable with .pyd packaged along with the exe, as is done in DropBox and Ninja IDE. For this it is necessary to change ** ** bundle_files option for other values, where two packages the .pyd, the first .pyd and pythonXX.dll or 0 (zero) that wraps all dll and .pyd. Making the change to any of these values py2exe issues a warning that should have used the option 3. Removing this restriction (method hook_PySide in hooks.py) rushes the process usually put the runs does not application issuing the error "zipimport.ZipImportError: can't find module PySide" Examining the executable in 7zip .pyd I noticed that the files were properly incorporated into the "PySide" folder. As commented before Dropbox and Ninja IDE, use PyQt and works. Is there anything I can do to solve this problem ? [1] http://pastebin.com/VMGw4Pze [2] http://pastebin.com/5st6YwAY - William Ferreira |