Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Installation dependency issue on Debian and windows #117

Closed
JasperAlgra opened this issue Oct 17, 2017 · 3 comments
Closed

Installation dependency issue on Debian and windows #117

JasperAlgra opened this issue Oct 17, 2017 · 3 comments

Comments

@JasperAlgra
Copy link

Hi,

The

install_requires=[
        'mysql-connector>=2.0.2',
]

which can be found on setup.py:18. Creates an issue on when installing on debian or windows.

Result: Unable to find Protobuf include directory.

On debian (8) this can be fixed by installing manually:

  • wget https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-py3_2.1.7-1debian8.2_all.deb
  • dpkg -i mysql-connector-python-py3_2.1.7-1debian8.2_all.deb

and commenting out the dependency sed -i '/mysql-connector>/s/^/#/' setup.py

On windows the dependency issue is exactly the same, but I'm still working on a fix. The mysql-connector package won't play nice (install) when not using the .msi installer for python3.

@ShahriyarR
Copy link
Owner

Hi,
Ah right, this is the same issue here as I have reported to MySQL previously:

https://bugs.mysql.com/bug.php?id=85666

The workaround is to change and use exact version 2.1.4 here:

install_requires=[
        'mysql-connector==2.1.4',
]

So could you please test it also?
I have already fixed it in release 1.4.9 but not yet released(it is in draft).

@JasperAlgra
Copy link
Author

Tested both on Windows (10) and Debian 8, both python 3.4 and works both. Thanks!

Funny because pip install on debian of python-mysql-connector 2.1.4 failed as well. pip install mysql-connector==2.1.4

Thanks once again :)

@ShahriyarR
Copy link
Owner

:) It is a pleasure.
Thank you for testing.
Please do not hesitate to open new issues and contact me directly.

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

No branches or pull requests

2 participants