-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Robyn version 0.9.0 doesn't work on Mac M1 Models #120
Comments
@messense , The PyPi installation on M1 Mac has stopped working for some reason. By any chance do you happen to know why? |
It works on my M1 Mac, you may need to upgrade pip ❯ maturin develop
⚠️ Warning: `build-backend` in pyproject.toml is not set to `maturin`, packaging tools such as pip will not use maturin to build this project.
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.9 at /Users/messense/.pyenv/versions/3.9.2/envs/test/bin/python
Ignoring uvloop: markers 'platform_machine == "x86_64"' don't match your environment
Ignoring uvloop: markers 'platform_machine == "i686"' don't match your environment
Requirement already satisfied: watchdog==2.1.3 in /Users/messense/.pyenv/versions/3.9.2/envs/test/lib/python3.9/site-packages (2.1.3)
Requirement already satisfied: multiprocess==0.70.12.2 in /Users/messense/.pyenv/versions/3.9.2/envs/test/lib/python3.9/site-packages (0.70.12.2)
Requirement already satisfied: uvloop==0.16.0 in /Users/messense/.pyenv/versions/3.9.2/envs/test/lib/python3.9/site-packages (0.16.0)
Requirement already satisfied: dill>=0.3.4 in /Users/messense/.pyenv/versions/3.9.2/envs/test/lib/python3.9/site-packages (from multiprocess==0.70.12.2) (0.3.4)
warning: unused variable: `url`
--> src/server.rs:52:9
|
52 | url: String,
| ^^^ help: if this is intentional, prefix it with an underscore: `_url`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `port`
--> src/server.rs:53:9
|
53 | port: u16,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_port`
warning: unused variable: `ctx`
--> src/web_socket_connection.rs:21:27
|
21 | fn started(&mut self, ctx: &mut WebsocketContext<Self>) {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
warning: unused variable: `handler`
--> src/web_socket_connection.rs:48:43
|
48 | PyFunction::CoRoutine(handler) => {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler`
warning: unused variable: `text`
--> src/web_socket_connection.rs:60:34
|
60 | Ok(ws::Message::Text(text)) => {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_text`
warning: unused variable: `router`
--> src/web_socket_connection.rs:84:21
|
84 | let router = &self.router;
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router`
warning: unused variable: `number_of_params`
--> src/web_socket_connection.rs:86:21
|
86 | let number_of_params = &self.router.get("close").unwrap().1;
| ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_of_params`
warning: unused variable: `handler`
--> src/web_socket_connection.rs:97:43
|
97 | PyFunction::CoRoutine(handler) => {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler`
warning: 8 warnings emitted
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
📦 Built wheel for CPython 3.9 to /Users/messense/Projects/robyn/target/wheels/robyn-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
🛠 Installed robyn-0.9.0
❯ pip --version
pip 21.3.1 from /Users/messense/.pyenv/versions/3.9.2/envs/test/lib/python3.9/site-packages/pip (python 3.9) |
@messense I did upgrade pip, and also created a new virtualenv yet it didnt work out. It gives the same error. |
@shivaylamba Can you upload the wheel here? Please also paste the output of |
pipoutput.txt |
There are no arm64 tags in this, so I think you're using a x86_64 Python. ❯ cat Downloads/pipoutput.txt | grep arm | wc -l
0 |
Here is my pip debug --verbose output ❯ pip debug --verbose | grep arm
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
cp39-cp39-macosx_12_0_arm64
cp39-cp39-macosx_11_0_arm64
cp39-abi3-macosx_12_0_arm64
cp39-abi3-macosx_11_0_arm64
cp39-none-macosx_12_0_arm64
cp39-none-macosx_11_0_arm64
cp38-abi3-macosx_12_0_arm64
cp38-abi3-macosx_11_0_arm64
cp37-abi3-macosx_12_0_arm64
cp37-abi3-macosx_11_0_arm64
cp36-abi3-macosx_12_0_arm64
cp36-abi3-macosx_11_0_arm64
cp35-abi3-macosx_12_0_arm64
cp35-abi3-macosx_11_0_arm64
cp34-abi3-macosx_12_0_arm64
cp34-abi3-macosx_11_0_arm64
cp33-abi3-macosx_12_0_arm64
cp33-abi3-macosx_11_0_arm64
cp32-abi3-macosx_12_0_arm64
cp32-abi3-macosx_11_0_arm64
py39-none-macosx_12_0_arm64
py39-none-macosx_11_0_arm64
py3-none-macosx_12_0_arm64
py3-none-macosx_11_0_arm64
py38-none-macosx_12_0_arm64
py38-none-macosx_11_0_arm64
py37-none-macosx_12_0_arm64
py37-none-macosx_11_0_arm64
py36-none-macosx_12_0_arm64
py36-none-macosx_11_0_arm64
py35-none-macosx_12_0_arm64
py35-none-macosx_11_0_arm64
py34-none-macosx_12_0_arm64
py34-none-macosx_11_0_arm64
py33-none-macosx_12_0_arm64
py33-none-macosx_11_0_arm64
py32-none-macosx_12_0_arm64
py32-none-macosx_11_0_arm64
py31-none-macosx_12_0_arm64
py31-none-macosx_11_0_arm64
py30-none-macosx_12_0_arm64
py30-none-macosx_11_0_arm64 |
You can run this to confirm your Python's architecture: ❯ python -c 'import sysconfig; print(sysconfig.get_platform())'
macosx-11.2-arm64 |
|
I uninstalled Python and reinstalled it. It seems to work now. Thanks for your help @messense |
Thanks for all the help @messense 😃✨ |
Error Log :
The text was updated successfully, but these errors were encountered: