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

Error installing requirements on MacOS #1

Open
nagawaka opened this issue Feb 11, 2025 · 3 comments
Open

Error installing requirements on MacOS #1

nagawaka opened this issue Feb 11, 2025 · 3 comments

Comments

@nagawaka
Copy link

Getting requirements to build wheel did not run successfully on MacOS

I'm using an Dual-Core Intel Core i5 on Monterey (x86_64)

Relevant trace:

`(.env) ➜ rebbletool git:(develop) pip3 install -r requirements.txt
Collecting https://public.richinfante.com/rebble/libpebble2-0.0.29.tar.gz (from -r requirements.txt (line 34))
Using cached https://public.richinfante.com/rebble/libpebble2-0.0.29.tar.gz (49 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting https://public.richinfante.com/rebble/pypkjs-1.1.10.tar.gz (from -r requirements.txt (line 35))
Using cached https://public.richinfante.com/rebble/pypkjs-1.1.10.tar.gz (11.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting certifi==2025.1.31 (from -r requirements.txt (line 1))
Using cached certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting charset-normalizer==3.4.1 (from -r requirements.txt (line 2))
Using cached charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl.metadata (35 kB)
Collecting colorama==0.4.6 (from -r requirements.txt (line 3))
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting distlib==0.3.9 (from -r requirements.txt (line 4))
Using cached distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting enum34==1.1.10 (from -r requirements.txt (line 5))
Using cached enum34-1.1.10-py3-none-any.whl.metadata (1.6 kB)
Collecting filelock==3.17.0 (from -r requirements.txt (line 6))
Using cached filelock-3.17.0-py3-none-any.whl.metadata (2.9 kB)
Collecting httplib2==0.22.0 (from -r requirements.txt (line 7))
Using cached httplib2-0.22.0-py3-none-any.whl.metadata (2.6 kB)
Collecting idna==3.10 (from -r requirements.txt (line 8))
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting oauth2client==4.1.3 (from -r requirements.txt (line 9))
Using cached oauth2client-4.1.3-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting packaging==24.2 (from -r requirements.txt (line 10))
Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting platformdirs==4.3.6 (from -r requirements.txt (line 11))
Using cached platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
Collecting progressbar2==4.5.0 (from -r requirements.txt (line 12))
Using cached progressbar2-4.5.0-py3-none-any.whl.metadata (16 kB)
Collecting pyasn1==0.6.1 (from -r requirements.txt (line 13))
Using cached pyasn1-0.6.1-py3-none-any.whl.metadata (8.4 kB)
Collecting pyasn1_modules==0.4.1 (from -r requirements.txt (line 14))
Using cached pyasn1_modules-0.4.1-py3-none-any.whl.metadata (3.5 kB)
Collecting pyparsing==3.2.1 (from -r requirements.txt (line 15))
Using cached pyparsing-3.2.1-py3-none-any.whl.metadata (5.0 kB)
Collecting pypng==0.20220715.0 (from -r requirements.txt (line 16))
Using cached pypng-0.20220715.0-py3-none-any.whl.metadata (13 kB)
Collecting PyQRCode==1.2.1 (from -r requirements.txt (line 17))
Using cached PyQRCode-1.2.1.zip (41 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyserial==3.5 (from -r requirements.txt (line 18))
Using cached pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB)
Collecting python-utils==3.9.1 (from -r requirements.txt (line 19))
Using cached python_utils-3.9.1-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting requests==2.32.3 (from -r requirements.txt (line 20))
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting rsa==4.9 (from -r requirements.txt (line 21))
Using cached rsa-4.9-py3-none-any.whl.metadata (4.2 kB)
Collecting setuptools==75.8.0 (from -r requirements.txt (line 22))
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Collecting six==1.17.0 (from -r requirements.txt (line 23))
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting typing_extensions==4.12.2 (from -r requirements.txt (line 24))
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting urllib3==2.3.0 (from -r requirements.txt (line 25))
Using cached urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting virtualenv==20.29.1 (from -r requirements.txt (line 26))
Using cached virtualenv-20.29.1-py3-none-any.whl.metadata (4.5 kB)
Collecting websocket-client==1.8.0 (from -r requirements.txt (line 27))
Using cached websocket_client-1.8.0-py3-none-any.whl.metadata (8.0 kB)
Collecting wheel==0.45.1 (from -r requirements.txt (line 28))
Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
Collecting sh==2.2.1 (from -r requirements.txt (line 29))
Using cached sh-2.2.1-py3-none-any.whl.metadata (3.5 kB)
Collecting backports.ssl-match-hostname==3.4.0.2 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached backports.ssl_match_hostname-3.4.0.2.tar.gz (5.2 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting gevent==24.11.1 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached gevent-24.11.1-cp313-cp313-macosx_11_0_universal2.whl.metadata (13 kB)
Collecting gevent-websocket==0.10.1 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached gevent_websocket-0.10.1-py3-none-any.whl.metadata (5.3 kB)
Collecting greenlet>=0.4.7 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached greenlet-3.1.1-cp313-cp313-macosx_11_0_universal2.whl.metadata (3.8 kB)
Collecting peewee==3.17.9 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached peewee-3.17.9.tar.gz (3.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pygeoip==0.3.2 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached pygeoip-0.3.2-py2.py3-none-any.whl.metadata (592 bytes)
Collecting python-dateutil==2.4.1 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached python_dateutil-2.4.1-py2.py3-none-any.whl.metadata (1.0 kB)
Collecting netaddr==0.7.18 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached netaddr-0.7.18-py2.py3-none-any.whl.metadata (4.3 kB)
Collecting stpyv8==13.1.201.22 (from pypkjs==1.1.10->-r requirements.txt (line 35))
Using cached stpyv8-13.1.201.22.tar.gz (46 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "/Users/user/.rebbletool/rebbletool/.env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
~~~~^^
File "/Users/user/.rebbletool/rebbletool/.env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/.rebbletool/rebbletool/.env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/zs/lty9pvbj72z1_5nt6gnw0k480000gp/T/pip-build-env-yh238z71/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zs/lty9pvbj72z1_5nt6gnw0k480000gp/T/pip-build-env-yh238z71/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/private/var/folders/zs/lty9pvbj72z1_5nt6gnw0k480000gp/T/pip-build-env-yh238z71/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zs/lty9pvbj72z1_5nt6gnw0k480000gp/T/pip-build-env-yh238z71/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 12, in
ModuleNotFoundError: No module named 'settings'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.`

