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

Kiva build failing on Mac M2 #1067

Open
capn-freako opened this issue Dec 20, 2023 · 3 comments
Open

Kiva build failing on Mac M2 #1067

capn-freako opened this issue Dec 20, 2023 · 3 comments

Comments

@capn-freako
Copy link

I'm getting a Kiva build failure on my MacBook Air M2 (MacOS 12.7.1):

File: /private/var/folders/pf/9gjf96y54f55tdz0vt0wq4kh0000gn/T/pip-install-78pd22fa/enable_d6b6869f6bbd44439ebdfc9c30a63ab0/kiva/_marker_renderer.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      # Thanks for using Enthought open source!
      import cython
      import numpy as np
      from numpy cimport uint8_t

      cimport _marker_renderer
              ^
      ------------------------------------------------------------

      kiva/_marker_renderer.pyx:14:8: '_marker_renderer.pxd' not found

Under conda-build I'm able to get past this, by back-reving Pip to v22.
But, under pip install this trick doesn't work.

Any suggestions on how to make forward progress, or do further debugging?

The build completes successfully on the other 3 major platforms:

  • Windows 10 64-bit,
  • Linux 64-bit, and
  • MacOS Intel.
@corranwebster
Copy link
Contributor

I think the answer to this is don't use Cython 3: #1060

There should be Apple Silicon compatible wheels on PyPI, so you ought to be able to install without needing to build for the most recent releases (ie. pip install should just work without any build step)

@capn-freako
Copy link
Author

capn-freako commented Dec 22, 2023 via email

@jwiggins
Copy link
Member

That's correct. The 6.0.0 release on PyPI does not currently supply Apple Silicon-compatible wheels, only Intel-compatible wheels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants