You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/dublin-traceroute$ sudo pip3 install dublintraceroute
The directory '/home/babus_selector_ai/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/babus_selector_ai/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting dublintraceroute
Downloading https://files.pythonhosted.org/packages/9a/de/2fdb40e580b2e56ca914f7c6c71cd57c11e59ab79c1b988b8f550b122ca1/dublintraceroute-0.4.2.tar.gz
Installing collected packages: dublintraceroute
Running setup.py install for dublintraceroute ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-3wl20t04/dublintraceroute/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-aesz6i3y-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/tracerouteresults.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/init.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/dublintraceroute.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/main.py -> build/lib.linux-x86_64-3.6/dublintraceroute
running build_ext
building 'dublintraceroute._dublintraceroute' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/dublintraceroute
creating build/temp.linux-x86_64-3.6/dublintraceroute/py3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I../include -I/usr/include/jsoncpp -I/usr/include/python3.6m -c dublintraceroute/py3/_dublintraceroute.cc -o build/temp.linux-x86_64-3.6/dublintraceroute/py3/_dublintraceroute.o -std=c++11 -ldublintraceroute
dublintraceroute/py3/_dublintraceroute.cc: In function ‘int DublinTraceroute_init(PyObject*, PyObject*, PyObject*)’:
dublintraceroute/py3/_dublintraceroute.cc:55:39: error: invalid conversion from ‘short unsigned int’ to ‘probe_type’ [-fpermissive]
min_ttl, max_ttl, delay, broken_nat));
^
In file included from dublintraceroute/py3/_dublintraceroute.cc:4:0:
/usr/include/dublintraceroute/dublin_traceroute.h:116:2: note: initializing argument 2 of ‘DublinTraceroute::DublinTraceroute(const char*, probe_type, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t, bool, bool, bool)’
DublinTraceroute(
^~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
@babu-s2 can you check whether this still happens with the latest code on both dublin-traceroute and python-dublin-traceroute? There has been an API change recently, so I expect that either your dublin-traceroute or python-dublin-traceroute installations are out of sync
~/dublin-traceroute$ sudo pip3 install dublintraceroute
The directory '/home/babus_selector_ai/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/babus_selector_ai/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting dublintraceroute
Downloading https://files.pythonhosted.org/packages/9a/de/2fdb40e580b2e56ca914f7c6c71cd57c11e59ab79c1b988b8f550b122ca1/dublintraceroute-0.4.2.tar.gz
Installing collected packages: dublintraceroute
Running setup.py install for dublintraceroute ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-3wl20t04/dublintraceroute/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-aesz6i3y-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/tracerouteresults.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/init.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/dublintraceroute.py -> build/lib.linux-x86_64-3.6/dublintraceroute
copying dublintraceroute/main.py -> build/lib.linux-x86_64-3.6/dublintraceroute
running build_ext
building 'dublintraceroute._dublintraceroute' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/dublintraceroute
creating build/temp.linux-x86_64-3.6/dublintraceroute/py3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I../include -I/usr/include/jsoncpp -I/usr/include/python3.6m -c dublintraceroute/py3/_dublintraceroute.cc -o build/temp.linux-x86_64-3.6/dublintraceroute/py3/_dublintraceroute.o -std=c++11 -ldublintraceroute
dublintraceroute/py3/_dublintraceroute.cc: In function ‘int DublinTraceroute_init(PyObject*, PyObject*, PyObject*)’:
dublintraceroute/py3/_dublintraceroute.cc:55:39: error: invalid conversion from ‘short unsigned int’ to ‘probe_type’ [-fpermissive]
min_ttl, max_ttl, delay, broken_nat));
^
In file included from dublintraceroute/py3/_dublintraceroute.cc:4:0:
/usr/include/dublintraceroute/dublin_traceroute.h:116:2: note: initializing argument 2 of ‘DublinTraceroute::DublinTraceroute(const char*, probe_type, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t, bool, bool, bool)’
DublinTraceroute(
^~~~~~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-3wl20t04/dublintraceroute/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-aesz6i3y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3wl20t04/dublintraceroute/
Steps followed
sudo apt install dublin-traceroute
Python module installation
sudo apt install libtins-dev libpcap-dev libjsoncpp-dev libdublintraceroute-dev python3-tabulate python3-pygraphviz python3-setuptools-scm
git clone https://github.com/insomniacslk/dublin-traceroute
sudo cp -r dublin-traceroute/include/dublintraceroute /usr/include/
sudo pip3 install dublintraceroute
The text was updated successfully, but these errors were encountered: