Giuseppe1992 / Distrinet

Distributed Network emulator, based on Mininet
MIT License
17 stars 16 forks source link

Distinet Installation errors on Ubuntu 20.04 #67

Open bmullan opened 3 years ago

bmullan commented 3 years ago

I am trying to install Distinet on a fresh install of Ubuntu 20.04 following the instructions here: https://distrinet-emu.github.io/installation.html

I get to the section:

Start the installation by running:

pip3 install -r requirements.txt
sudo python3 setup.py install

I initially get 2 errors:

Successfully built networkx boto3 pulp PyYAML mapping-distrinet
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
ERROR: botocore 1.20.100 has requirement urllib3<1.27,>=1.25.4, but you'll have urllib3 1.24.2 which is incompatible.

sudo apt install python3-testresources -y
gets rid of the 1st error

and it ends with:

Installed /usr/local/lib/python3.8/dist-packages/Distrinet-1.2-py3.8.egg Processing dependencies for Distrinet==1.2 error: urllib3 1.24.2 is installed but urllib3<1.27,>=1.25.4 is required by {'botocore'}

The ubuntu repositories have python3-urllib3 1.25.8

and finally this Error:

Installed /usr/local/lib/python3.8/dist-packages/asyncio-3.4.3-py3.8.egg
Searching for PyYAML==5.1.2
Reading https://pypi.org/simple/PyYAML/
Downloading https://files.pythonhosted.org/packages/e3/e8 /b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML- 5.1.2.tar.gz#sha256=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4
Best match: PyYAML 5.1.2
Processing PyYAML-5.1.2.tar.gz
Writing /tmp/easy_install-3lsndsep/PyYAML-5.1.2/setup.cfg
Running PyYAML-5.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3lsndsep/PyYAML-5.1.2/egg-dist-tmp-0cyfqq7m
> In file included from ext/_yaml.c:596:
ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
2 | #include
| ^~~~

compilation terminated.
Error compiling module, falling back to pure Python

Giuseppe1992 commented 3 years ago

Hi @bmullan, thank you for trying Distrinet. I recently changed position, not maintaining Distrinet anymore, but I will have a look at this problem.

Bests Giuseppe

bmullan commented 3 years ago

@Giuseppe1992 Giuseppe1992

Thank you so much..!

bmullan commented 3 years ago

More info... So the previous information was from my failed attempt to install Distrinet using "sudo apt install......" etc

Last night I decided to try to install the Docker version on a Fresh Ubuntu 20.04.2 system. I don't know what all the command:

The container can be built with:
docker build -t distrinet:1.1 .

does but nearly 8 hours later it successfully built Docker container !

This is with a 12 core AMD 3900x cpu, 64GB ram, 2TB SSD and 200Mbps internet.

That can't be normal.

Brian

bmullan commented 3 years ago

@Giuseppe1992

Just did a fresh ubuntu 20.04 install then installed Distrinet again.

Two errors:

Ubuntu 20.04 does not install python3-testresources

So you can just add it to:

sudo apt update && sudo apt install -y git python3-minimal python3-pip
and change it to
sudo apt update && sudo apt install -y git python3-minimal python3-pip python3-resources

and finally the following Error is still present so perhaps you weren't able to look at it yet.

Installed /usr/local/lib/python3.8/dist-packages/asyncio-3.4.3-py3.8.egg
Searching for PyYAML==5.1.2
Reading https://pypi.org/simple/PyYAML/
Downloading https://files.pythonhosted.org/packages/e3/e8 /b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz#sha256=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4  
Best match: PyYAML 5.1.2  
Processing PyYAML-5.1.2.tar.gz  
Writing /tmp/easy_install-3lsndsep/PyYAML-5.1.2/setup.cfg  
Running PyYAML-5.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3lsndsep/PyYAML-5.1.2/egg-dist-tmp-0cyfqq7m  
> In file included from ext/_yaml.c:596:
ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
2 | #include <yaml.h>
| ^~~~~~~~
compilation terminated.
Error compiling module, falling back to pure Python
Giuseppe1992 commented 3 years ago

Hi @bmullan, Sorry for the delay, but I can work on Distrinet only on the Weekends.

With the last commit should be ok. The last version was not compatible with LXC 4.0.x, now it should be ok.

I made multiple fixes. For now the automatic Deployment in AWS and the ILP for the distribution are deactivated.

Let me know if you have any issue.

bmullan commented 3 years ago

Thanks again Giuseppe

I'll redo everything from scratch again this weekend.

Brian

On Sat, Jul 3, 2021 at 10:52 AM Giuseppe Di Lena @.***> wrote:

Hi @bmullan https://github.com/bmullan, Sorry for the delay, but I can work on Distrinet only on the Weekends.

With the last commit should be ok. The last version was not compatible with LXC 4.0.x, now it should be ok.

I made multiple fixes. For now the automatic Deployment in AWS and the ILP for the distribution are deactivated.

Let me know if you have any issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Giuseppe1992/Distrinet/issues/67#issuecomment-873418782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM23J5M7QWCIM6MCDXGQT3TV4P4TANCNFSM47ICJWAQ .