Bug when trying to install mne-connectivity

MNE connectivity version: Unknown, will not install
Architecture: Linux opi5 5.10.160-rockchip #33 SMP Sun Mar 17 17:53:10 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

I do: pip install -U mne-connectivity

The installation fails:

Building wheels for collected packages: cftime
Building wheel for cftime (pyproject.toml) … error
error: subprocess-exited-with-error

× Building wheel for cftime (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running bdist_wheel
running build
running build_py

and

 creating build/temp.linux-aarch64-cpython-310/tmp/pip-install-psz7mlfa/cftime_6ee27f0e2ce94367be58d6de6498f13b/src/cftime
  aarch64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/tmp/pip-build-env-4qstgyve/overlay/lib/python3.10/site-packages/numpy/core/include -I/home/einar/Prosjekter/EEG01/eeg1/include -I/usr/include/python3.10 -c /tmp/pip-install-psz7mlfa/cftime_6ee27f0e2ce94367be58d6de6498f13b/src/cftime/_cftime.c -o build/temp.linux-aarch64-cpython-310/tmp/pip-install-psz7mlfa/cftime_6ee27f0e2ce94367be58d6de6498f13b/src/cftime/_cftime.o
  /tmp/pip-install-psz7mlfa/cftime_6ee27f0e2ce94367be58d6de6498f13b/src/cftime/_cftime.c:44:10: fatal error: Python.h: No such file or directory
     44 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cftime
Failed to build cftime
ERROR: Could not build wheels for cftime, which is required to install pyproject.toml-based projects

Any suggestions?

Regards Einar

Python and pip versions:

eeg10) einar@opi5:~/Prosjekter/EEG01$ python --version
Python 3.10.12
(eeg10) einar@opi5:~/Prosjekter/EEG01$ pip --version
pip 22.0.2 from /home/einar/Prosjekter/EEG01/eeg10/lib/python3.10/site-packages/pip (python 3.10)
(eeg10) einar@opi5:~/Prosjekter/EEG01$

Hello, and welcome to the forum!

Please try to force pip to install binaries if available by using pip --prefer-binary ...

Good luck,
Richard

Hi Richard,

The proposal worked. Is there still some bug out there that needs to be fixed?

Thank you for the help. Is there some donatoin box to support your work?

Regards Einar

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.