Bug 1472985
Summary: | python-mysql lacks the mysql_real_escape_string_quote symbol | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Hill <dhill> |
Component: | python-mysql | Assignee: | Jakub Dorňák <jakub.dornak> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dhill, gary.buhrmaster, hobbes1069, jakub.dornak |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://code.mythtv.org/trac/ticket/13093 | ||
Whiteboard: | |||
Fixed In Version: | python-mysql-1.3.12-1.fc26 python-mysql-1.3.12-1.fc27 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-12 22:56:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Hill
2017-07-19 18:06:15 UTC
python2-mysql-1.3.10-2.fc27.x86_64 python2-mysql-1.3.7-7.fc26.x86_64 still had it Looks like resolved with upstream commit 4202f61 related to issue #115 refs: https://github.com/PyMySQL/mysqlclient-python/commit/4202f611df07ae1274e7f0d71677cfd4cd778084 https://github.com/PyMySQL/mysqlclient-python/pull/115 This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'. Still a problem for rawhide. python-mysql 1.3.10 has this commit from pull 115 referenced above but importing the python module still fails with the same error:
$ python
Python 2.7.13 (default, Jun 26 2017, 10:16:32)
[GCC 7.1.1 20170526 (Red Hat 7.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: /usr/lib64/python2.7/site-packages/_mysql.so: undefined symbol: mysql_real_escape_string_quote
I've just upgraded python-mysql to 1.3.12, which slightly improves the commit above: https://github.com/PyMySQL/mysqlclient-python/commit/6058715077d7b63599eefd6eb8460548cba7c951 And it seems to work. Since I'm not currently a maintainer for this package I'm reluctant to upgrade the version but I did try a scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=21646244 I also had to add a workaround because my_config.h was moved in Fedora 27. I also emailed the package maintainers a few weeks ago and haven't gotten a response so at this point I'm assuming it's OK to make the required updates. Well, now it looks like Jakub has updated the package yesterday, but only for rawhide. This needs to be propagated to at least f26. I first wanted to ensure, that it helps. (Going to rebase f26 and f27 too.) python-mysql-1.3.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9b948d6e91 python-mysql-1.3.12-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-992d36c1a5 python-mysql-1.3.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9b948d6e91 python-mysql-1.3.12-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-992d36c1a5 python-mysql-1.3.12-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. python-mysql-1.3.12-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |