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 Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay