Undable to install pygraphviz under RHEL 7.4

20 views
Skip to first unread message

Pav Che

unread,
Nov 13, 2018, 2:04:47 PM11/13/18
to pygraphviz-discuss
I try to install pygraphviz 1.5 under Red Had Enterprise Linux 7.4
but the installation fails with error:

Collecting pygraphviz
  Using cached https://files.pythonhosted.org/packages/7e/b1/d6d849ddaf6f11036f9980d433f383d4c13d1ebcfc3cd09bc845bda7e433/pygraphviz-1.5.zip
Installing collected packages: pygraphviz
  Running setup.py install for pygraphviz ... error
    Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b8edtawm/pygraphviz/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-awvpvf87/install-record.txt --single-version-externally-managed --compile:
    running install
    Trying dpkg
    Failed to find dpkg
    Trying pkg-config
    Package libcgraph was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libcgraph.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libcgraph' found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-b8edtawm/pygraphviz/setup.py", line 93, in <module>
        tests_require=['nose>=1.3.7', 'doctest-ignore-unicode>=0.1.2', 'mock>=2.0.0'],
      File "/usr/lib64/python3.4/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib64/python3.4/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-b8edtawm/pygraphviz/setup_commands.py", line 44, in modified_run
        self.include_path, self.library_path = get_graphviz_dirs()
      File "/tmp/pip-install-b8edtawm/pygraphviz/setup_extra.py", line 162, in get_graphviz_dirs
        include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _pkg_config)
      File "/tmp/pip-install-b8edtawm/pygraphviz/setup_extra.py", line 117, in _try_configure
        i, l = try_function()
      File "/tmp/pip-install-b8edtawm/pygraphviz/setup_extra.py", line 72, in _pkg_config
        output = S.check_output(['pkg-config', '--libs-only-L', 'libcgraph'])
      File "/usr/lib64/python3.4/subprocess.py", line 617, in check_output
        raise CalledProcessError(retcode, process.args, output=output)
    subprocess.CalledProcessError: Command '['pkg-config', '--libs-only-L', 'libcgraph']' returned non-zero exit status 1
   
    ----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b8edtawm/pygraphviz/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-awvpvf87/install-record.txt --single-version-externally-mana



DETAILS
python-2.7.5-58.el7.x86_64
python2-pip-8.1.2-6.el7.noarch
python34-3.4.9-1.el7.x86_64
python34-pip-8.1.2-6.el7.noarch

Aric Hagberg

unread,
Nov 13, 2018, 2:21:43 PM11/13/18
to pygraphvi...@googlegroups.com
The required graphviz libraries (e.g. libgraphviz.h) are found in the development package - graphviz-devel.
Install that package and give it a try.

Aric

--
You received this message because you are subscribed to the Google Groups "pygraphviz-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pygraphviz-disc...@googlegroups.com.
To post to this group, send email to pygraphvi...@googlegroups.com.
Visit this group at https://groups.google.com/group/pygraphviz-discuss.
For more options, visit https://groups.google.com/d/optout.

pav...@varna.net

unread,
Nov 13, 2018, 3:55:04 PM11/13/18
to pygraphvi...@googlegroups.com
Yes.

After installing package graphviz-devel, I was able to install Python
module pygraphviz.

Thank you.
Reply all
Reply to author
Forward
0 new messages