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

macOS M1 wheels missing #191

Open
codeskyblue opened this issue Aug 20, 2021 · 7 comments
Open

macOS M1 wheels missing #191

codeskyblue opened this issue Aug 20, 2021 · 7 comments

Comments

@codeskyblue
Copy link

MacOS Big Sur 11.4 (Apple M1)

lupa version 1.9

$ pip3 show lupa
Name: lupa
Version: 1.9
Summary: Python wrapper around Lua and LuaJIT
Home-page: https://github.com/scoder/lupa
Author: Stefan Behnel
Author-email: [email protected]
License: MIT style
Location: /opt/homebrew/lib/python3.9/site-packages
Requires: 
Required-by:

error output

$ python3
Python 3.9.5 (default, May  3 2021, 19:12:05) 
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lupa
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/homebrew/lib/python3.9/site-packages/lupa/__init__.py", line 32, in <module>
    from lupa._lupa import *
ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/lupa/_lupa.cpython-39-darwin.so, 2): Symbol not found: _lua_newuserdata
  Referenced from: /opt/homebrew/lib/python3.9/site-packages/lupa/_lupa.cpython-39-darwin.so
  Expected in: flat namespace
 in /opt/homebrew/lib/python3.9/site-packages/lupa/_lupa.cpython-39-darwin.so
@codeskyblue codeskyblue changed the title on Python 3.9.5 (Mac), after install lupa, it says Symbol not found: _lua_newuserdata on Python 3.9.5 (Mac M1), after install lupa, it says Symbol not found: _lua_newuserdata Aug 20, 2021
@halsten-dev
Copy link

I have this error too on a mac Intel.

Any advice ?

@scoder
Copy link
Owner

scoder commented Aug 3, 2022

There is currently no wheel for M1, because the current build process does not build wheels for M1.
I'm also not a mac user myself, so PR welcome.

@scoder scoder changed the title on Python 3.9.5 (Mac M1), after install lupa, it says Symbol not found: _lua_newuserdata macOS M1 wheels missing Aug 3, 2022
@yawhide
Copy link

yawhide commented Aug 3, 2022

@scoder noticed on https://github.com/scoder/lupa/blob/master/.github/workflows/wheels.yml#L124 that that macos stuff have v10 and v11. The latest macos version is 12. would adding wheels be as easy as updating those versions to 12?

@yawhide
Copy link

yawhide commented Aug 5, 2022

apparently we can run macos 12 runners on github for free https://github.blog/changelog/2022-06-13-github-actions-macos-12-for-github-hosted-runners-is-now-generally-available/

is this something* you can add to the wheels.yml to make building on macos 12 m1s?

@scoder
Copy link
Owner

scoder commented Aug 7, 2022

Tried switching to macos-12, doesn't help.

If someone who is interested in getting this to work could try out how to make it work, I'd be happy to accept a working, maintainable solution as a PR.
I'm personally not interested in investing more time than that into this problem.

Note that one possible solution might be to switch to cibuildwheel. They seem to have added support for M1 macs.

@yawhide
Copy link

yawhide commented Aug 8, 2022

@scoder I see a success for python 3.9/3.10 on macos

https://github.com/scoder/lupa/runs/7712695227?check_suite_focus=true

https://github.com/scoder/lupa/runs/7712695185?check_suite_focus=true

what makes you say your PR didn't work?

@scoder
Copy link
Owner

scoder commented Aug 8, 2022 via email

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

No branches or pull requests

4 participants