romi / plant-3d-vision

Reconstruct a 3D digital twin of the plant from pictures (RGB images) and quantify its phyllotaxis.
https://docs.romi-project.eu/plant_imager/
GNU Lesser General Public License v3.0
5 stars 1 forks source link

Failed conda install #209

Open gregho67 opened 3 years ago

gregho67 commented 3 years ago

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 commented 3 years ago

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