Looking forward to being a rebble and experimenting with Pebble development!

@richinfante
Copy link
Owner

richinfante commented Feb 12, 2025

thanks for the bug, looks like this is caused by installing stpyv8. On Apple Silicon looks like there's built wheels (and same for linux), but for intel mac on Monterey it's trying to build from source and failing. If you were on Sonoma or later, it looks like it would work as there's a wheel for that.

I see there's a similar issue filed here on that repo:
cloudflare/stpyv8#116

I'll see if I can find a solve someone's found for this and building on older systems. If you're able to get it to build / install, rebbletool should work.

@richinfante
Copy link
Owner

I can make it fail if I force it to build as well:

pip3 install --force-reinstall --ignore-installed --no-binary :all: stpyv8                                                                                                          
Collecting stpyv8
  Using cached stpyv8-13.1.201.22.tar.gz (46 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
          exec(compile('''
          ~~~~^^^^^^^^^^^^
          # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ...<31 lines>...
          exec(compile(setup_py_code, filename, "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ''' % ('/private/var/folders/gr/h0dx06t535lgn9w5_38kgt980000gn/T/pip-install-uaq8_mi9/stpyv8_db5739db28474b46871035bfd01f0cda/setup.py',), "<pip-setuptools-caller>", "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/gr/h0dx06t535lgn9w5_38kgt980000gn/T/pip-install-uaq8_mi9/stpyv8_db5739db28474b46871035bfd01f0cda/setup.py", line 12, in <module>
          from settings import *  # pylint:disable=wildcard-import,unused-wildcard-import
          ^^^^^^^^^^^^^^^^^^^^^^
      ModuleNotFoundError: No module named 'settings'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

@nagawaka
Copy link
Author

nagawaka commented Feb 14, 2025

It seems I need to build stpyv8 from scratch using xtools

Source

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

2 participants