Closed jonrau1 closed 1 year ago
Could you confirm your pip version?
Hey @xoolive it's pip 22.3.1 from /home/pi/.local/lib/python3.8/site-packages/pip (python 3.8)
Did a restart and got a different error this time
pi@ubuntu:~$ pip3 install pyModeS
Defaulting to user installation because normal site-packages is not writeable
Collecting pyModeS
Using cached pymodes-2.14.tar.gz (392 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyzmq<25.0,>=24.0
Downloading pyzmq-24.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (894 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.4/894.4 kB 9.7 MB/s eta 0:00:00
Collecting numpy<2.0,>=1.24
Downloading numpy-1.24.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 12.1 MB/s eta 0:00:00
Building wheels for collected packages: pyModeS
Building wheel for pyModeS (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyModeS (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [59 lines of output]
Compiling pyModeS/c_common.pyx because it depends on /tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/Cython/Includes/libc/string.pxd.
Compiling pyModeS/decoder/flarm/decode.pyx because it depends on /tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/Cython/Includes/libc/string.pxd.
[1/2] Cythonizing pyModeS/c_common.pyx
[2/2] Cythonizing pyModeS/decoder/flarm/decode.pyx
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-msse’
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-msse2’
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-mfma’
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-mfpmath=sse’
Traceback (most recent call last):
File "/usr/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/usr/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'aarch64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 77, in <module>
build()
File "build.py", line 65, in build
cmd.run()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/usr/lib/python3.8/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'aarch64-linux-gnu-gcc' failed with exit status 1
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/home/pi/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/pi/.local/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/poetry/core/masonry/api.py", line 56, in build_wheel
return WheelBuilder.make_in(
File "/tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/wheel.py", line 85, in make_in
wb.build(target_dir=directory)
File "/tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/wheel.py", line 120, in build
self._build(zip_file)
File "/tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/wheel.py", line 169, in _build
self._run_build_script(self._package.build_script)
File "/tmp/pip-build-env-7w16oqq3/overlay/lib/python3.8/site-packages/poetry/core/masonry/builders/wheel.py", line 229, in _run_build_script
subprocess.check_call([self.executable.as_posix(), build_script])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'build.py']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyModeS
Failed to build pyModeS
ERROR: Could not build wheels for pyModeS, which is required to install pyproject.toml-based projects
Looks like it is related to #137 then
Ok i think it is. Can you try the fix from the other issue? Otherwise I guess we should just remove all optimisation flags and make a new release
@xoolive that ended up working, got to love arm64 and how it messes everything up
@jonrau1 what did you have to change?
Unsure how this may relate to #137 as far as a fix goes, but using Pip3 I am getting an unhelpful error I assume is because of arm64, but it could be something else. This is a freshly updated image from here:
In the off chance there is something else I can do, I am all (virtual) ears
Some host info
Error from Pip3