Missing DLL files when using pyinstaller

Good afternoon!

I am using python 3.5.2 with qt5, pyqt5 and sip14.8. I also use the latest pyinstaller bracketing (3.3.dev0 + g501ad40).

I am trying to create an exe file for the base world hello program.

from PyQt5 import QtWidgets import sys class newPingDialog(QtWidgets.QMainWindow): def __init__(self): super(newPingDialog, self).__init__() self.setGeometry(50, 50, 500, 300) self.setWindowTitle("hello!") self.show() app = QtWidgets.QApplication(sys.argv) GUI = newPingDialog() sys.exit(app.exec_()) 

At first I used some errors regarding crt-msi. So I reinstalled the SDK and C ++ environment and added them to my environment. But now I keep getting errors about missing DLLs (qsvg, Qt5PrintSupport)

 6296 WARNING: lib not found: Qt5Svg.dll dependency of C:\users\me\appdata\local\programs\python\python35\lib\site-pac kages\PyQt5\Qt\plugins\imageformats\qsvg.dll 6584 WARNING: lib not found: Qt5Svg.dll dependency of C:\users\me\appdata\local\programs\python\python35\lib\site-pac kages\PyQt5\Qt\plugins\iconengines\qsvgicon.dll 6992 WARNING: lib not found: Qt5PrintSupport.dll dependency of C:\users\me\appdata\local\programs\python\python35\lib \site-packages\PyQt5\Qt\plugins\printsupport\windowsprintersupport.dll 7535 WARNING: lib not found: Qt5PrintSupport.dll dependency of c:\users\me\appdata\local\programs\python\python35\lib \site-packages\PyQt5\QtPrintSupport.pyd 8245 INFO: Looking for eggs 8245 INFO: Using Python library c:\users\me\appdata\local\programs\python\python35\python35.dll 8246 INFO: Found binding redirects: 

I checked and both dll libraries exist and their PATH set. I also tried manually adding them to the dist folder, but that didn't help.

I appreciate any advice you may have!

+8
source share
7 answers

This may be more like a workaround, and Pyinstaller may need to be fixed.

I found out that the --paths argument pointing to the directory containing Qt5Core.dll, Qt5Gui.dll, etc., helped

 pyinstaller --paths C:\Python35\Lib\site-packages\PyQt5\Qt\bin hello.py 
+18
source

This has now been fixed in the latest PyInstaller development branch, see this issue for PyInstaller on GitHub .

+2
source

I read all the complicated solutions on github and stackoverflow for this problem. However, here is a simple solution that worked for me:

Step 1: pip3 remove pyinstaller

Step 2: install pip pyinstaller

Step 3: pyinstaller --onefile filename.py

I tried this solution on 2 different computers that were facing the same problem. Both worked. Please let me know if this works for you too. Thumbs up will be appreciated after that. Hooray

+1
source

Usually adding --Path directory of argument pointers containing an unreasonable library solves the problem. Perhaps there was a problem if parsing the command line if you are using PyInstaller 3.3dev. This usually happens if the path contains spaces. In this case, you can modify the pathex argument in the pathex file generated by PyInstaller, and then run it with PyInstaller to create the executable.

 pyinstaller file_name.spec 

Hopefully this will be fixed soon .....

0
source

26095 ATTENTION: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency c: \ users \ user \ appdata \ local \ Programs \ python \ python36-32 \ DLLs \ select.pyd

Find in C: the drive for the dll and specify the path in the pyinstaller command. The command below fixed the above pyinstaller error in Windows 10:

 pyinstaller --paths "C:\Windows\WinSxS\x86_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.17134.1_none_50c6cb8431e7428f" hello.py 
0
source

do i have the same problem now? anyone can help what is wrong for this when pyinstaller:

41535 WARNING: library not found: tbb.dll dependency d: \ anaconda3 \ Library \ bin \ mkl_tbb_thread.dll 44204 WARNING: library not found: msmpi.dll dependency d: \ anaconda3 \ Library \ bin \ mkl_blacs_msmpi_ilp64.dll 46134 lib not found: pgf90rtl.dll dependency d: \ anaconda3 \ Library \ bin \ mkl_pgi_thread.dll 46516 WARNING: lib not found: pgc14.dll dependency d: \ anaconda3 \ Library \ bin \ mkl_pgi_thread.dll 46903 WARNING: lib not found: pgf90 .dll dependency d: \ anaconda3 \ Library \ bin \ mkl_pgi_thread.dll 48117 ATTENTION: library not found: msmpi.dll dependency d: \ anaconda3 \ Library \ bin \ mkl_blacs_msmpi_lp64.dll 48503 ATTENTION: library not found: impi.dll dependency d: \ anaconda3 \ Lib rary \ bin \ mkl_blacs_intelmpi_ilp64.dll 58476 WARNING: lib not found: mpich2mpi.dll dependency on d: \ anaconda3 \ Library \ bin \ mkl_blacs_mpich2_lp64.dll 58884 WARNING: library not found: mp.dll dependency d: \ anaconda3 Library \ mkl_blacs_mpich2_ilp64.dll 59305 ATTENTION: lib not found: impi.dll dependency d: \ anaconda3 \ Librar y \ bin \ mkl_blacs_intelmpi_lp64.dll 60808 INFORMATION: Looking for eggs 60809 INFORMATION: Using the Python library d: \ anaconda 608 \ py : Binding redirects found: []

0
source

you can use "pyinstaller --onefile filename.py". The exe file will be created in the dist folder

-1
source

All Articles