DEV Community

Sean Atukorala
Sean Atukorala

Posted on

2

[Solved] 'ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (.../lib/site-packages/typing_extensions.py)'

Problem: Running into the following error when trying to start up a FastAPI app via uvicorn main:app --reload:

ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (.../lib/site-packages/typing_extensions.py)
Enter fullscreen mode Exit fullscreen mode

Solution: Change the installed version of the typing-extensions package to a more recent version such as 4.3.0.

pip install typing-extensions==4.3.0
Enter fullscreen mode Exit fullscreen mode

Note: You can check your current version of this package via the command pip show typing-extensions.

FYI, this solution was done on a Windows machine

Conclusion

Thanks for reading this blog post!

If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Image of Docusign

πŸ› οΈ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay