Cannot import name 'ASGIInstance'
See original GitHub issueHi there,
when trying out the example in the README, I get a strange import error for the typing module:
Traceback (most recent call last):
File "D:/projects/autogram/autogram/api/registrations.py", line 3, in <module>
from flama.applications import Flama
File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\applications.py", line 12, in <module>
from flama.injection import Injector
File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\injection.py", line 8, in <module>
from flama.components.validation import VALIDATION_COMPONENTS
File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\components\validation.py", line 13, in <module>
from flama.routing import Route
File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\routing.py", line 10, in <module>
from starlette.types import ASGIApp, ASGIInstance, Receive, Scope, Send
ImportError: cannot import name 'ASGIInstance'
Am I missing something?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >What can I do about "ImportError: Cannot import name X" or ...
physics.py is imported from entity before class Ent is defined and physics tries to import entity that is already initializing. Remove the dependency...
Read more >How do I fix the ImportError: cannot import name 'delayed'?
I am using the LORAS package from pyloras for imbalanced learning, but it requires importing the delayed package. I used the pip.main() to ......
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 eliminating ...
Read more >ImportError: cannot import name FIFOCache - Prodigy Support
Hi everyone; I installed the latest prodigy version 1.11.7 inside a conda environment, Linux x86-x64 & python 3.7.3 and I cant start the ......
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
I’m working on a big update and those conflicts should be fixed there, but maybe it could be a good point doing a minor upgrade fixing the requirements versions so I’ll take a look when I have some free time.
It is because Starlette did some changes under
types
module on version 0.12 and I need to do some work to adapt it. You could use Starlette 0.11 until I push a new version fixing it.