Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails to install all depencies #68

Open
jacobwjs opened this issue Apr 7, 2022 · 4 comments
Open

pip install fails to install all depencies #68

jacobwjs opened this issue Apr 7, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jacobwjs
Copy link

jacobwjs commented Apr 7, 2022

🐛 Bug

Installing into a fresh conda environment fails to install all dependencies using pip

Expected Behavior

pip install pyRDF2vec will install all requirements to get up and running in a custom environment

Current Behavior

pip install succeeds, but trying to import pyrdf2vec fails due to unmet dependencies.

Steps to Reproduce

  1. conda create --name dummy-env python=3.8

  2. pip install pyRDF2vec

  3. python

  4. import pyrdf2vec

Environment

  • Operating system:
  • pyRDF2Vec version:
  • Python version:

Possible Solution

pip install nest-asyncio, gensim, rdflib, aiohttp, requests

@jacobwjs jacobwjs added the bug Something isn't working label Apr 7, 2022
@GillesVandewiele
Copy link
Collaborator

GillesVandewiele commented Apr 7, 2022

Great to see you here Jacob! It might indeed be that we forgot to add some dependencies to our requirements.txt (we also did not test it in a conda environment AFAIK).

About which unmet dependencies does Python complain? Does your proposed pip install resolve the issue?

As an alternative fix: could you try cloning the code and running pip install -e . in the cloned directory within your conda environment?

@jacobwjs
Copy link
Author

jacobwjs commented Apr 9, 2022

Hi Gilles! Yep a fresh conda environment, cloning the repo, and updating the requirements.txt to include what was mentioned above gets pyRDF2Vec installed if I point pip to the requirements file (seems to be buried in /docs).

But running pip install -e . after cloning into a fresh conda environment throws another error (see below) as there is no setup.py etc. to be found.

ERROR: Project file:///home/ec2-user/SageMaker/pyRDF2Vec has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

@GillesVandewiele
Copy link
Collaborator

Thank you for this extra information. We will look into this and make sure installation within conda is smooth sailing in the future. Just to make sure, you did manage to get it installed right?

@jacobwjs
Copy link
Author

jacobwjs commented Apr 9, 2022

Yep up and running :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants