-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
The 'flask-compress' distribution was not found and is required by the application #1606
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
Comments
Thanks @europa502! We're going to need the On my system
But it appears the canonical name is capitalized, and the implication is that on your system only the capitalized version succeeds, in which case the solution is simply to use the capitalized name? Though, if that were the problem you wouldn't be able to run Dash at all on your system, so it sounds rather as though there's something funny about calling |
Only slightly related to the initial issue description, but I can recommend from importlib.metadata import version
version("flask-compress") # == '1.9.0' on my computer |
I built the app again on python 3.6, and it worked like a charm. I face this issue when I try to build it on python 3.9. A similar issue was raised here, but the merged fix didn't work for me. Eventually I had to use the workaround to make it work with python 3.9. I'll try to figure out the root cause this weekend. |
This issue is fixed with the release of cx_Freeze 6.7. Thanks! |
Hey guys, I'm trying to distribute a simple dash app with cx_freeze (updated to 6.7) but still I have this problem or flask-compress not found.
server.py:
setup.py:
What's wrong with my approach? |
hey did you find a solution to this, im running into it as well. Cheers |
Nope :( |
What version of python are you using? |
still having this issue:( |
It originates from pkg_resources.get_distribution, should be updated. |
When using cx_freeze to build a dash app I get the following error-
Here are the versions of dash and flask modules I'm using-
The issue is in this line -
dash/dash/dash.py
Line 53 in 597dc22
I do understand why this could be a problem. When building cx_freeze imports the required packages. Hence, Flask-Compress is imported as flask_compress. While all the imports work well within the built app, when a package is verified with its name.
I dug a little deeper to see if there was any attribute being set in the package that'd help us get the version info simply by importing it into dash.py, but I couldn't find any. I have opened an issue here as well -colour-science/flask-compress#23 (comment)
Please let me know if there is any fix for the cx_freeze issue.
The text was updated successfully, but these errors were encountered: