5
 >>> import yaml   
Traceback (most recent call last): 
 File "<stdin>", line 1, in <module>
 File "/tools/python_libs/yaml/__init__.py", line 2, in <module>
   from error import *
ModuleNotFoundError: No module named 'error'

I don't see how to set my PYTHONPATH with anaconda3.

Am I missing an install step?

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
Ray Salemi
  • 5,247
  • 4
  • 30
  • 63

1 Answers1

0

I have the same situation, but with the ROS. The same error reproduces when you use python 3 instead of python 2. You can see corresponding discussion here. For some reasons I would like to use python3 instead of python2, so I need to find out, how to get rid of this error.

I can suggest two solutions right now:

  1. Either use python2 instead of python3, as suggested in ROS discussion
  2. Or try to install yaml with pip3 for python3 (not pip). I think it may help in this situation. See here for installation instructions.