[CONPY-84] Trying to install mariadb module with pip Created: 2020-07-14  Updated: 2020-07-14  Resolved: 2020-07-14

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

Type: Bug Priority: Major
Reporter: Tiago Maurício Assignee: Georg Richter
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Georg Richter [ 2020-07-14 ]

Please read the prerequisites section of the Documentation.

Make sure that you installed an actual version of MariaDB Connector/C (3.1.5 or newer), it is also recommended to use a MariaDB Server 10.2 or above.

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