Skip to content
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

Error importing image_researcher_granite_crewai.py file into OpenWebUI #25

Open
jparrill opened this issue Feb 28, 2025 · 6 comments
Open

Comments

@jparrill
Copy link
Contributor

Error importing image_researcher_granite_crewai.py file into OpenWebUI:

[ERROR: cannot import name 'SpanFlags' from 'opentelemetry.proto.trace.v1.trace_pb2' (/usr/local/lib/python3.11/site-packages/opentelemetry/proto/trace/v1/trace_pb2.py)]
@kellyaa
Copy link
Collaborator

kellyaa commented Feb 28, 2025

What version of Open WebUI are you using? And is it preventing the function from being created or is it an error thrown after the function is created?

@jparrill
Copy link
Contributor Author

It's a container based deployment from this image: ghcr.io/open-webui/open-webui:main it says during boot v0.5.18.

@kellyaa
Copy link
Collaborator

kellyaa commented Feb 28, 2025

Confirmed I can reproduce this if I start with a fresh docker container. (up til now been running via local pip install). Looking into this. Thank you.

@kellyaa
Copy link
Collaborator

kellyaa commented Feb 28, 2025

This is driving me nuts. I have identical packages between my mac venv and the docker container, and yet this error only occurs on a docker container. Trying to see if I can get any help from the CrewAI community as I continue to plug.

crewAIInc/crewAI#2257

@jparrill
Copy link
Contributor Author

Maybe they changed the proto files but didn't regenerate the autogenerated code (?). Not sure about it, let's wait for a response in the other thread. Thanks for open up the discussion with CrewAI ppl.

@kellyaa
Copy link
Collaborator

kellyaa commented Mar 5, 2025

I found a work-around: restarting the container! No idea why this works, but it does. After attempting to install the function, and failing, restart the docker container, and it should succeed. I tested this a few times, and bewilderingly, it works.

I'll leave this open as it's a very sub-optimal way of addressing the issue.

Please let me know if this does not work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants