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.

ValueError: The async backend curio is not currently supported.

See original GitHub issue

When trying to run the pubsub example I get the following error:

Task Crash: Task(id=6, name='client', state='TERMINATED')
Traceback (most recent call last):
  File "/home/logi/.virtualenvs/nng/lib/python3.7/site-packages/curio/kernel.py", line 737, in kernel_run
    trap = current.send(current._trap_result)
  File "/home/logi/.virtualenvs/nng/lib/python3.7/site-packages/curio/task.py", line 167, in send
    return self._send(value)
  File "/home/logi/.virtualenvs/nng/lib/python3.7/site-packages/curio/task.py", line 171, in _task_runner
    return await coro
  File "pubsub.py", line 35, in client
    msg = await sock.arecv_msg()
  File "/home/logi/.virtualenvs/nng/lib/python3.7/site-packages/pynng/nng.py", line 643, in arecv_msg
    with _aio.AIOHelper(self, self._async_backend) as aio:
  File "/home/logi/.virtualenvs/nng/lib/python3.7/site-packages/pynng/_aio.py", line 150, in __init__
    .format(async_backend)
ValueError: The async backend curio is not currently supported.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
codypiersallcommented, Jan 25, 2021

@geronimo-iia Oh, thank you for the reminder, I totally forgot that you wrote some support for this! I have no idea what I was doing in October. Funny thing is that I even linked to #74, your PR, when I meant to link to #23

@logileifs can you test this on master?

0reactions
codypiersallcommented, Mar 29, 2021

Should work now with the new release!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the sniffio.current_async_library function in sniffio
The current thread must not be already running an event loop. ... _aio_helper_map: raise ValueError( 'The async backend {} is not currently supported....
Read more >
sniffio.current_async_library Example - Program Talk
Event() if curio and current_async_library() == 'curio': return curio. ... raise ValueError( 'The async backend {} is not currently supported.
Read more >
Release 3.6.1.post82 Alex Grönholm
AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio or trio. It implements.
Read more >
Anyio: all you need for async programming stuff
curio: A simple and pleasant async library which tried to keep as much as ... curio is no longer supported due to some...
Read more >
Using async and await — Flask Documentation (2.2.x)
If you encounter something like ValueError: set_wakeup_fd only works in main ... Flask extensions predating Flask's async support do not expect async views....
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