Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Raspberry Pi Bookworm
-
3.11
Description
Trying to install mariadb on a raspberry pi using these steps -
Create fresh install Bookworm
sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo apt install libmariadb3 libmariadb-dev
python3 -m venv --system-site-packages /home/pi/.venv
source /home/pi/.venv/bin/activate
pip install mariadb
This works for Desktop but when run on Lite it errors. This is the terminal output
(.venv) pi@pi-solar2:~ $ pip install mariadb |
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple |
Collecting mariadb
|
Using cached mariadb-1.1.13.tar.gz (111 kB) |
Installing build dependencies ... done
|
Getting requirements to build wheel ... error
|
error: subprocess-exited-with-error
|
|
× Getting requirements to build wheel did not run successfully.
|
│ exit code: 1 |
╰─> [34 lines of output] |
/bin/sh: 1: mariadb_config: not found |
Traceback (most recent call last):
|
File "/home/pi/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> |
main()
|
File "/home/pi/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main |
json_out['return_val'] = hook(**hook_input['kwargs']) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/home/pi/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel |
return hook(config_settings) |
^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/pip-build-env-7aj45r9k/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel |
return self._get_build_requires(config_settings, requirements=[]) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/pip-build-env-7aj45r9k/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires |
self.run_setup()
|
File "/tmp/pip-build-env-7aj45r9k/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup |
super().run_setup(setup_script=setup_script) |
File "/tmp/pip-build-env-7aj45r9k/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup |
exec(code, locals())
|
File "<string>", line 27, in <module> |
File "/tmp/pip-install-vfo1s67w/mariadb_8dd77e0b10014871b55a8e6b62fa93aa/mariadb_posix.py", line 62, in get_config |
cc_version = mariadb_config(config_prg, "cc_version") |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/pip-install-vfo1s67w/mariadb_8dd77e0b10014871b55a8e6b62fa93aa/mariadb_posix.py", line 28, in mariadb_config |
raise EnvironmentError(
|
OSError: mariadb_config not found.
|
|
This error typically indicates that MariaDB Connector/C, a dependency which
|
must be preinstalled, is not found.
|
If MariaDB Connector/C is not installed, see installation instructions
|
If MariaDB Connector/C is installed, either set the environment variable
|
MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the |
'mariadb_config' option to the file location of the mariadb_config utility. |
|
[end of output]
|
|
note: This error originates from a subprocess, and is likely not a problem with pip.
|
error: subprocess-exited-with-error
|
|
× Getting requirements to build wheel did not run successfully.
|
│ exit code: 1 |
╰─> See above for output. |
|
note: This error originates from a subprocess, and is likely not a problem with pip.
|
|
I raised a bug on raspberrypi / bookworm-feedback #441 but they say it is a pip packaging issue, raised it there and they said it is a MariaDB packaging issue so raising it here