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

TypeError: a bytes-like object is required, not 'str' #144

Open
copysent opened this issue Jul 8, 2024 · 0 comments
Open

TypeError: a bytes-like object is required, not 'str' #144

copysent opened this issue Jul 8, 2024 · 0 comments

Comments

@copysent
Copy link

copysent commented Jul 8, 2024

The error message I see:

[qtpyvcp.app.launcher][DEBUG] Initializing widgets (launcher.py:81) Exception in thread Thread-1 (hal_poll_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/qtpyvcp/utilities/obj_status.py", line 336, in hal_poll_thread raw = rawtuple[0].split('\n') ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: a bytes-like object is required, not 'str'

The location of the code in the tree:

raw = rawtuple[0].split('\n')

Example code for testing:

from qtpyvcp.utilities.obj_status import HALStatus
hal_status = HALStatus()

def test_def(value):
    pass

pin = hal_status.getHalPin('some.existing.pin')

pin.connect(test_def)
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