Skip to content

Error using pypy #102

@Jamiejoin

Description

@Jamiejoin

Hello, I use this component and try to run it under Pypy, but the installation package gives an error

root@ubuntu-PowerEdge-R740:~/py3.7/bin# ./pypy3.7 -m pip install bitcoinrpc
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting bitcoinrpc
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ba/02/c71fefe1073adcca555f88d1ba11565637f9f40c3b7b9ec24d4387aa3d03/bitcoinrpc-0.3.1-py3-none-any.whl (6.7 kB)
Collecting orjson>=3
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/af/14/e65dcc1d8b557343c9a76b957efe2c634ebfdf072f721865f3510d89686b/orjson-3.5.1.tar.gz (659 kB)
     |████████████████████████████████| 659 kB 65 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /root/py3.7/bin/pypy3.7 /root/py3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpf6jjoe6t
         cwd: /tmp/pip-install-_cfb6pak/orjson_b387ac41d56245579bf6c006d66a4e29
    Complete output (11 lines):
    aturin failed
      Caused by: Cargo metadata failed. Do you have cargo in your PATH?
      Caused by: failed to run `cargo metadata`: error: failed to run `rustc` to learn about target-specific information
    
    Caused by:
      process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -Z mutable-noalias --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit code: 1)
      --- stderr
      error: the option `Z` is only accepted on the nightly compiler
    Checking for Rust toolchain....
    Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-9i6ul0_f --interpreter /root/py3.7/bin/pypy3.7 --manylinux=off --strip=on`
    Error: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-9i6ul0_f', '--interpreter', '/root/py3.7/bin/pypy3.7', '--manylinux=off', '--strip=on']' returned non-zero exit status 1.
    ----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/af/14/e65dcc1d8b557343c9a76b957efe2c634ebfdf072f721865f3510d89686b/orjson-3.5.1.tar.gz#sha256=7d3c4179d7af8a39fa1e3b4125155e866e09b24e477c7663ef951dcb6d8ee97d (from https://pypi.tuna.tsinghua.edu.cn/simple/orjson/) (requires-python:>=3.6). Command errored out with exit status 1: /root/py3.7/bin/pypy3.7 /root/py3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpf6jjoe6t Check the logs for full command output.
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/eb/ea/1d256e890db7927fe8454bced23c309184f2ce425d16b30af4182c58a05e/orjson-3.5.0.tar.gz (659 kB)
     |████████████████████████████████| 659 kB 1.4 MB/s 
  Installing build dependencies ... done

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