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

I got an error message If you see this message, please send a mail with the following information: #21

Open
MarcelRobitaille opened this issue Mar 3, 2021 · 0 comments

Comments

@MarcelRobitaille
Copy link

I tried thorpy.message.discover_stages, and I get this error message. It says to send a mail, but doesn't say to whom.

If you see this message, please send a mail with the following information: 
- controller type
- stage type
- this data: <MGMSG_HW_GET_INFO>(dest=0x1, src=0x50, serial_number=81847161, model_number=b'TPZ001 \x00', type=18, firmware_version=b'\x04\x00\x02\x00', notes=b'T-Cube Piezo Controller\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', empty_space=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', hw_version=2, mod_state=0, nchs=1)
Constructed: SingleControllerPort('/dev/ttyUSB2',81847161)
Traceback (most recent call last):
  File "/tmp/thorlabsthingy/main.py", line 32, in <module>
    stages = list(discover_stages())
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/comm/discovery.py", line 31, in discover_stages
    for stage in p.get_stages().values():
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/comm/port.py", line 247, in get_stages
    ret[k] = GenericStage(self, 0x01, stage_name_from_get_hw_info(self._info_message))
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/stages/__init__.py", line 102, in __init__
    self._conf_stage_id = self._config.getint(ini_section, 'Stage ID')
  File "/usr/lib/python3.9/configparser.py", line 818, in getint
    return self._get_conv(section, option, int, raw=raw, vars=vars,
  File "/usr/lib/python3.9/configparser.py", line 808, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
  File "/usr/lib/python3.9/configparser.py", line 803, in _get
    return conv(self.get(section, option, **kwargs))
  File "/usr/lib/python3.9/configparser.py", line 781, in get
    d = self._unify_values(section, vars)
  File "/usr/lib/python3.9/configparser.py", line 1149, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: None
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/comm/port.py", line 101, in run
    msg = self._recv_message(False)
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/comm/port.py", line 214, in _recv_message
    msg = super()._recv_message(blocking)
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/comm/port.py", line 142, in _recv_message
    msg = Message.parse(self._buffer)
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/message/_base.py", line 162, in parse
    msg_cls = Message.get_message_class_by_id(message_id)
  File "/tmp/thorlabsthingy/venv/lib/python3.9/site-packages/thorpy/message/_base.py", line 142, in get_message_class_by_id
    raise KeyError('Unknown message id {0}'.format(message_id))
KeyError: 'Unknown message id 1633'
Destructed: <None on SingleControllerPort('/dev/ttyUSB2',81847161) channel 1>
Destructed: SingleControllerPort('/dev/ttyUSB2',81847161)
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

1 participant