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

Failed conda install #209

Open
gregho67 opened this issue Jun 3, 2021 · 1 comment
Open

Failed conda install #209

gregho67 opened this issue Jun 3, 2021 · 1 comment

Comments

@gregho67
Copy link

gregho67 commented Jun 3, 2021

There was an error when installing packages "plantdb" and "romitask" in a Conda environment with pip with the commands :
python3 -m pip install ./plantdb/
python3 -m pip install ./romitask/

Got the following error for both installs:

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

I managed to fix this thanks to this forum :
https://stackoverflow.com/questions/43288756/pytest-xdist-lookuperror-setuptools-scm-was-unable-to-detect-version

So I added :
setuptools_scm == 1.15.0
to the requirements.txt file and ran the command :
python3 -m pip install -r requirements.txt
again.

This problem may be occurring only on my computer but if this error happens to others and the solution given above works for them, it might be useful to add the line "setuptools_scm == 1.15.0" to the requirement.txt file.

@fabfabBesnard
Copy link
Collaborator

I confirm this fixed the issue on my PC (Ubuntu 20.04.2 LTS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants