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

"ImportError: Mariadb module initialization failed" upon import of mariadb

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 1.1.5
    • 1.1.6
    • Generic
    • None
    • Pop!_OS 22.04 LTS x64
      libmariadb-dev 1:10.6.11-0ubuntu0.22.04.1
      libmariadb3 1:10.6.11-0ubuntu0.22.04.1
    • 3.10

    Description

      When importing the MariaDB module, an exception is thrown for no apparent reason. The code does not continue running.

      import mariadb
      

      Traceback (most recent call last):
        File "/home/oskar/Documents/project/mdb.py", line 1, in <module>
          import mariadb
        File "/home/oskar/.cache/pypoetry/virtualenvs/project-WNBj78Lw-py3.10/lib/python3.10/site-packages/mariadb/__init__.py", line 7, in <module>
          from ._mariadb import (
      ImportError: Mariadb module initialization failed
      

      The only other occurrence of this I can find online is at https://stackoverflow.com/questions/65011353/problems-with-import-mariadb-python

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              oskarzyg oskar
              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.