named-data / mini-ndn

Mininet-based NDN emulator (mailing list: http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn)
https://minindn.memphis.edu
GNU General Public License v3.0
72 stars 41 forks source link

ModuleNotFoundError: No module named 'distutils.core' when Installing Mini NDN using the command /install.sh -i #49

Closed Rj2014 closed 4 years ago

Rj2014 commented 4 years ago

/install.sh -i Reading package lists... Done Building dependency tree Reading state information... Done libigraph0-dev is already the newest version (0.7.1-4build1). tshark is already the newest version (3.2.3-1). 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded. Requirement already satisfied: python-igraph in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (0.8.2) Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (28.8.0) Requirement already satisfied: texttable>=1.6.2 in /usr/local/lib/python3.6/site-packages (from python-igraph->-r requirements.txt (line 1)) (1.6.3) Could not build wheels for python-igraph, since package 'wheel' is not installed. Could not build wheels for setuptools, since package 'wheel' is not installed. Could not build wheels for texttable, since package 'wheel' is not installed. WARNING: You are using pip version 20.1; however, version 20.2.3 is available. You should consider upgrading via the '/usr/local/bin/python3.6 -m pip install --upgrade pip' command. Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Ign:2 http://ppa.launchpad.net/named-data/ppa/ubuntu 20.04.1 InRelease Hit:3 http://archive.canonical.com/ubuntu focal InRelease Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease Hit:6 https://dl.yarnpkg.com/debian stable InRelease Hit:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease Ign:9 http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu focal InRelease Hit:7 https://cli-assets.heroku.com/apt ./ InRelease Hit:10 https://packages.microsoft.com/ubuntu/18.04/mssql-server-2019 bionic InRelease Hit:11 http://archive.ubuntu.com/ubuntu focal-security InRelease Hit:12 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease Hit:13 http://ppa.launchpad.net/kaihengfeng/fix-lp1869819/ubuntu focal InRelease Ign:14 http://ppa.launchpad.net/named-data/ppa/ubuntu focal InRelease Hit:15 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease Err:17 http://ppa.launchpad.net/named-data/ppa/ubuntu 20.04.1 Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] Err:18 http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu focal Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] Err:19 http://ppa.launchpad.net/named-data/ppa/ubuntu focal Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] Err:20 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/named-data/ppa/ubuntu 20.04.1 Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/named-data/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree Reading state information... Done python-setuptools is already the newest version (44.0.0-2). 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded. cp: cannot stat 'topologies/minindn.testbed.conf': No such file or directory cp: cannot stat 'topologies/current-testbed.conf': No such file or directory Traceback (most recent call last): File "setup.py", line 3, in from setuptools import setup, find_packages File "/usr/lib/python3/dist-packages/setuptools/init.py", line 5, in import distutils.core ModuleNotFoundError: No module named 'distutils.core'

dulalsaurab commented 4 years ago

Most of the errors seem coming from different packages you are missing in your system.

  1. "package 'wheel' is not installed." -- try installing wheel
  2. Err:17 http://ppa.launchpad.net/named-data/ppa/ubuntu 20.04.1 Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] - this also seems a more generic type of error, have you tried 'sudo apt update'?
  3. ModuleNotFoundError: No module named 'distutils.core' - try installing "python3-distutils" ? https://stackoverflow.com/questions/55749206/modulenotfounderror-no-module-named-distutils-core
Rj2014 commented 4 years ago

Err:17 http://ppa.launchpad.net/named-data/ppa/ubuntu 20.04.1 Release 404 Not Found [IP: 2001:67c:1560:8008::15 80] - this also seems a more generic type of error, have you tried 'sudo apt update'? - Yes I did. Is it something to do with Ubuntu 20.04.1 version? Because I read in the documentation that, it has been tested on Ubuntu 18 version.

ModuleNotFoundError: No module named 'distutils.core' - try installing "python3-distutils" ? https://stackoverflow.com/questions/55749206/modulenotfounderror-no-module-named-distutils-core - I had also visite the added stackoverflow link and installed the package. Still I was getting the same error.

If it's related to Ubuntu 20.04 version, then maybe I can try installing Ubuntu 18 version and try to follow the instruction again.

Rj2014 commented 4 years ago

I installed Ubuntu 18 and followed the steps from the beginning. Every issue mentioned above got solved.