0
$\begingroup$

Rosanswers logo

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 roslaunch.main(['roscore', '--core']+sys.argv[1:]) AttributeError: 'module' object has no attribute 'main'


Originally posted by mike6426 on ROS Answers with karma: 1 on 2011-12-03

Post score: 0


Original comments

Comment by kwc on 2012-02-20:
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.

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

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.


Originally posted by tfoote with karma: 58457 on 2012-05-27

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$
0
$\begingroup$

Rosanswers logo

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?


Originally posted by William with karma: 17335 on 2012-02-20

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.