Skip to content

Failed building wheel for py-sr25519-bindings #145

Closed
@asgharasas

Description

@asgharasas

I encounter an error message when I enter the following command:
Pip Install Bip-Otils
my Python Version 3.13

(.venv) C:\Users\333\PycharmProjects\PythonProject\bip_utils>**pip install bip-utils**   
Collecting bip-utils
  Using cached bip_utils-2.9.3-py3-none-any.whl.metadata (14 kB)
Collecting cbor2<6.0.0,>=5.1.2 (from bip-utils)
  Using cached cbor2-5.6.5-cp313-cp313-win_amd64.whl.metadata (6.2 kB)
Collecting crcmod~=1.7 (from bip-utils)
  Using cached crcmod-1.7-cp313-cp313-win_amd64.whl
Requirement already satisfied: ecdsa~=0.17 in c:\users\333\pycharmprojects\pythonproject\.venv\lib\site-packages (from bip-utils) (0.19.0)
Requirement already satisfied: pycryptodome~=3.15 in c:\users\333\pycharmprojects\pythonproject\.venv\lib\site-packages (from bip-utils) (3.21.0)
Collecting pynacl~=1.5 (from bip-utils)
  Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl.metadata (8.7 kB)
Collecting py-sr25519-bindings<2.0.0,>=0.2.0 (from bip-utils)
  Using cached py_sr25519_bindings-0.2.1.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting coincurve>=19.0.1 (from bip-utils)
  Using cached coincurve-20.0.0-cp313-cp313-win_amd64.whl
Collecting ed25519-blake2b<2.0.0,>=1.4.1 (from bip-utils)
  Using cached ed25519_blake2b-1.4.1-cp313-cp313-win_amd64.whl
Collecting asn1crypto (from coincurve>=19.0.1->bip-utils)
  Using cached asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: cffi>=1.3.0 in c:\users\333\pycharmprojects\pythonproject\.venv\lib\site-packages (from coincurve>=19.0.1->bip-utils) (1.17.1)
Requirement already satisfied: six>=1.9.0 in c:\users\333\pycharmprojects\pythonproject\.venv\lib\site-packages (from ecdsa~=0.17->bip-utils) (1.17.0)
Requirement already satisfied: pycparser in c:\users\333\pycharmprojects\pythonproject\.venv\lib\site-packages (from cffi>=1.3.0->coincurve>=19.0.1->bip-utils) (2.22)
Using cached bip_utils-2.9.3-py3-none-any.whl (589 kB)
Using cached cbor2-5.6.5-cp313-cp313-win_amd64.whl (66 kB)
Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl (212 kB)
Using cached asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
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
  ╰─> [67 lines of output]
      Running `maturin pep517 build-wheel -i C:\Users\333\PycharmProjects\PythonProject\.venv\Scripts\python.exe --compatibility off`
      🔗 Found pyo3 bindings
      ðŸ\x90\x8d Found CPython 3.13 at C:\Users\333\PycharmProjects\PythonProject\.venv\Scripts\python.exe
         Compiling proc-macro2 v1.0.89
         Compiling unicode-ident v1.0.13
         Compiling target-lexicon v0.12.16
         Compiling cfg-if v1.0.0
         Compiling once_cell v1.20.2
         Compiling typenum v1.17.0
         Compiling version_check v0.9.5
         Compiling autocfg v1.4.0
         Compiling semver v1.0.23
         Compiling byteorder v1.5.0
         Compiling getrandom v0.2.15
         Compiling windows_x86_64_msvc v0.52.6
         Compiling rand_core v0.6.4
         Compiling generic-array v0.14.7
         Compiling lock_api v0.4.12
         Compiling serde v1.0.215
         Compiling libc v0.2.164
         Compiling rustc_version v0.4.1
         Compiling parking_lot_core v0.9.10
         Compiling windows-targets v0.52.6
         Compiling quote v1.0.37
         Compiling pyo3-build-config v0.20.3
         Compiling curve25519-dalek v4.1.3
         Compiling syn v2.0.87
         Compiling memoffset v0.9.1
         Compiling heck v0.4.1
         Compiling scopeguard v1.2.0
         Compiling smallvec v1.13.2
         Compiling portable-atomic v1.9.0
         Compiling cpufeatures v0.2.15
         Compiling subtle v2.6.1
         Compiling keccak v0.1.5
         Compiling crypto-common v0.1.6
         Compiling block-buffer v0.10.4
         Compiling digest v0.10.7
         Compiling parking_lot v0.12.3
         Compiling sha2 v0.10.8
         Compiling arrayvec v0.7.6
         Compiling unindent v0.2.3
         Compiling arrayref v0.3.9
         Compiling indoc v2.0.5
         Compiling pyo3-ffi v0.20.3
         Compiling pyo3 v0.20.3
      error: failed to run custom build command for `pyo3-ffi v0.20.3`

      Caused by:
        process didn't exit successfully: `C:\Users\333\AppData\Local\Temp\pip-install-25ndd53i\py-sr25519-bindings_13c047fb867a490db1da9f353d11c0f9\target\release\build\pyo3-ffi-4512adfd46cc9bfd\build-script-build` (exit code: 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 code: 101": `"cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\333\\AppData\\Local\\Temp\\pip-install-25ndd53i\\py-sr25519-bindings_13c047fb867a490db1da9f353d11c0f9\\Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\333\\PycharmProjects\\PythonProject\\.venv\\Scripts\\python.exe', '--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)****

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions