cnp3 / ipmininet

Mininet extension to make experimenting with IP networks easy
GNU General Public License v2.0
65 stars 51 forks source link

Cannot install IPmininet #114

Closed robertobressani closed 3 years ago

robertobressani commented 3 years ago

Using sudo pip3 install --upgrade git+https://github.com/cnp3/ipmininet.git@v0.9 gets this error

     Package cgroup-bin is not available, but is referred to by another package.                                                                           
  This may mean that the package is missing, has been obsoleted, or         
  is only available from another source                                     
  However the following packages replace it:                                
    cgroup-tools                                                            

  Package pyflakes is not available, but is referred to by another package. 
  This may mean that the package is missing, has been obsoleted, or         
  is only available from another source                                     
  However the following packages replace it:                                
    python3-pyflakes pyflakes3                                              

  E: Package 'cgroup-bin' has no installation candidate                     
  E: Package 'pyflakes' has no installation candidate   

and also :

    error: [Errno 17] File exists: '/tmp/pip-req-build-0_tacwvi/mininet_dependencies'                                                                   
    ----------------------------------------                                
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-0_tacwvi/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-0_tacwvi/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-record-ip6tu0od/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ipmininet Check the logs for full command output.   

Any suggestion on how to fix it and install IPmininet?

jadinm commented 3 years ago

Could you tell me which versions of Python and OS that you have ?

It will make it easier for me to reproduce your issue

robertobressani commented 3 years ago

I'm running Ubuntu 20.04 (kernel 5.3.0) with python 3.9.5 and pip 20.3.4 . It seems a failure in the installation of mininet dependency (that I have already on my machine, in the correct version 2.3.0d6)

jadinm commented 3 years ago

Ok, the version of Ubuntu is one of the "issues" Some packages were updated in commits after v0.9 to support IPMininet's installation on Ubuntu 20.04

However the master version relies on mininet 2.3.0 and not 2.3.0d6 so you'll have to update that as well

You can either try the master version now or wait for the next release that I will do when I have the time

robertobressani commented 3 years ago

Great, it solves the problem!