Your Graphviz installation could not be found.
1) You don't have Graphviz installed:
Install Graphviz (http://graphviz.org)
2) Your Graphviz package might incomplete.
Install the binary development subpackage (e.g. libgraphviz-dev or similar.)
3) You are using Windows
There are no PyGraphviz binary packages for Windows but you might be
able to build it from this source. See
http://networkx.lanl.gov/pygraphviz/reference/faq.html
If you think your installation is correct you will need to manually
provide path to graphviz include and library. For example:
pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"
The current setting of library_dirs and include_dirs is:
library_dirs=None
include_dirs=None
error: Error locating graphviz.
Failed building wheel for pygraphviz
Running setup.py clean for pygraphviz
Failed to build pygraphviz
Installing collected packages: pygraphviz
Running setup.py install for pygraphviz ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/tl/vh0p3k113bx20dnv50s4pv3h0000gn/T/pip-install-i_qa55z_/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 /private/var/folders/tl/vh0p3k113bx20dnv50s4pv3h0000gn/T/pip-record-6rau2afj/install-record.txt --single-version-externally-managed --compile:
running install
Trying dpkg
Failed to find dpkg
Trying pkg-config
Failed to find pkg-config
Trying dotneato-config
Failed to find dotneato-config
Failed to find dotneato-config
Your Graphviz installation could not be found.
1) You don't have Graphviz installed:
Install Graphviz (http://graphviz.org)
2) Your Graphviz package might incomplete.
Install the binary development subpackage (e.g. libgraphviz-dev or similar.)
3) You are using Windows
There are no PyGraphviz binary packages for Windows but you might be
able to build it from this source. See
http://networkx.lanl.gov/pygraphviz/reference/faq.html
If you think your installation is correct you will need to manually
provide path to graphviz include and library. For example:
pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"
The current setting of library_dirs and include_dirs is:
library_dirs=None
include_dirs=None
error: Error locating graphviz.
----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/tl/vh0p3k113bx20dnv50s4pv3h0000gn/T/pip-install-i_qa55z_/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 /private/var/folders/tl/vh0p3k113bx20dnv50s4pv3h0000gn/T/pip-record-6rau2afj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tl/vh0p3k113bx20dnv50s4pv3h0000gn/T/pip-install-i_qa55z_/pygraphviz/
I'm using High Sierra.
Hi,
I was following the ros2 crystal install from source instructions.
I'm using a Docker image for Ubuntu 18.04
FROM ubuntu:18.04
# working directory
ENV HOME /root
WORKDIR $HOME
# Set timezone otherwise tz will ask for it
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# general utilities
RUN apt-get update && apt-get install -y \
curl \
wget \
git \
vim \
nano \
python3-pip
# pip
RUN pip3 install --upgrade pip
# Locale options
RUN apt-get install -y locales
This is the initial content of the Dockerfile, then I added all the instructions found here.
You find the full Dockerfile here
Even if I'm on Ubuntu 18.04, I need the following lines
RUN python3 -m pip install -U \
pytest \
pytest-cov \
pytest-runner \
setuptools
Otherwise a lots of warnings are prompted about the correct version of pytest not being found and then the build fails while building the demo_nodes_cpp
package.
This warning appears for several packages
CMake Warning at /root/ros2_ws/install/ament_cmake_pytest/share/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake:73 (message):
The Python module 'pytest' was not found, pytests can not be run (e.g. on
Ubuntu/Debian install the package 'python3-pytest')
Call Stack (most recent call first):
CMakeLists.txt:31 (ament_add_pytest_test)
The error for the demo_nodes_cpp
package
CMake Error at CMakeLists.txt:114 (set_property):
set_property given TEST names that do not exist:
test_tutorial_add_two_ints_server_add_two_ints_client_async__rmw_opensplice_cpp
Call Stack (most recent call first):
/root/ros2_ws/build/demo_nodes_cpp/call_for_each_rmw_implementation.cmake:1 (tests)
/root/ros2_ws/install/rmw_implementation_cmake/share/rmw_implementation_cmake/cmake/call_for_each_rmw_implementation.cmake:64 (include)
CMakeLists.txt:121 (call_for_each_rmw_implementation)