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

Trying to install mariadb module with pip

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • None
    • N/A
    • Installation
    • None
    • OS: Ubuntu 16.04
      Python: 3.6 (installed via ppa)
      Pip: 20.1.1

    Description

      Hi, I'm trying to install the mariadb module through pip and I'm getting this error:

      ubuntu@ubuntu-VirtualBox:~$ python3.6 -m pip install mariadb
      Defaulting to user installation because normal site-packages is not writeable
      Collecting mariadb
        Using cached mariadb-1.0.0.tar.gz (78 kB)
          ERROR: Command errored out with exit status 1:
           command: /usr/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q0guo7wf/mariadb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q0guo7wf/mariadb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-q9xhl_p0
               cwd: /tmp/pip-install-q0guo7wf/mariadb/
          Complete output (8 lines):
          mariadb_config: unrecognized option '--cc_version'
          Traceback (most recent call last):
            File "<string>", line 1, in <module>
            File "/tmp/pip-install-q0guo7wf/mariadb/setup.py", line 26, in <module>
              cfg = get_config(options)
            File "/tmp/pip-install-q0guo7wf/mariadb/mariadb_posix.py", line 50, in get_config
              if cc_version[0] < required_version:
          IndexError: list index out of range
          ----------------------------------------
      ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
      

      I tried to do a bit of research regarding this matter but I was short in getting answers. Is there anything I can do to make this install?

      Thanks in advance.
      Kind regards

      Attachments

        Activity

          People

            georg Georg Richter
            tiago@angulosolido.pt Tiago MaurĂ­cio
            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.