Closed Ridhwanluthra closed 5 years ago
Thanks for reporting. It should be a problem not related to our software but your environment. (It looks like you are using python in a custom environment.) Please make sure that you are using python builtin the OS and follow the setup for ROS installation.
@Ridhwanluthra
Your python version seems lower than 2.7.9
, which causes this error.
Is it solved?
@Affonso-Gui also faces this problem.
After I and @YutoUchimi debugged, we found that this problem is occurred by matplotlib
installed by apt of Ubuntu14.04.
When you install matplotlib
by sudo apt-get install python-matplotlib
in 14.04, version 1.3.1 is installed.
In this version, matplotlib
explicitly depends on tornado
.
$ pip show matplotlib
---
Metadata-Version: 1.1
Name: matplotlib
Version: 1.3.1
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: mdroe@stsci.edu
License: BSD
Location: /usr/lib/pymodules/python2.7
Requires: numpy, python-dateutil, tornado, pyparsing, nose
However, apt version of tornado
is not installed by apt-get due to lacking the dependency
$ apt-cache show python-matplotlib
Package: python-matplotlib
Priority: optional
Section: universe/python
Installed-Size: 7653
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Architecture: amd64
Source: matplotlib
Version: 1.3.1-1ubuntu5
Depends: python-dateutil, python-matplotlib-data (>= 1.3.1-1ubuntu5), python-pyparsing, python-tz, python (<< 2.8), python (>= 2.7), python-numpy (>= 1:1.8.0), python-numpy-abi9, python-support (>= 0.90.0), libc6 (>= 2.14), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0), libpng12-0 (>= 1.2.13-4), libstdc++6 (>= 4.6), libtcl8.6 (>= 8.6.0), libtk8.6 (>= 8.6.0)
In this situation, when you execute pip install fcn
, latest tornado
is installed by old matplotlib
because tornado
exists nowhere.
Latest tornado
depends on Python 2.7.9 and upper.
When you use Ubuntu16.04, this problem disappears because python-matplotlib
' version becomes 1.5.1, which doesn't require tornado:
$ pip show matplotlib
Name: matplotlib
Version: 1.5.1
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: matplotlib-users@python.org
License: BSD
Location: /home/pazeshun/.local/lib/python2.7/site-packages
Requires: python-dateutil, numpy, pyparsing, pytz, cycler
(Edit) Also, default python version becomes 2.7.12
The solution is simple: just install old tornado
by apt or pip.
$ sudo apt-get install python-tornado # will install version 3.1.1
# or
$ sudo pip install tornado==4.3.0 # This version is confirmed by @YutoUchimi
when setting up jsk_recognision i clone the repo and run
rosdep install --from-paths <path> --ignore-src -r -y
. This causes the error:when installing fcn manually it says: