-
Notifications
You must be signed in to change notification settings - Fork 26
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
Not working with python3 #4
Comments
Any new on this topic? I can successfully |
Just for any other trying to use this library in Python3. I was able to make some very simple changes in the module's imports, transforming the same into relatives instead of absolute and worked perfectly. I only made the changes to the Client because it is what I needed, but probably the same procedure can be done in the server side. |
hi, can you please give a bit more details on your tweaks to make it work with python3 please? thanks |
@Tetsujinfr I do not remember how many changes I made as compared with the original code (it was actually not so much), but let me share my modified library so that you can use the same and/or compare the code with the original files. As I mentioned in my old post, it only covers the client side. I hope it helps you. |
thanks a lot for the lightspeed response. I actually just got it to work and I was coming back here to share the tweaks, so I go for it while it is still fresh in my mind (and bash history). Indeed there were quite a few tweaks to be made.
4.2 in the file
I think that should be it. If you have another error while typing Good luck to all, you can still use rtomasa zip file above as well. |
@emlid Is there a way to contribute @Tetsujinfr's changes back to the repository and also push this to PyPI? I also had to patch tcpbridge and bluetool manually now. And while I can push bluetool as a fork, the license notices in tcpbridge prohibit me from doing the same – and emlid/tcp-bridge seems to be private or non-existent. |
My script runs perfectly fine in Python 2.7.16, I can connect to a bluetooth speaker easily. |
Ientified the root cause: Different string handling in Python 3. Ensure the string encoding is utf-8 and everything is fine. Required e.g. when comparing device names and device MAC-addresses.
|
Can you write the package for python3, so that it would be more useful
The text was updated successfully, but these errors were encountered: