ImportError: No module named wx
Hi all,
When launching the node "joint_state_publisher" , I get the following error:
Traceback (most recent call last): File "/opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher", line 5, in <module>import wx ImportError: No module named wx
I had a similar problem not long ago with a different module: see my question here
I think it has something to do with my python installation, however I have no idea how to check if this is installed correctly.
Best, Ruud
Python nodes are not compiled, so I'm confused about your description of your issue. Could you elaborate a bit? What is the output if you start
python
in a shell, then tryimport wx
?Of course! It cannot find the module.
Python 2.7.10 |Anaconda 2.2.0 (64-bit)| (default, May 28 2015, 17:02:03) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
import wx Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named wx
This is a from-source install on redhat? Please include relevant info in your OP. OS, version, how you installed, which tutorials you follows - if any, etc.
@gvdhoorn, thank you for your input. Currently I get a different compilation error, I will remove my question until I can provide a clear overview of what is going on.
I have met the same question when I rosrun the joint_state_publisher.Traceback here is the output (most recent call last): File "/opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher", line 5, in <module> import wx ImportError: No module named wx
I installed a tool to manage different version of python named pyenv. I don't know whether this result in the problem.