[CONPY-43] errors when installing mariadb python on macos Created: 2020-02-23  Updated: 2021-03-10  Resolved: 2021-03-10

Status: Closed
Project: MariaDB Connector/Python
Component/s: Installation
Affects Version/s: 0.9.54
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Stanislav Seltser Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

macos 10.13.6



 Description   

pip install mariadb

  • works just fine
    python -c "import mariadb"
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    ImportError: dlopen(/miniconda3/lib/python3.7/site-packages/mariadb.cpython-37m-darwin.so, 2): Symbol not found: _iconv
    Referenced from: /miniconda3/lib/python3.7/site-packages/mariadb.cpython-37m-darwin.so
    Expected in: flat namespace
    in /miniconda3/lib/python3.7/site-packages/mariadb.cpython-37m-darwin.so

what is happening here?



 Comments   
Comment by Stanislav Seltser [ 2020-02-23 ]

pip install mysql-connector-python works just fine

Comment by Georg Richter [ 2020-02-24 ]

This seems to be Connector/C related. How did you build/install MariaDB Connector/C ?

Comment by Stanislav Seltser [ 2020-02-24 ]

Brew install mariadb

Comment by Georg Richter [ 2020-02-24 ]

Did you also install libiconv (homebrew). ?
It looks like the build process links against the system libiconv, which has different symbols.
Usually brew install libiconv will report LDFLAGS which you need to set before installing MariaDB Connector/Python.

Comment by Georg Richter [ 2021-03-10 ]

This issue was fixed in Connector/C version 3.1.10: The default lib will not use iconv anymore.

Generated at Thu Feb 08 03:29:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.