ROBOTIS-GIT / turtlebot3_autorace

Autonomous Driving with TurtleBot3
http://turtlebot3.robotis.com
Apache License 2.0
88 stars 50 forks source link

Unable to run Camera Imaging Calibration (Item 13.2.3.1 Tutorials: 4.1 #36

Closed ARLunan closed 5 years ago

ARLunan commented 5 years ago

After completing eManual 13.2.1 Tutorials: 1 Requirements with current github source and compilation, and executing 4. Calibration Item 1. 2. Camera Launch 3: rqt_image_view successfully showing the compressed image, the following resulted in item 4. Remote PC

Remote PC turtlebot@herschel:~$ rosrun rqt_reconfigure rqt_reconfigure Failed to load Python extension for LZ4 support. LZ4 compression will not be available. Could not import "pyqt" bindings of qt_gui_cpp library - so C++ plugins will not be available: Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in from . import libqt_gui_cpp_sip ImportError: dynamic module does not define module export function (PyInit_libqt_gui_cpp_sip)

Traceback (most recent call last): File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 275, in _selection_changed_slot self._selection_selected(index_current, rosnode_name_selected) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_reconfigure/node_selector_widget.py", line 225, in _selection_selected item_widget = item_child.get_dynreconf_widget() File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_reconfigure/treenode_qstditem.py", line 154, in get_dynreconf_widget self._param_name_raw) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_reconfigure/dynreconf_client_widget.py", line 90, in init self.reconf.config_callback = self.config_callback File "/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/client.py", line 276, in set_config_callback self._config_callback(self.config) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_reconfigure/dynreconf_client_widget.py", line 106, in config_callback rospy.logdebug('config_callback name={} v={}'.format(name, v)) NameError: name 'name' is not defined Aborted (core dumped) turtlebot@herschel:~$

The same behavior results from running the regular Appendix 25.5.5.2 Run raspicam node launch, rqt_ image_view (which works as expected) then crashes with the "pyqt" error at $rosrun rqt_reconfigure reconfigure.

JaehyunShim commented 5 years ago

@red24dog

Please refer to the following links (link1, link2) It seems like the problem is on python. Remove all python related packages and reinstall it following this instruction

If it still doesn't work, reinstall your OS and try it again and let us know the result.

Regards, Ryan

ARLunan commented 5 years ago

Solved by your suggested action to remove python related packages. [not related directly to Turtlebot3] and ~$ rqt reconfigure reconfigure works. Problem was several months ago, I installed anaconda3 on my Remote PC, which was a bad idea. It installed its own Python 3.7.4 to the Home directory, added a script to the .bashrc which expropriated "python" to this python3. I uninstalled anaconda3 (Anaconda-Clean) , deleted the ~/anaconda3 folder and restored the .bashrc to the turtlebot3 eManual defined version. I did not need to reinstall the OS(Ubuntu 16.04) or python2.7.12. After this action, ~$ which python, python2, python3 displayed /usr/bin/python, /usr/bin/python2, python3 /usr/bin/python3, respectively. Lesson is to be careful installing any python packages in the Remote PC (and SBC) . Thank you Ryan