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.

Cannot import name 'ASGIInstance'

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
perdycommented, May 29, 2019

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.

1reaction
perdycommented, May 29, 2019

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.

Read more comments on GitHub >

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

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