does not work with PyInstaller
See original GitHub issueI wanted to use the nicer traceback of this application for one of my projects. Unfortunately I can’t get this to run on Windows. I have to put the application into an exe and get problems with the import of rich. Once I insert this source code into my program, I cannot start it after the packing process.
from rich.traceback import install
install()
I get the following error message on the console.
Traceback (most recent call last):
File "venv\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 13, in <module>
import pkg_resources as res
File "c:\users\vmuser\pycharmprojects\logdings\venv\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
exec(bytecode, module.__dict__)
File "lib\site-packages\pkg_resources\__init__.py", line 86, in <module>
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
[5020] Failed to execute script pyi_rth_pkgres
Since @pyinstaller is a very big project, I wanted to ask here first how to get it running.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
PyInstaller .exe file not working - Stack Overflow
Show activity on this post. Try to open command prompt and drag exe into it and press enter, that way you will catch...
Read more >When Things Go Wrong — PyInstaller 5.7.0 documentation
PyInstaller sometimes terminates by raising a Python exception. In most cases the reason is clear from the exception message, for example “Your system...
Read more >How to use PyInstaller to create Python executables - InfoWorld
The most common reason a PyInstaller package fails is that PyInstaller failed to bundle a required file. Such missing files fall into a...
Read more >Vosk does not work with pyinstaller · Issue #602 - GitHub
Hi, I could make a script that works as a py file, but when I try to run pyinstaller to get an exe...
Read more >Using PyInstaller to Easily Distribute Python Applications
The most common problem you'll see is ImportError exceptions if PyInstaller couldn't properly detect all your dependencies. As mentioned before, this can happen ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for wishing good luck… it helped. The answer ist to downgrade setuptools. https://github.com/pypa/setuptools/issues/1963#issuecomment-573675633
Good luck. Google is your friend. If you find a solution, post it here for future developers!