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

Interrogator should write bytes, not unicode strings. #139

Open
ashmastaflash opened this issue Dec 26, 2019 · 0 comments
Open

Interrogator should write bytes, not unicode strings. #139

ashmastaflash opened this issue Dec 26, 2019 · 0 comments

Comments

@ashmastaflash
Copy link
Contributor

26.12.19 16:11:20 (-0500)  main    File "./runner.py", line 449, in <module>
26.12.19 16:11:20 (-0500)  main      main()
26.12.19 16:11:20 (-0500)  main    File "./runner.py", line 35, in main
26.12.19 16:11:20 (-0500)  main      config = sitchlib.ConfigHelper()
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/sitchlib/config_helper.py", line 23, in __init__
26.12.19 16:11:20 (-0500)  main      self.detector = dd()
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/sitchlib/device_detector.py", line 29, in __init__
26.12.19 16:11:20 (-0500)  main      self.gsm_radios = DeviceDetector.find_gsm_radios(self.usbtty_ports)
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/sitchlib/device_detector.py", line 43, in find_gsm_radios
26.12.19 16:11:20 (-0500)  main      if DeviceDetector.is_a_gsm_modem(devpath):
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/sitchlib/device_detector.py", line 90, in is_a_gsm_modem
26.12.19 16:11:20 (-0500)  main      test_command)
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/sitchlib/device_detector.py", line 110, in interrogator
26.12.19 16:11:20 (-0500)  main      serconn.write(test_command)
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/venv/lib/python3.6/site-packages/serial/serialposix.py", line 532, in write
26.12.19 16:11:20 (-0500)  main      d = to_bytes(data)
26.12.19 16:11:20 (-0500)  main    File "/app/sitch/venv/lib/python3.6/site-packages/serial/serialutil.py", line 63, in to_bytes
26.12.19 16:11:20 (-0500)  main      raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
26.12.19 16:11:20 (-0500)  main  TypeError: unicode strings are not supported, please encode to bytes: 'ATI \r\n'```
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