Open hajanjes opened 5 months ago
Which version of Ubuntu are you using? It is unusual that systemd has to be manually enabled since it should be initialised by default on any recent Ubuntu installation.
Concerning the second issue, from what I can see you could try installing pkg-config first, avoiding the manual definition of the CFLAGS/LDFLAGS. Still, some mysql header files appear to be missing afterwards. I don't have tested an install on a Debian-based distro recently, so I can't tell from the top of my head which packages need to be installed in addition.
In any case, maybe the README in the CoCa branch is helpful, which describes in more detail the required steps to get the CCS running on an Ubuntu machine: https://github.com/mmecina/CCS/blob/63f3a4067e230f40a2f958fb4b74c1a5f591985a/README_CoCa.md
I am struggling with the installation of CCS as the installation steps in the README file are not very detailed and don't work as expected. Here are my findings so far (tested on several Ubuntu/Debian flavors):
System has not booted with systemd ...
Solution: Add init=/lib/systemd/systemd to menu entry in GRUB bootloader.
_Collecting mysqlclient Using cached mysqlclient-2.2.4.tar.gz (90 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 ╰─> [30 lines of output] /bin/sh: 1: pkg-config: not found /bin/sh: 1: pkg-config: not found /bin/sh: 1: pkg-config: not found Trying pkg-config --exists mysqlclient Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127. Trying pkg-config --exists mariadb Command 'pkg-config --exists mariadb' returned non-zero exit status 127. Trying pkg-config --exists libmariadb Command 'pkg-config --exists libmariadb' returned non-zero exit status 127. Traceback (most recent call last): File "/home/hajes/CCS/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/hajes/CCS/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/hajes/CCS/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-egdjk0im/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-egdjk0im/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-egdjk0im/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 155, in
File "", line 49, in get_config_posix
File "", line 28, in find_package_name
Exception: Can not find valid pkg-config name.
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
[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._
Installing MySQL env vars (export MYSQLCLIENT_CFLAGS=-I/usr/include/mysql and export MYSQLCLIENT_LDFLAGS=-L/usr/lib/x86_64-linux-gnu) results in the following error:
_Building wheels for collected packages: mysqlclient Building wheel for mysqlclient (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for mysqlclient (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [44 lines of output]
Options for building extension module:
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mysqlclient Failed to build mysqlclient ERROR: Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects_
Any help would be highly appreciated.