You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On M3 Mac when just running inference, zmq_ports that are already in use are passed on to the LossViewer. This results in the following error.
Software versions:
SLEAP: 1.4.1a2
TensorFlow: 2.9.2
Numpy: 1.24.4
Python: 3.9.21
OS: macOS-14.5-arm64-arm-64bit
Happy SLEAPing! :)
Traceback (most recent call last):
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/dialog.py", line 723, in run
new_counts = runners.run_learning_pipeline(
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/runners.py", line 565, in run_learning_pipeline
trained_job_paths = run_gui_training(
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/runners.py", line 628, in run_gui_training
win = LossViewer(zmq_ports=zmq_ports)
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/widgets/monitor.py", line 622, in __init__
self._setup_zmq(zmq_context)
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/widgets/monitor.py", line 832, in _setup_zmq
self.zmq_ctrl.bind(controller_address)
File "/Users/elizabethberrigan/miniforge3/envs/sleap_dev/lib/python3.9/site-packages/zmq/sugar/socket.py", line 311, in bind
super().bind(addr)
File "_zmq.py", line 917, in zmq.backend.cython._zmq.Socket.bind
File "_zmq.py", line 179, in zmq.backend.cython._zmq._check_rc
zmq.error.ZMQError: Address already in use (addr='tcp://127.0.0.1:9000')
Expected behaviour
If the zmq_ports are already in use, ports should be found that are open.
Actual behaviour
Inference is not able to run because the port is already in use.
Inference ran once but fails again when trying to track
Process return code: 0
Traceback (most recent call last):
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/dialog.py", line 723, in run
new_counts = runners.run_learning_pipeline(
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/runners.py", line 565, in run_learning_pipeline
trained_job_paths = run_gui_training(
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/learning/runners.py", line 628, in run_gui_training
win = LossViewer(zmq_ports=zmq_ports)
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/widgets/monitor.py", line 622, in __init__
self._setup_zmq(zmq_context)
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/widgets/monitor.py", line 816, in _setup_zmq
self.zmq_ports["publish_port"] = find_free_port(
File "/Users/elizabethberrigan/repos/sleap/sleap/gui/widgets/monitor.py", line 805, in find_free_port
raise RuntimeError(
RuntimeError: Could not find free port to display training progress after 10 attempts. Please check your network settings or use the CLI `sleap-train` command.
Screenshots
How to reproduce
Run inference with tracking. Behavior changes each time I run inference.
The text was updated successfully, but these errors were encountered:
Bug description
On M3 Mac when just running inference, zmq_ports that are already in use are passed on to the LossViewer. This results in the following error.
Expected behaviour
If the zmq_ports are already in use, ports should be found that are open.
Actual behaviour
Inference is not able to run because the port is already in use.
Your personal set up
Software versions:
SLEAP: 1.4.1a2
TensorFlow: 2.9.2
Numpy: 1.24.4
Python: 3.9.21
OS: macOS-14.5-arm64-arm-64bit
Environment packages
Logs
Not seeing address in use here:
Inference ran once but fails again when trying to track
Screenshots
How to reproduce
Run inference with tracking. Behavior changes each time I run inference.
The text was updated successfully, but these errors were encountered: