Skip to content

Fix git ssh dependency installation.

Lukas Gehrke requested to merge 15-fix-installation-with-pip into main

Example log

lukasgehrke@lukasgehrke-HP-ProDesk-600-G5-MT:~/sample-project$ python -m venv venv
lukasgehrke@lukasgehrke-HP-ProDesk-600-G5-MT:~/sample-project$ source venv/bin/activate
(venv) lukasgehrke@lukasgehrke-HP-ProDesk-600-G5-MT:~/sample-project$ pip install git+ssh://git@git.informatik.uni-leipzig.de/scads/de4l/privacy/de4l-detour-detection.git@15-fix-installation-with-pip
Collecting git+ssh://****@git.informatik.uni-leipzig.de/scads/de4l/privacy/de4l-detour-detection.git@15-fix-installation-with-pip
  Cloning ssh://****@git.informatik.uni-leipzig.de/scads/de4l/privacy/de4l-detour-detection.git (to revision 15-fix-installation-with-pip) to /tmp/pip-req-build-2hoolw63
  Running command git clone -q 'ssh://****@git.informatik.uni-leipzig.de/scads/de4l/privacy/de4l-detour-detection.git' /tmp/pip-req-build-2hoolw63
  Running command git checkout -b 15-fix-installation-with-pip --track origin/15-fix-installation-with-pip
  Switched to a new branch '15-fix-installation-with-pip'
  Branch '15-fix-installation-with-pip' set up to track remote branch '15-fix-installation-with-pip' from 'origin'.
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Processing /home/lukasgehrke/.cache/pip/wheels/e6/f1/96/48b0dd0c18e800643d1e04f9bba41b01135825c25b58fa64d6/de4l_geodata-0.0.6-py3-none-any.whl
Collecting urllib3<2.0.0,>=1.26.7
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting pandas<2.0.0,>=1.3.4
  Using cached pandas-1.3.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.5 MB)
Collecting geopy<3.0.0,>=2.2.0
  Using cached geopy-2.2.0-py3-none-any.whl (118 kB)
Collecting numpy<2.0.0,>=1.21.2
  Using cached numpy-1.21.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Collecting haversine<3.0.0,>=2.5.1
  Using cached haversine-2.5.1-py2.py3-none-any.whl (6.1 kB)
Collecting pytz>=2017.3
  Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB)
Collecting python-dateutil>=2.7.3
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting geographiclib<2,>=1.49
  Using cached geographiclib-1.52-py3-none-any.whl (38 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: de4l-detour-detection
  Building wheel for de4l-detour-detection (PEP 517) ... done
  Created wheel for de4l-detour-detection: filename=de4l_detour_detection-0.0.1-py3-none-any.whl size=4641 sha256=cfeca2be01b65d803920962e744e9b672376f81a9ac5f3c67ff95e0d64c999bf
  Stored in directory: /tmp/pip-ephem-wheel-cache-h734z6yd/wheels/e9/cd/c2/4b0c021c1e393b2d7d447646bba9d7fbe7b8d42611e06634f1
Successfully built de4l-detour-detection
Installing collected packages: numpy, pytz, six, python-dateutil, pandas, haversine, de4l-geodata, urllib3, geographiclib, geopy, de4l-detour-detection
Successfully installed de4l-detour-detection-0.0.1 de4l-geodata-0.0.6 geographiclib-1.52 geopy-2.2.0 haversine-2.5.1 numpy-1.21.4 pandas-1.3.4 python-dateutil-2.8.2 pytz-2021.3 six-1.16.0 urllib3-1.26.7
(venv) lukasgehrke@lukasgehrke-HP-ProDesk-600-G5-MT:~/sample-project$ python
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from de4l_detour_detection import detour_detection as dede
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lukasgehrke/sample-project/venv/lib/python3.8/site-packages/de4l_detour_detection/detour_detection.py", line 9, in <module>
    from de4l_geodata.geodata import route as rt
  File "/home/lukasgehrke/sample-project/venv/lib/python3.8/site-packages/de4l_geodata/geodata/route.py", line 4, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
>>> 

Closes #15 (closed)

Merge request reports