networkit: pip3 install networkit failed with error code1

Hello, I’m trying to install networkit in a docker container for a while without any success. Here are the versions of my libs:

  • python 3.7.3
  • pip 19.2.1
  • g++ (Debian 6.3.0-18+deb9u1) 6.3.0
  • cmake version 3.7.2 pip3 freeze gives the following:
backcall==0.1.0
cycler==0.10.0
decorator==4.4.0
ipython==7.7.0
ipython-genutils==0.2.0
jedi==0.14.1
kiwisolver==1.1.0
matplotlib==3.1.1
networkit==5.0
networkx==2.3
numpy==1.17.0
pandas==0.25.0
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
prompt-toolkit==2.0.9
ptyprocess==0.6.0
Pygments==2.4.2
pyparsing==2.4.1.1
python-dateutil==2.8.0
pytz==2019.1
scipy==1.3.0
six==1.12.0
tabulate==0.8.3
traitlets==4.3.2
wcwidth==0.1.7

The error is the following :

    writing networkit.egg-info/PKG-INFO
    writing dependency_links to networkit.egg-info/dependency_links.txt
    writing requirements to networkit.egg-info/requires.txt
    writing top-level names to networkit.egg-info/top_level.txt
    reading manifest file 'networkit.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching 'extlibs/tlx/.git'
    writing manifest file 'networkit.egg-info/SOURCES.txt'
    Copying networkit.egg-info to /usr/lib/python3.7/site-packages/networkit-5.0-py3.7.egg-info
    running install_scripts
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-35pd80y2/networkit/setup.py", line 282, in <module>
        zip_safe                        = False) # see https://cython.readthedocs.io/en/latest/src/reference/compilation.html
      File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.7/distutils/command/install.py", line 564, in run
        outputs = self.get_outputs()
      File "/usr/lib/python3.7/distutils/command/install.py", line 606, in get_outputs
        for filename in cmd.get_outputs():
      File "/usr/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 117, in get_outputs
        outputs = orig.install_lib.get_outputs(self)
      File "/usr/lib/python3.7/distutils/command/install_lib.py", line 197, in get_outputs
        self.install_dir)
      File "/usr/lib/python3.7/distutils/command/install_lib.py", line 148, in _mutate_outputs
        build_files = build_cmd.get_outputs()
      File "/usr/lib/python3.7/distutils/cmd.py", line 103, in __getattr__
        raise AttributeError(attr)
    AttributeError: get_outputs
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-35pd80y2/networkit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-35pd80y2/networkit/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-kbodh4r8/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Any help would be greatly appreciated…

Regards, Thomas

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (10 by maintainers)

Most upvoted comments

We will probably do a bug fix release tomorrow to make the patch available to all people installing via pip.