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

Installation Failure #2562

Open
omersajid9 opened this issue Dec 28, 2024 · 1 comment
Open

Installation Failure #2562

omersajid9 opened this issue Dec 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@omersajid9
Copy link

Describe the bug

Bittensor failing to install on Mac m4. I get the following error:



Building wheels for collected packages: py-sr25519-bindings
  Building wheel for py-sr25519-bindings (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for py-sr25519-bindings (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [68 lines of output]
      Running `maturin pep517 build-wheel -i /Users/omersajid/bt/btcli/btcli_venv/bin/python3 --compatibility off`
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.13 at /Users/omersajid/bt/btcli/btcli_venv/bin/python3
      💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default


         Compiling pyo3-macros-backend v0.20.3
      error: failed to run custom build command for `pyo3-ffi v0.20.3`
      
      Caused by:
        process didn't exit successfully: `/private/var/folders/h0/tfcy9dmn2jj1nbry_y9ql83c0000gn/T/pip-install-nlcdmv8z/py-sr25519-bindings_5ee9e5de30374d3fb3ba3975e2f5c6fa/target/release/build/pyo3-ffi-75076b256aa57b28/build-script-build` (exit status: 1)
        --- stdout
        cargo:rerun-if-env-changed=PYO3_CROSS
        cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
        cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
        cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY
      
        --- stderr
        error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
        = help: please check if an updated version of PyO3 is available. Current version: 0.20.3
        = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO MACOSX_DEPLOYMENT_TARGET="11.0" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/Users/omersajid/bt/btcli/btcli_venv/bin/python3" PYTHON_SYS_EXECUTABLE="/Users/omersajid/bt/btcli/btcli_venv/bin/python3" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/private/var/folders/h0/tfcy9dmn2jj1nbry_y9ql83c0000gn/T/pip-install-nlcdmv8z/py-sr25519-bindings_5ee9e5de30374d3fb3ba3975e2f5c6fa/Cargo.toml" "--release" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/sr25519.cpython-313-darwin.so"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/Users/omersajid/bt/btcli/btcli_venv/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for py-sr25519-bindings
Failed to build py-sr25519-bindings
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (py-sr25519-bindings)

To Reproduce

  1. Run the bash command to install bit tensor: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/opentensor/bittensor/master/scripts/install.sh)"
  2. Run the update command: python3 -m pip install --upgrade bittensor

Expected behavior

It should install

Screenshots

image

Environment

Mac mini m4 on miniconda and venv

Additional context

No response

@omersajid9 omersajid9 added the bug Something isn't working label Dec 28, 2024
@omersajid9 omersajid9 changed the title Installion Failure Installation Failure Dec 28, 2024
@omersajid9
Copy link
Author

Degrading Python version 3.13 to 3.9 fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant