Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on MacOS, version 1.1.2 #6

Open
valeriu-balaban opened this issue Aug 28, 2024 · 4 comments
Open

Error installing on MacOS, version 1.1.2 #6

valeriu-balaban opened this issue Aug 28, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@valeriu-balaban
Copy link

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):

  • OS: macOS
  • Architecture: x64
  • Version 1.1.2
@valeriu-balaban valeriu-balaban added the bug Something isn't working label Aug 28, 2024
@Diviloper Diviloper self-assigned this Aug 28, 2024
@Diviloper
Copy link
Member

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
Copy link
Author

Yes, Ventura 13.6.7 (22G720)

@Diviloper
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants