Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

python-mysqldb has gone away in Debian Bullseye #97

Open
cjsoftuk opened this issue Apr 7, 2021 · 5 comments
Open

python-mysqldb has gone away in Debian Bullseye #97

cjsoftuk opened this issue Apr 7, 2021 · 5 comments

Comments

@cjsoftuk
Copy link

cjsoftuk commented Apr 7, 2021

Debian Bullseye removes many Python 2 libraries, leading to a failure to install python-mysqldb on a Bullseye box. I'll try and build a suitable patch for this.

@cjsoftuk
Copy link
Author

cjsoftuk commented Apr 7, 2021

Hmm, so basically this involves removing the installation of python-mysqldb on Bullseye and newer.

What I don't see, though, yet, is a way to do this sensibly for just Bullseye and newer.

@Absynth723
Copy link

You can just remove the package from the Debian-specific code without issues. I just tried that and it works without problems on a freshly installed Debian 11 VM.

@sms-astanley
Copy link

I wanted to comment here before opening a new issue. This also impacts Ubuntu 22.04. Plays fail when enabling the MySQL backend due to python-mysqldb missing.

TASK [powerdns.pdns : Install the MySQL dependencies] **************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'python-mysqldb' is available"}

Installations that don't use MySQL as a backend seem to work fine.

@Bodenhaltung
Copy link

Right, but we need also to be "backward compatible". This requires a little bit more effort (at least for testing).

@sms-astanley
Copy link

Right, but we need also to be "backward compatible". This requires a little bit more effort (at least for testing).

Understood, I forked and removed the package just to verify. Everything else works as expected.

stefanux pushed a commit to stefanux/pdns-ansible that referenced this issue May 21, 2023
…-mysqldb is available since debian buster, python-mysqldb only in debian buster
stefanux pushed a commit to stefanux/pdns-ansible that referenced this issue May 21, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants