No module named dateutil.parser
I'm trying to install ROS in a CentOS 7.0. I did these steps:
sudo yum install python-rosdep
sudo pip install rosinstall-generator
sudo yum install python-wstool python-rosinstall @buildsys-build
rosinstall_generator desktop_full --rosdistro kinetic --deps --wet-only --tar > kinetic-desktop-full-wet.rosinstall
But when I did the following:
[me@localhost ros_catkin_ws]$ wstool init -j8 src kinetic-desktop-full-wet.rosinstall
And I get:
ERROR: Cannot find required rosinstall library version, check your installation (also of vcstools) is up-to-date. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib.
No module named dateutil.parser
I have tried this:
[me@localhost ros_catkin_ws]$ python -c "import rosinstall; print rosintall.__version__"
And I get:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/rosinstall/__init__.py", line 33, in <module>
import wstool.helpers
File "/usr/lib/python2.7/site-packages/wstool/helpers.py", line 37, in <module>
from wstool.config_elements import SetupConfigElement
File "/usr/lib/python2.7/site-packages/wstool/config_elements.py", line 39, in <module>
from vcstools.vcs_abstraction import get_vcs_client
File "/usr/lib/python2.7/site-packages/vcstools/__init__.py", line 44, in <module>
from vcstools.svn import SvnClient
File "/usr/lib/python2.7/site-packages/vcstools/svn.py", line 48, in <module>
import dateutil.parser # For parsing date strings
ImportError: No module named dateutil.parser
By the way /usr/local/lib
is empty.
Any idea about this error?
I also run:
[me@localhost ros_catkin_ws]$ python -c "import dateutil"
With the error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named dateutil
Looks like
dateutil
(Python module) is not installed, or it doesn't have theparser
sub module on CentOS. Can you runpython
in abash
session and then tryimport dateutil
? That should tell you whether it is installed / usable.@gvdhoorn I run it and I get
ImportError: No module named dateutil
.Well that would seem to suggest that
dateutil
is not installed at all.Fix for now: install the
datutil
package. I don't know what it is called on CentOS.And then ideally report the fact that
dateutil
is not listed as a dependency of these tools.