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

MPTCPanalyzer installation issue #34

Open
vidyakubde opened this issue May 14, 2020 · 23 comments
Open

MPTCPanalyzer installation issue #34

vidyakubde opened this issue May 14, 2020 · 23 comments

Comments

@vidyakubde
Copy link

  • mptcpanalyzer version ($ mptcpanalyzer --version or commit number):mptcpanalyzer 0.3.2
  • tshark version ($ tshark --version, must be >= 3.X.X):Wireshark 3.2.2
  • python version ($ python --version, must be >= 3.7):Python 3.7.7

Output of mptcpanalyzer -dDEBUG (or -dTRACE ):

Collecting mptcpanalyzer
  Using cached mptcpanalyzer-0.3.2-py3-none-any.whl (95 kB)
Collecting cmd2>=0.9.15
  Using cached cmd2-1.0.2-py3-none-any.whl (111 kB)
Collecting stevedore
  Using cached stevedore-1.32.0-py2.py3-none-any.whl (43 kB)
ERROR: Could not find a version that satisfies the requirement pandas>=0.25 (from mptcpanalyzer) (from versions: 0.1, 0.2b0, 0.2b1, 0.2, 0.3.0b0, 0.3.0b2, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.6.1, 0.7.0rc1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0rc1, 0.8.0rc2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0rc1, 0.19.0, 0.19.1, 0.19.2, 0.20.0rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0rc1, 0.21.0, 0.21.1, 0.22.0, 0.23.0rc2, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.23.4, 0.24.0rc1, 0.24.0, 0.24.1, 0.24.2)
ERROR: No matching distribution found for pandas>=0.25 (from mptcpanalyzer)
	HERE

@teto
Copy link
Owner

teto commented May 14, 2020

thanks for the report. There is a development version that is currently broken (due to the transition wtih pandas > 1.), I will try to fix it asap. What do you want to use mptcpanalyzer for ?

@vidyakubde
Copy link
Author

vidyakubde commented May 15, 2020 via email

@teto
Copy link
Owner

teto commented May 18, 2020

I've pushed some changes to the next branch. Commands that use 2 pcaps (to compute one way delays for instance) are still buggy. I will try to fix them today.

@teto
Copy link
Owner

teto commented May 18, 2020

I fixed the tests, let me know if everything works fine. If it does, I will prepare a new release.

@vidyakubde
Copy link
Author

vidyakubde commented May 18, 2020 via email

@vidyakubde
Copy link
Author

vidyakubde commented May 23, 2020 via email

@teto
Copy link
Owner

teto commented May 23, 2020

I meant try the development version, I've added instructions how to do it in
https://github.com/teto/mptcpanalyzer#installation

@vidyakubde
Copy link
Author

vidyakubde commented May 23, 2020 via email

@vidyakubde
Copy link
Author

vidyakubde commented May 23, 2020 via email

@teto
Copy link
Owner

teto commented May 23, 2020

I fixed the url in the README, one should use https://github.com/teto/mptcpanalyzer.git.
Also you should not use sudo it will mess up your file permissions.

@vidyakubde
Copy link
Author

vidyakubde commented May 23, 2020 via email

@teto
Copy link
Owner

teto commented May 31, 2020

sry for delay, I thought I had answered already :s
pandas use f-strings, a feature introduced in python 3.6. Mptcpanalyzer itself requires python3.7 (as stated in README.md). I will see if I can add a check in setup.py.

@vidyakubde
Copy link
Author

vidyakubde commented Jun 1, 2020 via email

@teto
Copy link
Owner

teto commented Jun 4, 2020

it can't give you the same error twice as you changed python version, the paths at least should be different, please copy the backtrace. I've pushed a ppython version check on master too if you want to update your clone.

@vidyakubde
Copy link
Author

vidyakubde commented Jun 5, 2020 via email

@teto
Copy link
Owner

teto commented Jun 5, 2020

I've removed jsonschema from the dependencies on master. Could you try again ?

@vidyakubde
Copy link
Author

vidyakubde commented Jun 6, 2020 via email

@teto
Copy link
Owner

teto commented Jun 6, 2020

are you sure you are testing with teto/mptcpanalyzer@e038d56 ?

@vidyakubde
Copy link
Author

vidyakubde commented Jun 6, 2020 via email

@teto
Copy link
Owner

teto commented Jun 15, 2020

on the CI, the python install works fine so I believe it's something on your system. Maybe try in a virtual environment ?

@vandit86
Copy link

Python 3.8.5
Wireshark 3.4.2

error during the installation from dev version --> No package 'py3cairo' found
Any idea ?? thanks

