-
Notifications
You must be signed in to change notification settings - Fork 81
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
Python 3.10 regression: injector.UnknownProvider: couldn't determine provider #192
Comments
Is there any know workaroud (beside downgrading Python) for this issue? |
@jstasiak any suggestion? |
Yep this issue is also affecting me. |
No suggestions, sorry, pull requests fixing this are welcome though. PS. Please provide the exact Python and Injector versions where this happens, for clarity. |
This is now also an issue on Arch Linux, as it's been moved to 3.10 as well. It's going to be an issue everywhere eventually. |
On Fedora 35 I've tested:
All these with gwe's git. Every combination gives the same result. |
Same problem on Arch. |
I found this issue with a similar error message and appearently someone also found a solution for it : #175 |
No, #175 is unrelated. I had the same thought as you, so when I was testing with git branch of injector (my previous comment), I have in fact rebuilt injector with #188 - that didn't do a thing for our case. It was faster to check than to think on what Injector does or what Subject is, but apparently it's not "generic", whatever that is! ;) Anyways, this is completely different, a regression caused by something in Python 3.10 for something which worked before.
|
RxPY was on 3.2.0 on Arch before Arch moved to 3.10, and this issue wasn't present, so it's not RxPY. |
Good to know, I wanted to confirm but couldn't easily, thanks :) |
@jstasiak Thank you for merging the fix 👍 Is there an ETA for the next release that will include this fix? |
@leinardi I will say that I installed |
Just did exactly the same as @gardotd426. Edited the PKGBUILD in order to solve the issue. GWE started to work again. The hotfix did it. |
It's no longer needed, after I reported the issue, the maintainer updated the PKGBUILD so all is good now. No editing of PKGBUILDs necessary. So anyone not able to wait can just use |
No worries. It's just been released as version 0.19.0, enjoy. |
NoInject[T] = None has the runtime typehint NoInject[T] | None, instead of the expected NoInject[T | None]. NoInject[str] = 'blarb' works as expected Resolves #192
Some users of Fedora 35 reported that an app I developed doesn't work anymore after upgrading from Fedora 43.
After some investigation it seems related to the upgrade to Python 3.10. I was able to reproduce the same issue on Ubuntu 21.10 after installing Python 3.10 and running the app on a venv that uses it.
This is the relevant traceback:
The code that is triggering the issue is this one:
where
OverclockProfileChangedSubject
is defined as:This code worked fine for several versions of Python and version 3.10 seems to be the only one affected.
The text was updated successfully, but these errors were encountered: