[CONPY-115] OSError: mariadb_config not found. Created: 2020-09-18  Updated: 2020-10-19  Resolved: 2020-09-18

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

Type: Bug Priority: Major
Reporter: Martine Weber Assignee: Georg Richter
Resolution: Not a Bug Votes: 0
Labels: need_feedback
Environment:

setup



 Description   

when installing pypi pkg mariadb
it fails with "OSError: mariadb_config not found"

Wouldn't it be good to be able to install the package without this dependency (outside the package delivered files)?


/bin/sh: mariadb_config: not found
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "setup.py", line 26, in <module>
cfg = get_config(options)
File "/build/mariadb-1.0.1/mariadb_posix.py", line 51, in get_config
cc_version = mariadb_config(config_prg, "cc_version")
File "/build/mariadb-1.0.1/mariadb_posix.py", line 28, in mariadb_config
raise EnvironmentError(
OSError: mariadb_config not found.
Please make sure, that MariaDB Connector/C is installed on your system, edit the configuration file 'site.cfg' and set the 'mariadb_config'
option, which should point to the mariadb_config utility.



 Comments   
Comment by Luciano Barcaro [ 2020-09-18 ]

Martine, mariadb_config is an external file provided by another package.

What is your linux distro?

If you're using CentOS, you can find it with
yum whatprovides mariadb_config

Comment by Martine Weber [ 2020-09-18 ]

Won't I make sense that the package is not depending on previous installed libraries?

distro:
NixOS

  • system: `"x86_64-linux"`
  • host os: `Linux 5.7.10, NixOS, 20.03.2652.076c67fdea6 (Markhor)`
  • multi-user?: `yes`
  • sandbox: `yes`
  • version: `nix-env (Nix) 2.4pre20200622_334e26b`
Comment by Georg Richter [ 2020-09-18 ]

As mentioned in the documentation, as a prerequisite you have to install MariaDB Connector/C. Latest version is available on the MariaDB download site

Comment by Martine Weber [ 2020-09-18 ]

I'm using NixOS, I would need a link to the Github repo.
The download file does not help

Comment by Martine Weber [ 2020-09-18 ]

My question is, why you need that external dependency, wouldn't it be better to have all dependencies in the package? (Would be "cleaner", no?)

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