-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
bugSomething isn't workingSomething isn't working
Description
π Bug
when i start to use uvicorn and fastapi package to implement async script. I've got error in when import pyrdf2vec. Its because this script in pyrdf2vec/init.py:
*the script------------------
(bypass the asyncio.run error for the Notebooks.)
nest_asyncio.apply()
*the error message------------------
site-packages/pyrdf2vec/init.py", line 6, in
nest_asyncio.apply()
ValueError: Can't patch loop of type <class 'uvloop.Loop'>
Expected Behavior
Nothing should happen, and the package was imported successfully
Current Behavior
An error occurred when importing the package, when using the ASGI Uvicorn server
Steps to Reproduce
i just commented this line in pyrdf2vec/init.py
*the script------------------
(bypass the asyncio.run error for the Notebooks.)
(commented) nest_asyncio.apply()
Environment
- **MacOs Sonoma 14.0 **
- **pyRDF2Vec version:0.2.3
- **Python version:3.10
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working