AllenNeuralDynamics / AllenNeuralDynamics/python-newscale
Unprintable USBxpress exceptions
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
We are using this repo in the behavior training room to move the lickspout stages. We occasionally get this error.
(1) the error itself is a problem, because it stops our ability to use the stages
(2) the fact that the error is "unprintable" is a problem because if you try to log the error in a try/except block you generate a new error.
**To Reproduce**
I cannot reproduce this error, but its happening about ~15 times a week in the training room
**Screenshots**
```
Traceback (most recent call last):
File "Foraging.py", line 413, in _StageSerialNum
self._connect_stage(instance)
File "Foraging.py", line 447, in _connect_stage
instance.io.open()
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 356, in open
self._dll.SI_Open(ctypes.c_ulong(self.device_num), ctypes.byref(handle))
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 61, in usbxpress_errcheck
raise USBXpressException("USBXpress runtime error: %r" % \
newscale.usbxpress.USBXpressException:
```
**Desktop (please complete the following information):**
- OS: Windows
- axes-on-target branch
Contributor guide
Assessment
This issue has not been assessed yet.