dynamic reconfigure

asked 2017-02-02 03:05:08 -0500

Azhar gravatar image

updated 2017-02-02 10:51:32 -0500

gvdhoorn gravatar image

i get this error when i run a node.

azhar@Azhar:~/catkin_ws$ rosrun dynamic_tutorials server.py 
Traceback (most recent call last):
File "/home/azhar/catkin_ws/src/dynamic_tutorials/nodes/server.py", line 5, in <module>
  from dynamic_reconfigure.server import Server
File "/opt/ros/indigo/lib/python2.7/dist-packages/dynamic_reconfigure/server.py", line 49, in <module>
  from dynamic_reconfigure import DynamicReconfigureCallbackException
ImportError: cannot import name DynamicReconfigureCallbackException

background. The node server.py was working initially. However, i moved the package to another location temporarily, as i wanted to test out another package from github, with the same name.

I git-clone the new package, catkin_make and tried to run . Once i finished using it, i deleted it and moved my initial package back.

I get this error again when i try to run the node. So , i believe the package i downloaded messed up some of the files.(because it has the same name)

Can anyone suggest any ways on how to fix this? Thank you!

My package: https://github.com/azhar92/dynamic_re...

Edit: i went to the /opt/ros/indigo/lib/python2.7/dist-packages/dynamic_reconfigure/server.py file and commented the from dynamic_reconfigure import DynamicReconfigureCallbackException.

My dynamic reconfigure works just like last time, but i fear it might have other consequences.

Can someone knowledgable about dynamic_reconfigure explain to me the significance of the DynamicReconfigureCallbackException? and does removing it leads t other problems?

edit retag flag offensive close merge delete



Have you tried the "clean build", which means deleting the devel/ and build/ then build again.

Besides, all in all, the exception is like the fuse to the electric circuit. It is some kind of protection from server crash, so it is okay to move out the exception area until you meet some weird bug.

FrozenCh gravatar image FrozenCh  ( 2017-02-02 21:29:58 -0500 )edit

I disagree, you should not remove the Exception. And especially not in /opt/ros. This will either be overwritten during an update or actually prevent an update from happening.

Trying a clean build is a good idea though. Sadly I cannot help with you problem....

mgruhler gravatar image mgruhler  ( 2017-02-03 01:22:31 -0500 )edit

I wrote okay that means not okay actually. Sorry for misleading, just like that it is dangerous to replace the fuse to other regular conductivity material. Messing up with the exception is dangerous.

FrozenCh gravatar image FrozenCh  ( 2017-02-03 01:42:44 -0500 )edit

Haha, this happens :-) Fully with you then.

mgruhler gravatar image mgruhler  ( 2017-02-03 01:53:52 -0500 )edit

Thanks guys! clean build helped:)

Azhar gravatar image Azhar  ( 2017-02-03 05:51:09 -0500 )edit