Update needed for Python 3.8
See original GitHub issueHi, A quick information, maybe will save a bit of time for someone.
- The current version of
uvloop
(0.13.0) does not work at runtime with Python 3.8, it cannot be imported because it uses a method that was removed:
File "uvloop/includes/stdlib.pxi", line 114, in init uvloop.loop
AttributeError: module 'sys' has no attribute 'set_coroutine_wrapper'
- This was fixed in the last version of uvloop from GitHub (uvloop 0.14.0.dev0), so compiling from source is fine
- However, it cannot be installed with uvicorn because of the requirement in its setup.py
ERROR: uvicorn 0.8.6 has requirement uvloop==0.12.*, but you'll have uvloop 0.14.0.dev0 which is incompatible.
In conclusion, to support Python 3.8 and install from PyPi, we need to wait for a new version of uvloop and a new version of uvicorn with updated dependency version.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Python Release Python 3.8.0
Note: The release you're looking at is Python 3.8.0, an outdated release. Python 3.11 is now the latest feature release series of Python...
Read more >How to Upgrade Python to 3.9 { Windows, macOS and Linux}
Upgrade Python with the Installer · 1. In your browser, navigate to the Python Releases for macOS page, on Python's official website. ·...
Read more >When should you upgrade to Python 3.11?
python3.11 -m pip install psycopg2-binary ... pg_config is required to build psycopg2 from source. Please add the directory containing ...
Read more >python - Why do I get an error "[Errno 42] Illegal byte ...
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be...
Read more >Installing Python 3.8 - Cloudera Documentation
Certain services, such as Hue, in CDP 7.1.8 and higher use Python 3.8. You must install Python 3.8 on all the hosts running...
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
It’s getting a bit complicated, there’s no published or tagged version which is
0.14.0dev
. It sits in the master branch dated by Apr, 23 and the actual fix was a bit later. So, it takes an install from a certain commit that also requires bringing theCython
lib to the scope. I have a passing configuration in https://github.com/encode/uvicorn/pull/453. I might be missing a simpler way to approach it, but this one doesn’t look very nice. And I’m still having some difficulties to build it on macOS.Absolutely, yup! https://github.com/encode/uvicorn/pull/485