Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-43

errors when installing mariadb python on macos

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 0.9.54
    • N/A
    • Installation
    • None
    • 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?

      Attachments

        Activity

          pip install mysql-connector-python works just fine

          mishkin Stanislav Seltser added a comment - pip install mysql-connector-python works just fine
          georg Georg Richter added a comment -

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

          georg Georg Richter added a comment - This seems to be Connector/C related. How did you build/install MariaDB Connector/C ?

          Brew install mariadb

          mishkin Stanislav Seltser added a comment - Brew install mariadb
          georg Georg Richter added a comment -

          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.

          georg Georg Richter added a comment - 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.
          georg Georg Richter added a comment -

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

          georg Georg Richter added a comment - This issue was fixed in Connector/C version 3.1.10: The default lib will not use iconv anymore.

          People

            georg Georg Richter
            mishkin Stanislav Seltser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.