I am trying to repurpose an old Pi Zero to log to a Mariadb database, but I cannot get the Python connector to install. The command line for the install attempt and part of the error message followed.
sudo ./mariadb_repo_setup --mariadb-server-version="mariadb-10.6"
# [error] The MariaDB Repository only supports x86_64 and aarch64 (detected armv6l).
Obviously that package is not going to cut it. Can anyone recommend a connector that will work on a Pi Zero with Python 3.12.3?
Ref: MariaDB Connector/Python - https://mariadb.com/docs/server/connect ... es/python/
The instructions provided there under Install from PyPI appeared to work for me -
Code:
david@bk32lsd:~/Support $ mkdir mariadavid@bk32lsd:~/Support $ cd maria/david@bk32lsd:~/Support/maria $ python -m venv .envdavid@bk32lsd:~/Support/maria $ source .env/bin/activate(.env) david@bk32lsd:~/Support/maria $ python -m pip install mariadb==1.1.10Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting mariadb==1.1.10 Using cached https://www.piwheels.org/simple/mariadb/mariadb-1.1.10-cp311-cp311-linux_armv6l.whl (187 kB)Collecting packaging Using cached https://www.piwheels.org/simple/packaging/packaging-24.1-py3-none-any.whl (53 kB)Installing collected packages: packaging, mariadbSuccessfully installed mariadb-1.1.10 packaging-24.1(.env) david@bk32lsd:~/Support/maria $ python -c "import mariadb"(.env) david@bk32lsd:~/Support/maria $
Tested on RPiZeroW running 32-bit RasPiOS Bookworm Lite.
Active python interpreter is 3.11, as installed by RasPiOS
Code:
(.env) david@bk32lsd:~/Support/maria $ pythonPython 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>>
Statistics: Posted by B.Goode — Fri Jun 28, 2024 5:34 pm