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.

Update needed for Python 3.8

See original GitHub issue

Hi, A quick information, maybe will save a bit of time for someone.

  1. 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'
  1. This was fixed in the last version of uvloop from GitHub (uvloop 0.14.0.dev0), so compiling from source is fine
  2. 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gvbgduhcommented, Oct 19, 2019

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 the Cython 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.

0reactions
tomchristiecommented, Nov 12, 2019
Read more comments on GitHub >

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

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