-
Notifications
You must be signed in to change notification settings - Fork 19
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
UUID._init_from_int() size bugfix in uuid_.py #65
Conversation
CI failure does not seem to be related to my change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! Thank you!
I've asked on the Discord about it. Someone else may know. |
This also fixes an exception when creating a Characteristic with 16 bit UUID:
|
@jepler I am trying to fix the test failure here, which is the dreaded: @makermelissa originally encountered this, thought it was a pre-commit problem, and was rebuffed here: You made a comment in the `pre-commit issue above: There was also the remark that it was due to using virtualenv instead of venv, but I can't see that we are doing that. Do you remember this, or understand this issue more deeply? I am just going in circles, with detours to stackoverflow and various github issues in the Python world. I don't see anything we are requiring or pinning that might be causing this problem. I would like to remove the requirement to pin to Python 3.11. Might be due to something in this repo, something in: Also I'll ping @tekktrik in case he has an idea. |
Nothing comes to mind immediately, but I can also do some digging. I don't think I've encountered this specific failure, however, though. It does look like its setuptools though (or something using it) since Python 3.12 does in fact remove |
I can look into this in the evening, I have suspect we can pin either upgrade setuptools or pip, or pin virutalenv to a version and it should get it to work. |
Thanks. It is not clear to me whether we're using the /usr/bin |
|
Maybe we need to fetch a virtualenv that's compatible with 3.12 |
Using |
Build fixed in #67 |
This reverts commit e857b4a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi
I think the pull request doesn't require much explaining: 16bit uuids and 32 bit uuids will always get length of 32 bits.
I am using this to DFU via BLE nRF52 microcontrollers.
We have been using the library for years, just found this when installed the libraries on new Raspberry Pi 4 (this change landed 7 months ago).
Where my actual problem happened was:
adafruit_ble.__init__.py
contains_discover_remote()
which callsself._bleio_connection.discover_remote_services((uuid.bleio_uuid,))
Filtered discovery of remote services gives no results if UUID size is falsely 32 instead of 16 bit.
Btw thanks for amazing lib.