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

Python3 bglib.py broken in Python 3.5.2 #45

Open
alvarop opened this issue Dec 17, 2017 · 0 comments
Open

Python3 bglib.py broken in Python 3.5.2 #45

alvarop opened this issue Dec 17, 2017 · 0 comments

Comments

@alvarop
Copy link

alvarop commented Dec 17, 2017

When trying to run (a slightly modified copy of) bglib_test_scanner.py with python3 using the Python3/bglib.py, the following error occurs:

$ python3 bglib_test_scanner.py 
Traceback (most recent call last):
  File "bglib_test_scanner.py", line 117, in <module>
    main()
  File "bglib_test_scanner.py", line 90, in main
    ble.send_command(ser, ble.ble_cmd_connection_disconnect(0))
  File "/home/alvaro/code/bglib/Python3/Examples/bglib.py", line 618, in send_command
    if self.packet_mode: packet = chr(len(packet) & 0xFF) + packet
TypeError: Can't convert 'bytes' object to str implicitly
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