AllenNeuralDynamics / dynamic-foraging-task

Bonsai/Harp workflow for Dynamic Foraging with Python GUI for visualization and control
MIT License
5 stars 4 forks source link

Could not connect to device. Is the device connected or currently being used? #925

Open alexpiet opened 3 days ago

alexpiet commented 3 days ago

This issue was automatically generated from GUI logs.

file: stepper_motor_device.py
function: init
line 58
logfile: DT300178/DT300178-A_gui_log_2024-11-01_10-35-23.txt
boxes: 6D, 7D, 9D
count: 3
text: Could not connect to device. Is the device connected or currently being used?


Log context

10:35:24 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1392:Trying to connect to already running Bonsai
10:35:24 AM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1445:connecting to GUI and Bonsai through OSC
10:35:25 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1396:Could not connect: timed out
10:35:25 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1407:Starting Bonsai
10:35:25 AM:INFO:Foraging:Foraging.py:log_subprocess_output:line 4861:BONSAI logging starting
10:35:26 AM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1445:connecting to GUI and Bonsai through OSC
10:35:27 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1421:Could not connect, total waiting time 0.5 seconds: timed out
10:35:27 AM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1445:connecting to GUI and Bonsai through OSC
10:35:28 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1421:Could not connect, total waiting time 1.0 seconds: timed out
10:35:29 AM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1445:connecting to GUI and Bonsai through OSC
10:35:30 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1421:Could not connect, total waiting time 1.5 seconds: timed out
10:35:30 AM:INFO:Foraging:Foraging.py:_ConnectOSC:line 1445:connecting to GUI and Bonsai through OSC
10:35:30 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1424:Connected to Bonsai after 2.0 seconds
10:35:30 AM:INFO:Foraging:Foraging.py:_InitializeBonsai:line 1425:Bonsai started successfully
10:35:30 AM:INFO:Foraging:Foraging.py:_ConnectSlims:line 1263:Attempting to connect to Slims
10:35:31 AM:INFO:Foraging:Foraging.py:_ConnectSlims:line 1280:Successfully connected to Slims
10:35:31 AM:WARNING:Dialogs:Dialogs.py:_LoadCalibrationParameters:line 509:could not find water calibration parameters: C:\Users\svc_aind_behavior\Documents\ForagingSettings\WaterCalibrationPar_1.json
10:35:31 AM:WARNING:warnings:warnings.py:_showwarnmsg:line 110:C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Visualization.py:403: UserWarning: No artists with labels found to put in legend.  Note that artists whose label start with an underscore are ignored when legend() is called with no argument.
  self.ax1.legend(loc='lower right', fontsize=8)

10:35:31 AM:INFO:Foraging:Foraging.py:keyPressEvent:line 1919:processing parameter changes
10:35:31 AM:INFO:Foraging:Foraging.py:_InitializeMotorStage:line 857:Scanning for newscale stages
10:35:31 AM:WARNING:Foraging:Foraging.py:_InitializeMotorStage:line 867:Could not find any instances of NewScale Stage
10:35:31 AM:INFO:Foraging:Foraging.py:_insert_stage_widget:line 239:Inserting Stage Widget
10:35:31 AM:INFO:connection:connection.py:_connect:line 688:Connecting to aibspi(10.128.108.106):2181, use_ssl: False
10:35:31 AM:INFO:client:client.py:_session_callback:line 561:Zookeeper connection established, state: CONNECTED
10:35:31 AM:INFO:mpeconfig:mpeconfig.py:cache_remote_config:line 310:Copying previous configuration to C:/ProgramData/AIBS_MPE/stage_widget/config/stage_widget.yml.241101-103531.bck
10:35:31 AM:INFO:connection:connection.py:_connect_attempt:line 655:Closing connection to aibspi:2181
10:35:31 AM:INFO:client:client.py:_session_callback:line 567:Zookeeper session closed, state: CLOSED
10:35:32 AM:ERROR:stepper_motor_device:stepper_motor_device.py:__init__:line 58:Could not connect to device. Is the device connected or currently being used?
ellahiltonvano commented 2 days ago

related to #895?

alexpiet commented 2 days ago

Yes, this looks like the same issue as #895.