I am trying to convert a python script to.exe using PyInstaller. The script is converted to an exe without any error logs.
However while running the.exe file am getting ModuleNotFoundError: No module named 'srsly.msgpack.util'
The issue is occurring while opening the exe files generated both by PyInstaller and cx_Freeze. The Screenshot of the error is attached here.
Have tried updating, un-install and re-installing of packages, but still the issue persists.
Versions:
When PyInstaller evaluated your script, it did not predict the dependency on srsly.msgpack.util. You can manually specify dependencies using --hiddenimport
.
pyinstaller --hiddenimport srsly.msgpack.util your_script.py
You may find that fixing this problem just reveals another. You can add as many --hiddenimport
hints as you need.
The issue is mentioned here: https://pypi.python.org/pypi/msgpack/0.5.1
When upgrading from msgpack-0.4 or earlier, don't do pip install -U msgpack-python. Do pip uninstall msgpack-python; pip install msgpack instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.