vad@vad-VB:~/mptcpanalyzer$ sudo apt-get install -y python3-cairo
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-cairo is already the newest version (1.16.2-2ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 226 not upgraded.

AND installation process

vad@vad-VB:~/mptcpanalyzer$ sudo python3 setup.py develop
running develop
running egg_info
writing mptcpanalyzer.egg-info/PKG-INFO
writing dependency_links to mptcpanalyzer.egg-info/dependency_links.txt
writing entry points to mptcpanalyzer.egg-info/entry_points.txt
writing requirements to mptcpanalyzer.egg-info/requires.txt
writing top-level names to mptcpanalyzer.egg-info/top_level.txt
reading manifest file 'mptcpanalyzer.egg-info/SOURCES.txt'
writing manifest file 'mptcpanalyzer.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python3.8/dist-packages/mptcpanalyzer.egg-link (link to .)
mptcpanalyzer 0.3.4 is already the active version in easy-install.pth
Installing mptcpanalyzer script to /usr/local/bin

Installed /home/vad/mptcpanalyzer
Processing dependencies for mptcpanalyzer==0.3.4
Searching for pygobject==3.36.1
Reading https://pypi.org/simple/pygobject/
Downloading https://files.pythonhosted.org/packages/93/41/bf9ab8929f51dac2979ae81bb094728bacee3ceb049def72d3fc1bcb4241/PyGObject-3.36.1.tar.gz#sha256=012a589aec687bfa809a1ff9f5cd775dc7f6fcec1a6bc7fe88e1002a68f8ba34
Best match: PyGObject 3.36.1
Processing PyGObject-3.36.1.tar.gz
Writing /tmp/easy_install-r2l6lnop/PyGObject-3.36.1/setup.cfg
Running PyGObject-3.36.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-r2l6lnop/PyGObject-3.36.1/egg-dist-tmp-v159aia6
Package py3cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `py3cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'py3cairo' found
Traceback (most recent call last):
File "/tmp/easy_install-r2l6lnop/PyGObject-3.36.1/setup.py", line 178, in _run_pkg_config
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('pkg-config', '--print-errors', '--exists', 'py3cairo >= 1.11.1')' returned non-zero exit status 1.

@vandit86
Copy link

Python 3.8.5
Wireshark 3.4.2

error during the installation from dev version --> No package 'py3cairo' found
Any idea ?? thanks

vad@vad-VB:~/mptcpanalyzer$ sudo apt-get install -y python3-cairo
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-cairo is already the newest version (1.16.2-2ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 226 not upgraded.

AND installation process

vad@vad-VB:~/mptcpanalyzer$ sudo python3 setup.py develop
running develop
running egg_info
writing mptcpanalyzer.egg-info/PKG-INFO
writing dependency_links to mptcpanalyzer.egg-info/dependency_links.txt
writing entry points to mptcpanalyzer.egg-info/entry_points.txt
writing requirements to mptcpanalyzer.egg-info/requires.txt
writing top-level names to mptcpanalyzer.egg-info/top_level.txt
reading manifest file 'mptcpanalyzer.egg-info/SOURCES.txt'
writing manifest file 'mptcpanalyzer.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python3.8/dist-packages/mptcpanalyzer.egg-link (link to .)
mptcpanalyzer 0.3.4 is already the active version in easy-install.pth
Installing mptcpanalyzer script to /usr/local/bin
Installed /home/vad/mptcpanalyzer
Processing dependencies for mptcpanalyzer==0.3.4
Searching for pygobject==3.36.1
Reading https://pypi.org/simple/pygobject/
Downloading https://files.pythonhosted.org/packages/93/41/bf9ab8929f51dac2979ae81bb094728bacee3ceb049def72d3fc1bcb4241/PyGObject-3.36.1.tar.gz#sha256=012a589aec687bfa809a1ff9f5cd775dc7f6fcec1a6bc7fe88e1002a68f8ba34
Best match: PyGObject 3.36.1
Processing PyGObject-3.36.1.tar.gz
Writing /tmp/easy_install-r2l6lnop/PyGObject-3.36.1/setup.cfg
Running PyGObject-3.36.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-r2l6lnop/PyGObject-3.36.1/egg-dist-tmp-v159aia6
Package py3cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `py3cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'py3cairo' found
Traceback (most recent call last):
File "/tmp/easy_install-r2l6lnop/PyGObject-3.36.1/setup.py", line 178, in _run_pkg_config
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('pkg-config', '--print-errors', '--exists', 'py3cairo >= 1.11.1')' returned non-zero exit status 1.

was solved with :

sudo apt-get install python3-cairo-dev

@teto
Copy link
Owner

teto commented May 22, 2021

thanks for the notification, I may update the install instructions as I've switched to poetry https://python-poetry.org/ for packaging. Would you mind running a poetry install in a clone to see if that works correctly ?

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

3 participants