rviz runtime error in groovy at Mac OS X(homebrew) [closed]
I would like to use rviz in groovy at Mac OS X (mountain lion). I builded rviz with homebrew described in http://www.ros.org/wiki/groovy/Installation/OSX/Homebrew/Source
rviz doesn't work well. Using python installed by homebrew would cause this problem. If I remove python by brew, rviz works well. But other ros system does't work. Which python should I use. (installed by brew or originally installed)
Error messages were listed below.
$ rosrun rviz rviz
[ INFO] [1358926010.595017000]: rviz version 1.9.20
[ INFO] [1358926010.595069000]: compiled against OGRE version 1.7.4
(Cthugha)
2013-01-23 16:26:50.602 rviz[9407:f0b] *** WARNING: Method
userSpaceScaleFactor in class NSView is deprecated on 10.7 and
later. It should not be used in new applications. Use
convertRectToBacking: instead.
failed to load symbols, rosdep will not function properly
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/rosdep2/rospack.py",
line 39, in <module>
from .main import _get_default_RosdepLookup
File "/usr/local/lib/python2.7/site-packages/rosdep2/main.py", line
40, in <module>
import urllib2
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 94, in <module>
import httplib
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py",
line 79, in <module>
import mimetools
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/mimetools.py",
line 6, in <module>
import tempfile
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py",
line 34, in <module>
from random import Random as _Random
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py",
line 47, in <module>
from os import urandom as _urandom
ImportError: cannot import name urandom
[rospack] Error: could not find python module 'rosdep2.rospack'. is
rosdep up-to-date (at least 0.10.4)?
[librospack]: error while executing command
libc++abi.dylib: terminate called throwing an exception
Abort trap: 6