D
D
doktorfish00782021-03-24 15:27:36
Python
doktorfish0078, 2021-03-24 15:27:36

How to get rid of Error Phyton DLL LoadLibrary: The specified module could not be found?

There is an application on pyqt5.
The architecture is next

Folder location screenshot

605b2c41bb94e221581038.png
  1. в converted_forms_to_py хранятся файлы конвертированные из .ui в .py
  2. в forms_ui файлы .ui(формы сделанный в qt designer)
  3. в images картинки разных расширений, сгруппированы по папкам для каждой формы,где используются
  4. в password generator хранится exe файл,который генерирует пароль для использования приложения(не суть важно)
  5. в py_code_labs хранятся файлы .py, в которых подтягиваются конвертированные формы и запускают приложение и его логику
  6. в svg_widgets хранятся .py файлы с кодом реализации swg виджетов(тоже не суть)


The application is built using PyInstaller with the following line on the command line
"pyinstaller --clean --onefile --noconsole --icon=log.ico --name="Simulation Of Laboratory Works" py_code_labs\authorization.py".
We get an exe file after the build, everything is cool, which is what we need. We start, everything is wonderful, everything works. But no. It works for me, from a computer, from a laptop, from a colleague, from a former PC. But it does not work for the customer with an error when starting Error Phyton DLL LoadLibrary: the specified module was not found.
I refer to the fact that they do not have Python on the PC, although PyInstaller installs it with all the libraries in the exe file, because before that, in the PyInstaller line, the project was not OneFile and had the following architecture of the assembled application
Everything is available
605b2f84a35c3259882077.png

We made an installer, added the installation of Python 3.9 to the user's PC. Those. the application is installed and offers to install python. The customer says it still doesn't work.
Lord, how to overcome this, there are no nerves left. What is the problem? There is a python library, it is added by PyInstaller!
Something like this, sorry for the quality
605b318d85d87884119429.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
doktorfish0078, 2021-03-27
@doktorfish0078

It's decided. The customer has win 7 64bit. The project is built on python 3.9. As it turned out, 3.9 does not support Windows 7. The project was rebuilt on python 3.7. As long as the flight is normal, there is no error.

E
Evgeniy _, 2021-03-24
@GeneD88

You, the former, may have Microsoft Visual C++ installed on another computer. Has it been installed by the customer?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question