I'm new to both Trio and Asks so apologies if this is an obvious mistake.
From the docs of Trio and Asks, I thought the following code would work and allow me to asynchronously make a request
import asks
import trio
async def test():
a = await asks.get('https://example.com')
trio.run(test)
But instead it gives me many errors and concludes with AttributeError: module 'trio' has no attribute 'MultiError'
From the documentation I assumed that both libraries are compatible, but perhaps this is incorrect?
trio.MultiErrorhas been removed in newer versions.reference
UPDATE
uninstall the previous version of
anyiousing this commandpip uninstall anyiothen install the compatible version with trio
pip install anyio[trio]then run the script again, you will get an output like this: