asked 2011-12-03 22:51:47 -0500mike6426
I installed ROS via the instructions on installing on Mac OSX with no errors during installation. I need ROS to work with Python 3.2.2 (it needs to integrate with MORSE and therefore with Blender, and they both use 3.2.2), so I fixed all of the generic print statements needing parentheses, but then I get to this error. I've uninstalled and reinstalled, as well as the ever typical rebooting, and it is still not fixed.
Traceback (most recent call last): File "/Users/o2wtf2o/ros/ros/bin/roscore", line 36, in <module> roslaunch.main(['roscore', '--core']+sys.argv[1:]) AttributeError: 'module' object has no attribute 'main'
answered 2012-05-27 12:20:11 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
FYI: you still need to run the ROS command-line tools with Python 2. The MORSE/Blender fixes only apply the the underlying communication libraries. Thus, run MORSE with Py3k, run ROS with Python 2.
What version of ROS are you trying to use? As far as I know many of the Python3 compatibility fixes were integrated into ROS Electric. You might try to update to that version.
If you are using Electric, how did you install Python3 and can you provide us with the PYTHON_PATH?
Asked: 2011-12-03 22:51:47 -0500
Seen: 259 times
Last updated: May 27 '12