MobilityDB / PyMEOS-CFFI

Other
0 stars 1 forks source link

Error installing on MacOS, version 1.1.2 #6

Open valeriu-balaban opened 2 weeks ago

valeriu-balaban commented 2 weeks ago

The following error is reported when installing with pip inside a conda environment on MacOS x64.

  Building wheel for pymeos_cffi (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pymeos_cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [34 lines of output]
      Not copying PROJ data to package data
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-310
      creating build/lib.macosx-10.9-x86_64-cpython-310/pymeos_cffi
      copying pymeos_cffi/functions.py -> build/lib.macosx-10.9-x86_64-cpython-310/pymeos_cffi
      copying pymeos_cffi/enums.py -> build/lib.macosx-10.9-x86_64-cpython-310/pymeos_cffi
      copying pymeos_cffi/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/pymeos_cffi
      copying pymeos_cffi/errors.py -> build/lib.macosx-10.9-x86_64-cpython-310/pymeos_cffi
      running egg_info
      writing pymeos_cffi.egg-info/PKG-INFO
      writing dependency_links to pymeos_cffi.egg-info/dependency_links.txt
      writing requirements to pymeos_cffi.egg-info/requires.txt
      writing top-level names to pymeos_cffi.egg-info/top_level.txt
      reading manifest file 'pymeos_cffi.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*/__pycache__/*' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      adding license file 'LICENSE'
      writing manifest file 'pymeos_cffi.egg-info/SOURCES.txt'
      running build_ext
      generating cffi module 'build/temp.macosx-10.9-x86_64-cpython-310/_meos_cffi.c'
      creating build/temp.macosx-10.9-x86_64-cpython-310
      building '_meos_cffi' extension
      creating build/temp.macosx-10.9-x86_64-cpython-310/build
      creating build/temp.macosx-10.9-x86_64-cpython-310/build/temp.macosx-10.9-x86_64-cpython-310
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/valeriu/micromamba/envs/metaflow/include -fPIC -O2 -isystem /Users/valeriu/micromamba/envs/metaflow/include -I/usr/local/include -I/Users/valeriu/micromamba/envs/metaflow/include/python3.10 -c build/temp.macosx-10.9-x86_64-cpython-310/_meos_cffi.c -o build/temp.macosx-10.9-x86_64-cpython-310/build/temp.macosx-10.9-x86_64-cpython-310/_meos_cffi.o
      build/temp.macosx-10.9-x86_64-cpython-310/_meos_cffi.c:573:10: fatal error: 'meos.h' file not found
      #include "meos.h"
               ^~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' 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 pymeos_cffi
Failed to build pymeos_cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pymeos_cffi)

Desktop (please complete the following information):

Diviloper commented 2 weeks ago

It looks like pip is not using the wheel distributions, and tries to install it from sources, which fails due to MEOS not being installed. This may have to do with a recent error in the build pipeline that forced me to set the MACOSX_DEPLOYMENT_TARGET env variable to 14. Is your macOS version lower than 14?

valeriu-balaban commented 2 weeks ago

Yes, Ventura 13.6.7 (22G720)

Diviloper commented 2 weeks ago

Then that might be the problem. I set the MACOSX_DEPLOYMENT_TARGET to 14 also in the x64 build, when it should have been 13. I'm fixing it now.

Diviloper commented 5 days ago

This is taking me way longer than I expected (mainly because I have to debug via GitHub Actions :), and I haven't had much time in the last couple weeks, but I'm still working on it.