Installation MARIADB Python3 Connector

Harry68

Benutzer
Mitglied seit
24. Nov 2021
Beiträge
1
Punkte für Reaktionen
0
Punkte
1
Hallo zusammen,
ich habe auf meiner DS413 mariadb10 installiert und möchte Python Scripte direkt auf der Syno automatisiert anstarten, welche mit der Mariadb kommunizieren. Dazu brauche ich aber den mariadb python connector. Aber dieses Paket gibt es nicht. Habe dann auf der shell versucht diesen mit PIP zu installieren. Bei dem modul urllib3 hat dies hervorragend funktioniert. Bei dem Modul "mariadb" (das ist der genannte Connector) kommt aber folgende Fehlermeldung:
/volume1/@appstore/py3k/usr/local/bin/pip3 install mariadb
WARNING: The directory '/volume1/@fake_home_link/admin/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Collecting mariadb
Downloading mariadb-1.0.8.zip (85 kB)
|████████████████████████████████| 85 kB 1.3 MB/s
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ff9zv0dh
cwd: /tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/
Complete output (17 lines):
/bin/sh: mariadb_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/setup.py", line 26, in <module>
cfg = get_config(options)
File "/tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/mariadb_posix.py", line 59, in get_config
cc_version = mariadb_config(config_prg, "cc_version")
File "/tmp/pip-install-oxhzric4/mariadb_ae909ab2228047e1b5d6e62516c8ed98/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.
Either set the environment variable MARIADB_CONFIG or edit the configuration
file 'site.cfg' and set the 'mariadb_config option, which should point
to the mariadb_config utility.
The MariaDB Download website at <https://downloads.mariadb.com/Connectors/c/>
provides latest stable releease of Connector/C.
----------------------------------------

Kann mir jemand helfen?

Danke,
Harald
 


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat