question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

importError: cannot import name Module

See original GitHub issue

when 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:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
maxcountrymancommented, Jun 15, 2016

Yep this is fixed on master. We just need to do a release. Hang tight.

0reactions
proximouscommented, Jul 8, 2016

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found