New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg_resources.DistributionNotFound: #4809
Comments
Odd... This is a PyInstaller environment error. Can you build with |
Below is the output of I also got it to work by modifing the import pkg_resources
from .python3_compat import iterkeys, iteritems, Mapping, u
__version__ = pkg_resources.get_distribution('munch').version
VERSION = tuple(map(int, __version__.split('.')[:3])) # import pkg_resources
from .python3_compat import iterkeys, iteritems, Mapping, u
# __version__ = pkg_resources.get_distribution('munch').version
__version__ = '1.0.1'
VERSION = tuple(map(int, __version__.split('.')[:3])) Debug output:
|
@JulianS-Uni hmm.
And inside the hook:
Then build: |
That did it! Thank you very much! |
just a correction for anybody that's using this fix - there's a missing letter in the last command ( so the whole, corrected command is: |
pkg_resources.DistributionNotFound: The 'metpy' distribution was not found and is required by the application I tried the above solution for a different package metpy but I am getting NotImplementedError: Can't perform this operation for unregistered loader type
After making the changes suggest above this is the output I am getting .
|
Please open a new issue. |
I am trying to make an .exe out of my script. I am importing the module munch . See the minimal example program. When I execute
pyinstaller -F main.py
it runs fine. But when I try to execute the .exe in a terminal it shows me the error message below. When i dont importmunch
it works fine.Can someone help me writing a hook or has other help how to fix this?
pyinstaller --version
:3.6
3.7.7 32bit
A minimal example program which shows the error
Stacktrace / full error message
The text was updated successfully, but these errors were encountered: