-
Notifications
You must be signed in to change notification settings - Fork 80
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
The wasmer_compiler_cranelift
package doesn't work on M1
#657
Comments
possible duplicate of #539 |
I was able to get wasmer running from python on my M1. uname -a
Darwin Micu.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64 Previously, I was getting this error In [1]: import wasmer
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import wasmer
File /opt/homebrew/lib/python3.10/site-packages/wasmer/__init__.py:1, in <module>
----> 1 raise ImportError("Wasmer is not available on this system")
ImportError: Wasmer is not available on this system Using my locally compiled version of this repo, I can now import wasmer. In [1]: import wasmer
In [2]: wasmer.Store
Out[2]: Store To get this running, I went through the development setup guide in readme, except I made the following change diff --git a/justfile b/justfile
index 22742a3..c2823d3 100644
--- a/justfile
+++ b/justfile
@@ -65,7 +65,7 @@ build package='api' rust_target=`rustc -vV | awk '/^host/ { print $2 }'`:
cd packages/{{package}}/
- maturin develop --binding-crate pyo3 --release --strip --cargo-extra-args="${build_args}"
+ maturin develop --binding-crate pyo3 --release --strip
# Build all the wheels.
build-all-wheels python_version rust_target: If I keep the just build api
Build arguments: --target aarch64-apple-darwin
error: Found argument '--cargo-extra-args' which wasn't expected, or isn't valid in this context
If you tried to supply `--cargo-extra-args` as a value rather than a flag, use `-- --cargo-extra-args`
USAGE:
maturin develop --bindings <BINDINGS> --release --strip
For more information try --help
error: Recipe `build` failed with exit code 2 |
Hmm... it's really strange that everything worked after you recompiled. We've committed I'm not too familiar with how the That |
I am seeing the same issue on M1.
|
Actually, according to README, Darwin + arm64 is not yet supported which makes sense for error. |
I just tried installing wasmer-python 1.2.0 directly from master. It seems to work fine on my M2 machine. Can we expect a release soon? @ayys |
seems to work with python version 3.9 on Apple M1 |
Describe the bug
Trying to import the
wasmer_compiler_cranelift
library (or any of the compilers) on an M1 will unconditionally trigger anImportError
.wasmer-python/packages/any-api/wasmer/__init__.py
Line 1 in 854ecac
CC: @ayys
The text was updated successfully, but these errors were encountered: