edgedb-python test fails with uvloop 0.15.0
See original GitHub issue- EdgeDB Version: 1.0-alpha.8+dev.5432.g931252366.d20210212
- OS Version: macOS 11.2.1 / Darwin 20.3.0
This is reproducible without edgedb/uvloop using a Cython script, which illustrates how edgedb/uvloop 0.15 run:
import contextvars
cdef class P:
cdef object t
def __init__(self, t):
self.t = t
def run(self):
self.t.clear()
t = self.t # segfault: self.t is NULL
cdef class T:
cdef:
object _p, _run
def __init__(self):
self._p = P(self)
self._run = self._p.run
def clear(self):
self._p = None
self._run = None
cdef main(T tt):
ctx = contextvars.copy_context()
ctx.run(tt._run)
if __name__ == '__main__':
t = T()
main(t)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
uvloop build failed on Python 3.8 · Issue #277 - GitHub
Two days ago new stable Python version 3.8.0 has been released. Today I updated test matrix for one of my projects and noticed...
Read more >pip install uvloop causes permission denied error
I try to install uvloop into a Python 3.9 venv on CentOS 7. These are all actions I take: cd ~ mkdir python_envs...
Read more >uvloop - PyPI
uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood....
Read more >uvloop - piwheels
The piwheels project page for uvloop: Fast implementation of asyncio event loop on top of libuv.
Read more >1718390 – python3-uvloop fails to import with Python 3.8
Bug 1718390 - python3-uvloop fails to import with Python 3.8 ... This makes "python-sanic" (which imports uvloop during tests) fail to build for...
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 Free
Top 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
Seems like asyncio in Python 3.11 has a similar issue? https://github.com/MagicStack/uvloop/runs/7822201198?check_suite_focus=true#step:7:768
@fantix, check upstream master branch/issues too. It is likely that they’ve fixed this already, just haven’t released.