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.

nest_asyncio is not added in pyproject.toml

See original GitHub issue

🐛 Bug

Hi all,

my installation from source throws the following Error:

Current Behavior

Traceback (most recent call last):
  File "playground.py", line 3, in <module>
    from pyrdf2vec import RDF2VecTransformer
  File "/home/mblum/anaconda3/envs/rdf2vec/lib/python3.8/site-packages/pyrdf2vec/__init__.py", line 1, in <module>
    import nest_asyncio
ModuleNotFoundError: No module named 'nest_asyncio'

Steps to Reproduce

  1. conda create --name rdf2vec python=3.8
  2. conda activate rdf2vec
  3. git clone https://github.com/IBCNServices/pyRDF2Vec.git
  4. cd pyRDF2Vec/
  5. pip install .
  6. pip install pandas
  7. python playground.py (getting started example)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
GillesVandewielecommented, Feb 2, 2022

Thank you so much @rememberYou ❤️ ! This is greatly appreciated.

0reactions
rememberYoucommented, Feb 2, 2022

It’s weird that you have to install nest_asyncio, because the nest-asyncio package is already specified as a dependency with pyRDF2Vec. To prevent this problem from happening again, I also specified nest_asyncio, as suggested (cf. b95f6dc5420bed2b94e12ddb3d4ee1cb11c2cb05), which like nest-asyncio is in itself a temporary package that can be removed in the future.

I also created a docker-compose and a Dockerfile file for installing these dependencies with poetry and otherwise facilitating pyRDF2Vec contributions (cf. 2ea1af9af50f61e0d851ee08fe1f94073e33122c). With a simple command, a Jupyter notebook with the dependencies already installed can now be used 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

nest_asyncio is not added in pyproject.toml - Issues Antenna
It's weird that you have to install nest_asyncio , because the nest-asyncio package is already specified as a dependency with pyRDF2Vec. To ...
Read more >
erdewit/nest_asyncio: Patch asyncio to allow nested event loops
By design asyncio does not allow its event loop to be nested. This presents a practical problem: When in an environment where the...
Read more >
nest-asyncio - PyPI
Introduction. By design asyncio does not allow its event loop to be nested. This presents a practical problem: When in an environment where...
Read more >
PIP Failure to satisfy dependencies that are listed as available
1 Answer 1 ; # Done with fresh Python env, installs latest > pip install "ipykernel != 6.9.*, != 6.10.*, != 6.11.*, !=...
Read more >
error: could not build wheels for scikit-image, which is required ...
PinApp is added to “For Me” ... error error: subprocess-exited-with-error × Building wheel for slycot (pyproject.toml) did not run successfully.
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