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

[Bug]: Protobuf dependency mismatch due to mysql-connector-python and protobuf 4.23.0rc2 #5892

Open
ra-jeev opened this issue Apr 30, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@ra-jeev
Copy link
Contributor

ra-jeev commented Apr 30, 2023

Short description of current behavior

Getting protobuf mismatch errors while running the python setup.py develop command for a fresh source installation on an ubuntu machine.

Creating /root/mindsdb-venv/lib/python3.9/site-packages/MindsDB.egg-link (link to .)
MindsDB 23.4.4.4 is already the active version in easy-install.pth

Installed /root/mindsdb
Processing dependencies for MindsDB==23.4.4.4
error: protobuf 4.23.0rc2 is installed but protobuf<=3.20.3,>=3.11.0 is required by {'mysql-connector-python'}

Video or screenshots

No response

Expected behavior

No response

How to reproduce the error

Just run the command python setup.py develop on a fresh installation from source.

Anything else?

No response

@ra-jeev ra-jeev added the bug Something isn't working label Apr 30, 2023
@rohan472000
Copy link
Contributor

You could try installing the required version of protobuf using pip, and then running the python setup.py develop command again. For example, you could try running:

pip install 'protobuf<=3.20.3,>=3.11.0'

This should install the required version of protobuf, and then running python setup.py develop should work without the protobuf mismatch error.

@ra-jeev
Copy link
Contributor Author

ra-jeev commented May 4, 2023

You could try installing the required version of protobuf using pip, and then running the python setup.py develop command again. For example, you could try running:

pip install 'protobuf<=3.20.3,>=3.11.0'

This should install the required version of protobuf, and then running python setup.py develop should work without the protobuf mismatch error.

I did try that Rohan. I specifically installed v3.20.3 and still got the same issue (even after deleting the v4.x manually). It still get installed automatically and then gives the error.

@ReusTylor
Copy link

Have you resolved this issue? I encountered a similar problem while running it as well.

@ra-jeev
Copy link
Contributor Author

ra-jeev commented May 22, 2023

Hey @ReusTylor, didn't check it afterwards. Not sure whether this issue is still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants