Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rosrun rqt_graph rqt_graph shows error NameError: name 'basestring' is not defined #79

Closed
manish-nayak opened this issue Jan 23, 2017 · 3 comments

Comments

@manish-nayak
Copy link

manish-nayak commented Jan 23, 2017

I have started the ROS tutorials and when I try to run rqt_graph it gives me a basestring error.
I am using Ubuntu 16.04, and Kinetic distro. I am using python 3.5.2 using Anaconda.

Traceback (most recent call last): File "/opt/ros/kinetic/lib/rqt_graph/rqt_graph", line 8, in <module> sys.exit(main.main(sys.argv, standalone='rqt_graph.ros_graph.RosGraph')) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/main.py", line 59, in main return super(Main, self).main(argv, standalone=standalone, plugin_argument_provider=plugin_argument_provider, plugin_manager_settings_prefix=str(hash(os.environ['ROS_PACKAGE_PATH']))) File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/main.py", line 349, in main from .perspective_manager import PerspectiveManager File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/perspective_manager.py", line 44, in <module> class PerspectiveManager(QObject): File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/perspective_manager.py", line 48, in PerspectiveManager perspective_changed_signal = Signal(basestring) NameError: name 'basestring' is not defined

I thought of proceeding for the time being, but I get same error on running rqt_console rqt_console; also in rqt_plot rqt_plot.

@dirk-thomas
Copy link
Contributor

dirk-thomas commented Jan 23, 2017

ROS officially only supports Python 2. So I would suggest you use that instead. Pull requests to make the code work with both Python versions are always welcome 😉

@dirk-thomas dirk-thomas changed the title rosrun rqt_graph rqt_graph shows error NameError: name 'basestring' is not defined [bug] rosrun rqt_graph rqt_graph shows error NameError: name 'basestring' is not defined Jan 23, 2017
@dirk-thomas
Copy link
Contributor

While addressing other tickets I took some time to at least fix the obvious syntax errors with Python. See the related PRs:

But I don't expect that everything and especially all plugins will work flawlessly in Python 3. Therefore I still recommend to use Python 2 for ROS.

@manish-nayak
Copy link
Author

manish-nayak commented Jan 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants