-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[bug]: Classes which inherit from EventBase have no get() method? #6669
Comments
Guessing you have the If you can't remove |
The fix (possibly not the ideal fix) is in this PR into fastapi-events: melvinkcx/fastapi-events#64. Please feel free to upvote / comment to bring it to the maintainer's attention. @psychedelicious any thoughts on it? |
IMHO, were this my project, I'd probably add the fix I suggested regardless? Then, even if it gets fixed upstream down the road, the get() function should have no impact. ;) |
I don't think adding a Did you check if the |
I did, and it is. Seems it's being installed by the invokeai package on pypi. I have my temporary patch for now, I can wait until the next package is released. Thanks. :D |
Huh, that's unexpected - I don't have it in my install. Is it possible it was installed by some other means? Definitely shouldn't be in the pypi package! |
Aaaaah. I know. I have a base environment set up in Conda that I use for the various apps we run. I bet it's part of the default packages I install. I'll make sure to add a custom bit to my installer to remove it. |
Ah ok cool, sounds like that's the culprit. We'll keep this issue open until the root issue is resolved. |
@psychedelicious - FWIW, removing opentelemetry did not fix the issue, nor did the latest build (4.2.7). I still had to manually apply my patch. |
@d8ahazard just to confirm, after removing the otel package you had the same error (which references the otel pkg)? That doesn't sound possible if it was removed fully. |
Is there an existing issue for this problem?
Operating system
Linux
GPU vendor
Nvidia (CUDA)
GPU model
Multiple
GPU VRAM
Various
Version number
4.2.6.post1
Browser
Chrome
Python dependencies
No response
What happened
When I generate anything, I see multiple AttributeNotFound exceptions related to all classes used during generation which inherit from EventBase.
This stems from the file here:
https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/app/services/events/events_common.py
And can be fixed by simply declaring a get method for EventBase like so:
Without this, I see no preview while generating, and no output image until I reload the page.
LOGS:
What you expected to happen
Preview whle generating, an output image, etc.
How to reproduce the problem
I have no idea why this is happening with this issue and nobody else reported it.
I literally just installed the latest version + xformers from pypi:
"pip install InvokeAI[xformers] --use-pep517 --extra-index-url https://download.pytorch.org/whl/cu121 --upgrade"
Additional context
No response
Discord username
No response
The text was updated successfully, but these errors were encountered: