fkie / multimaster_fkie

ROS stack with FKIE packages for multi-robot (discovering, synchronizing and management GUI)
BSD 3-Clause "New" or "Revised" License
267 stars 107 forks source link

module 'reduced_nm' has no attribute 'StartHandler' #175

Closed tkazik closed 2 years ago

tkazik commented 2 years ago

Hi

I am encountering an issue that I am a bit clueless about (on the noetic-devel branch). I set up both machines according to this guide and everything of section 1 worked nicely. However, when firing up node_manager and start discovery on the remote, I encounter the following issue:

[WARN] [1644535863.463285]: ERROR while start 'master_discovery': b"module 'reduced_nm' has no attribute 'StartHandler'\n"
[WARN] [1644535863.464635]: start discovering on octopi failed:
    b"module 'reduced_nm' has no attribute 'StartHandler'\n"

The exception is raised here:

https://github.com/fkie/multimaster_fkie/blob/11c985a163969654e7bb68bea647cae9a6a25334/fkie_node_manager/src/fkie_node_manager/start_handler.py#L181

Any hint or pointer is greatly appreciated, thx!

atiderko commented 2 years ago

Hi @tkazik

I mean, I've seen this error message before, but I can't remember the context...

What happens if you ssh on octopi and call: rosrun fkie_node_manager remote_nm.py --package fkie_master_discovery --node_type master_discovery --node_name /master_discovery _mcast_port:=11511 _mcast_group:=226.0.0.0 _robot_hosts:=[] _heartbeat_hz:=0.5 __name:=master_discovery

tkazik commented 2 years ago

Hi @atiderko

Thx for the quick follow-up. I just tried your suggestion on octopi through ssh and unfortunately, I get the same response:

module 'reduced_nm' has no attribute 'StartHandler'

No further information before/afterward and the node terminates after this output. I don't really understand this behavior, as the module should be imported on the following line:

https://github.com/fkie/multimaster_fkie/blob/56f48c2a297017165144d05201b1bbc6fe5f336c/fkie_node_manager/src/fkie_node_manager/__init__.py#L58

Somehow, I suspect this to be related to a python2 vs python3 issue...any other ideas?

PS: Just tested again with the latest noetic-devel-branch, but unfortunately got the same behavior. PPS: The octopi runs an octoprint image with Debian buster and ROS noetic compiled from source.

atiderko commented 2 years ago

Hi @tkazik, it may be that python3 is more restrictive. I changed the module 'reduced_nm'. Can you please try again now?

tkazik commented 2 years ago

Sweet, works like a charm now! Thank you so much for maintaining and improving this nice package...even during the weekend!