[PyQt] pyinstaller and images
umbe1987
umbertofilippo at tiscali.it
Thu Oct 27 11:18:07 BST 2016
Coming back to this saying that in the build directory I found an
"warn[app_name]" txt with the content below. Apparently, Pyinstaller wasn't
able to find SIP (which ASAIK is shipped with PyQt5)?
I installed PyQt5 using 'pip' within my conda virtualenv, and listing the
packages installed within this environment I can clearly see there are both
PyQt5, Qt5, and SIP.
Then I 1) ran "pyi-makespec </path/to/my_app>.py" to generate the .spec
file; 2) changed it by adding the image and sound folders I needed, and; 3)
I ran "pyinstaller <my_app>.spec".
The way I modified the .spec file was adding a list of tuples variable like:
added_files = [
( 'C:\\Users\\minorau\\Desktop\\personale\\memory_game\\sound',
'sound' ),
( 'C:\\Users\\minorau\\Desktop\\personale\\memory_game\\img', 'img'
)
]
and updating the 'datas' argument value from "datas = []" to "datas =
added_files". In the 'dist' folder, I can see both the 'img' and the 'sound'
folder with their content.
Here is the "warn[app_name].txt".
missing module named 'PyQt5.sip' - imported by
C:\Umberto\Miniconda3\envs\pyqt_apps\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py
missing module named resource - imported by posix,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named posix - imported by os,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named _posixsubprocess - imported by subprocess,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named 'org.python' - imported by pickle,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py, xml.sax
missing module named readline - imported by cmd, code, pdb,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
excluded module named _frozen_importlib - imported by importlib,
importlib.abc, C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named _frozen_importlib_external - imported by
importlib._bootstrap, importlib, importlib.abc,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named _winreg - imported by platform,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named _scproxy - imported by urllib.request
missing module named java - imported by platform,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named 'java.lang' - imported by platform,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py,
xml.sax._exceptions
missing module named vms_lib - imported by platform,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named termios - imported by tty,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py, getpass
missing module named grp - imported by tarfile, shutil,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named pwd - imported by posixpath, tarfile, shutil,
http.server, webbrowser,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py, netrc, getpass
missing module named ce - imported by os,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named _dummy_threading - imported by dummy_threading,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
missing module named org - imported by copy,
C:\Users\minorau\Desktop\personale\memory_game\memory_04.py
--
View this message in context: http://python.6.x6.nabble.com/pyinstaller-and-images-tp5202126p5202247.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list