Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in camera Preview #1249

Open
hagikent opened this issue Dec 23, 2024 · 3 comments
Open

Error in camera Preview #1249

hagikent opened this issue Dec 23, 2024 · 3 comments

Comments

@hagikent
Copy link
Collaborator

In one rig (428-9-B), when I hit Preview, I see the following error.
Any clue @XX-Yin @ZhixiaoSu ?

The FLIR cameras are connected, recognized, set-up, and properly running.


Traceback (most recent call last):
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\Dialogs.py", line 1206, in _start_preview
self.MainWindow.Channel.CameraStartType(int(2))
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\rigcontrol.py", line 226, in CameraStartType
self.send("/camerastarttype", value)
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\rigcontrol.py", line 60, in send
return self.client.sendOSC(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\site-packages\pyOSC3\OSC3.py", line 2869, in sendOSC
txOk = self._transmitMsgWithTimeout(msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\Lib\site-packages\pyOSC3\OSC3.py", line 2857, in _transmitMsgWithTimeout
len_big_endian = array.array('c', '\0' * 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a str to initialize an array with typecode 'c'

@XX-Yin
Copy link
Collaborator

XX-Yin commented Dec 23, 2024

I have no idea. And I can help take a look if you are in this institute.

@hagikent
Copy link
Collaborator Author

would be great, I will be around this week except 12/27. Will ping!

@XX-Yin
Copy link
Collaborator

XX-Yin commented Dec 24, 2024

would be great, I will be around this week except 12/27. Will ping!

I may not be in this institute on 12/27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants