BGP-Ranking icon indicating copy to clipboard operation
BGP-Ranking copied to clipboard

Missing dependency when installing as guided in the README.md

Open SteveClement opened this issue 2 years ago • 1 comments

(venv) misp@misp-test:~/code/mailoney$ pip install git+https://github.com/D4-project/BGP-Ranking.git/#egg=pybgpranking\&subdirectory=client
Collecting pybgpranking
  Cloning https://github.com/D4-project/BGP-Ranking.git/ to /tmp/pip-install-pnqwv90c/pybgpranking_777f9736e6d849e8bb2af02b4252c0fe
  Running command git clone -q https://github.com/D4-project/BGP-Ranking.git/ /tmp/pip-install-pnqwv90c/pybgpranking_777f9736e6d849e8bb2af02b4252c0fe
  Resolved https://github.com/D4-project/BGP-Ranking.git/ to commit 36688e85c17442652b0b893605b50741c01bd62a
Collecting requests
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./venv/lib/python3.8/site-packages (from requests->pybgpranking) (2.0.6)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.2-py3-none-any.whl (59 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Using legacy 'setup.py install' for pybgpranking, since package 'wheel' is not installed.
Installing collected packages: urllib3, idna, certifi, requests, pybgpranking
    Running setup.py install for pybgpranking ... done
Successfully installed certifi-2021.10.8 idna-3.2 pybgpranking-0.1 requests-2.26.0 urllib3-1.26.7
(venv) misp@misp-test:~/code/mailoney$ bgpranking
Traceback (most recent call last):
  File "/home/misp/code/mailoney/venv/bin/bgpranking", line 12, in <module>
    from pyipasnhistory import IPASNHistory
ModuleNotFoundError: No module named 'pyipasnhistory'

SteveClement avatar Oct 10 '21 07:10 SteveClement

Try running pip3 install git+https://github.com/D4-project/IPASN-History.git/#egg=pyipasnhistory\&subdirectory=client from the virtualenv you're in, that should solve it.

(pressed on the wrong button, wasn't meaning to close the issue)

Rafiot avatar Oct 10 '21 08:10 Rafiot