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

Robyn version 0.9.0 doesn't work on Mac M1 Models #120

Closed
shivaylamba opened this issue Dec 5, 2021 · 12 comments
Closed

Robyn version 0.9.0 doesn't work on Mac M1 Models #120

shivaylamba opened this issue Dec 5, 2021 · 12 comments

Comments

@shivaylamba
Copy link
Contributor

shivaylamba commented Dec 5, 2021

Error Log :

Finished dev [unoptimized + debuginfo] target(s) in 0.14s
📦 Built wheel for CPython 3.9 to /Users/shivaylamba/Desktop/robyn/target/wheels/robyn-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
💥 maturin failed
  Caused by: pip install in /Users/shivaylamba/Desktop/robyn/venv failed running ["-m", "pip", "--disable-pip-version-check", "install", "--force-reinstall", "/Users/shivaylamba/Desktop/robyn/target/wheels/robyn-0.9.0-cp39-cp39-macosx_11_0_arm64.whl"]: exit status: 1
--- Stdout:

--- Stderr:
ERROR: robyn-0.9.0-cp39-cp39-macosx_11_0_arm64.whl is not a supported wheel on this platform.
---
@sansyrox
Copy link
Member

sansyrox commented Dec 5, 2021

@messense , The PyPi installation on M1 Mac has stopped working for some reason. By any chance do you happen to know why?

@messense
Copy link
Contributor

messense commented Dec 6, 2021

It works on my M1 Mac, you may need to upgrade pip pip install -U 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)

@shivaylamba
Copy link
Contributor Author

@messense I did upgrade pip, and also created a new virtualenv yet it didnt work out. It gives the same error.
image

@messense
Copy link
Contributor

messense commented Dec 6, 2021

@shivaylamba Can you upload the wheel here? Please also paste the output of pip debug --verbose here.

@shivaylamba
Copy link
Contributor Author

@shivaylamba
Copy link
Contributor Author

pipoutput.txt
Output of the pip debug --verbose command @messense

@messense
Copy link
Contributor

messense commented Dec 6, 2021

pipoutput.txt Output of the pip debug --verbose command @messense

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

@messense
Copy link
Contributor

messense commented Dec 6, 2021

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

@messense
Copy link
Contributor

messense commented Dec 6, 2021

You can run this to confirm your Python's architecture:

❯ python -c 'import sysconfig; print(sysconfig.get_platform())'
macosx-11.2-arm64

@shivaylamba
Copy link
Contributor Author

shivaylamba commented Dec 6, 2021

image
@messense it says arm only. But yeah I find it confusing that we didnt see any arm tags in my output.

@shivaylamba
Copy link
Contributor Author

I uninstalled Python and reinstalled it. It seems to work now. Thanks for your help @messense

@sansyrox
Copy link
Member

sansyrox commented Dec 7, 2021

Thanks for all the help @messense 😃✨

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