Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
3.1
-
None
Description
File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <module>
|
File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <genexpr>
|
ValueError: invalid literal for int() with base 10: '17-12'
|
when installing MariaDB Server 10.5.17 or 10.5.18 on a CentOS 7 host, the mariadb connector is throwing this error to us during our connect.
>10.6 is not throwing this issue.
Attachments
Issue Links
- is caused by
-
CONPY-244 Check the version of libmariadb.so during module initialization
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 1.1.5 [ 28422 ] |
Affects Version/s | 1.1.3 [ 28322 ] | |
Affects Version/s | 1.1.5 [ 28422 ] |
Description |
{code}
File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <module> File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <genexpr> ValueError: invalid literal for int() with base 10: '17-12' {code} when installing MariaDB Server 10.5.17 or 10.5.18 on a CentOS 7 host, the mariadb connector is throwing this error to us during our connect. |
{code}
File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <module> File "/root/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb/__init__.py", line 136, in <genexpr> ValueError: invalid literal for int() with base 10: '17-12' {code} when installing MariaDB Server 10.5.17 or 10.5.18 on a CentOS 7 host, the mariadb connector is throwing this error to us during our connect. >10.6 is not throwing this issue. |
Status | Open [ 1 ] | Needs Feedback [ 10501 ] |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Status | Needs Feedback [ 10501 ] | Open [ 1 ] |
Component/s | Installation [ 15603 ] | |
Fix Version/s | N/A [ 23143 ] | |
Resolution | Not a Bug [ 6 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Not a Bug [ 6 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Component/s | Other [ 16819 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
During initialization mariadb module loads the client version via mysql_get_client_info into mariadbapi_version.
mysql_get_client_info uses MARIADB_PACKAGE_VERSION macro, which is defined in mariadb_version.h. It has the format major.minor.patch.
Obviously someone changed this to another format when building ES packages, instead of 3.3.3 it was changed to 10.5.17-12,which explains this issue.
This change in ES also has other impacts, e.g. it is impossible to determine if a feature is supported by checking the client version (10 is always > 3)