-
Notifications
You must be signed in to change notification settings - Fork 25
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
🚀 5.0.0 #280
Conversation
… Pi 5 (#274) * move to gpiozero * fix: use same relay object * fix: inverted state * fix(driver): add class method for get_or_create_Relay * fix(driver): fix xor * fix(__init__): remove useless space * fix(driver): remove to_return + add explicit pin_factory + fix xor * feat: drop support to py<=3.8 * fix(test): fix test_driver * fix(test_driver): revert test data + fix test + add get_or_create test * fix(test): remove test_driver_get_or_create * fix(test): fix init tests * fix(driver): add typing to relays list + fix mypy config * fix(test): remove unused import * fix(driver+test): remove Trailing whitespaces
🚀
|
I'm getting the following error in logs when running on Raspberry Pi 4 (OctoPi* 1.0.0, build 2023.06.27.080047 — latest):
Looks like I can not upgrade it with the currently installed OS. |
How did you installed octoprint and the plugin? I tried the lib also on my pi3b+ creating a new venv and works without any problem. Edit: Oh, it's octopi |
Octopi 1.0 is Debian "bullseye" RpiOS 2022-09-22, @ch3p4ll3 The most frustrating to me is that |
Could you try manually install the library? |
I'll also try also in my 3B+ with octopi |
I installed it, @ch3p4ll3 , but it I think it should also somehow be connected to python (instead of regular
|
I think I found the problem. the package So, I don't think there are many chances to get this work on Octopi if they don't update to bookworm :( |
Exactly, @ch3p4ll3 , my findings were similar. Looks like they can not enable camera streaming on it yet. |
Anyway, does it work on Raspberry 5 with another OS, @ch3p4ll3 ? |
yeah, I already tested it when I was developing in my fork. Btw I have an idea. We can use different PinFactories based on the system. For example:
Or try with lgpio and in case fallback to rpi.GPIO |
That's a great idea, @ch3p4ll3 . Yes, Bullseye has |
Btw, I read that gpiozero can decide on the factory itself, somehow, if you don't define it explicitly. Maybe we can install both and it will choose the right one? |
Yeah we can try, Idk if it will also work with Pi5, I think it'll depend on the "loading" order of the pins factories |
Ok, just tested. the first pinFactory that gpiozero tries is |
I found the list of default factories used in the specific order when none is specified: |
* fix(driver): remove explicit PinFactory (to be tested) * fix(setup): add RPi.GPIO
🚀 5.0.0a5 published, @ch3p4ll3 |
Yep, still working on my Pi5 |
✅ Regression test on Raspberry Pi 4 with OctoPi 1.0.0 (Bullseye) passed! |
Perfect! I think it's a great achievement. I highly appreciate your effort and I'm glad with our collaboration. I'm going to perform some chores and make a couple more tests before the final release. |
🚀 5.0.0rc1 |
* Renaming Relay::relays to cache. * Renaming Relay::get_or_create_relay() to ensure(). * Renaming class Relay to Driver. * Renaming Driver::relay to handle. * Fix test suite name. * Renaming to DriverMock in main test.
🚀 5.0.0rc2 @ch3p4ll3 , please confirm one last time that the version |
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.
ready
Try to refresh the page hardly (Cmd+Shift+R) or re-login, @ch3p4ll3 |
uh nice, yep still working |
Marketplace listing update: OctoPrint/plugins.octoprint.org#1311 |
Closes #255
Closes #212
typing-extensions
#215xor
#282