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.
From @kwc
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
Problem running roscore on macosx10.6
Ogre_tools installation issues on Snow Leopard (with ROS diamondback)
rviz installation issues on 64bit snow-leopard using ROS Diamondback
Trouble building Roslib (diamondback) on 64-bit OSX Snow Leopard.
Can ros use the unstable branch of openni for OS X?
How to tell rosdep that binaries are installed?
Trouble with hogman_minimal on OS X
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
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.
kwc ( 2012-02-20 11:49:32 -0500 )edit