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

Casting error in _send_request #183

Open
pkolbeck opened this issue Nov 14, 2024 · 0 comments
Open

Casting error in _send_request #183

pkolbeck opened this issue Nov 14, 2024 · 0 comments

Comments

@pkolbeck
Copy link

pkolbeck commented Nov 14, 2024

develop branch
importing dripline in the dl-py develop container.

Encountering this error, happens in get as well.
seems to be a typing problem possibly having to do with the pybind11 definition of the MsgRequest class in message_pybind.hh

https://github.com/driplineorg/dripline-python/blob/c0e1e1cfb333969347a59480815fd337dcf0c695/module_bindings/dripline_core/message_pybind.hh#L78

>>> interface.cmd("roach2_interface","is_running")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.12/site-packages/dripline/core/interface.py", line 151, in cmd
    reply_pkg = self._send_request( msgop=op_t.cmd, target=endpoint, specifier=specifier, lockout_key=lockout_key, payload=payload )
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/dripline/core/interface.py", line 76, in _send_request
    a_request.lockout_key = lockout_key if lockout_key is not None else ""
    ^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad lexical cast: source type value could not be interpreted as target
>>> 
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