importError: cannot import name Module
See original GitHub issuewhen using flask-uploads, the following is occurred. (for security problem, I removed folder names of my project with xxxx) Also, I am using Flask 0.11.dev.
Could you please investigate this issue ? Maybe… “Module” could be removed or not ?
File "/Users/xxxx/venv/xxxx/lib/python2.7/site-packages/flask/exthook.py", line 81, in load_module
reraise(exc_type, exc_value, tb.tb_next)
File "/Users/xxxx/venv/xxxx/lib/python2.7/site-packages/flask_uploads.py", line 24, in <module>
from flask import current_app, Module, send_from_directory, abort, url_for
ImportError: cannot import name Module
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
What can I do about "ImportError: Cannot import name X" or ...
it has no content). Once the circularly dependent modules are compiled it updates the imported module. This is works something like this. a...
Read more >How to Fix : “ImportError: Cannot import name X” in Python
In Python "ImportError: cannot import name" error generally occurs when the imported class is not accessible, or the imported class is in a...
Read more >How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >ImportError: cannot import name X in Python [Solved]
The Python "ImportError: cannot import name" often occurs when we have circular imports (importing members between the same files). To solve the error,...
Read more >[Solved] ImportError: Cannot Import Name - Python Pool
ImportError occurs when a file cannot load the module, its classes, or methods in a python file. Now, there may be several reasons...
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
Yep this is fixed on master. We just need to do a release. Hang tight.
I used the following to fix it:
sudo sed -i 's/app, Module,/app,/' /usr/local/lib/python2.7/dist-packages/flask_uploads.py
Any schedule for when the new release will be available on PyPi?