Skip to content

Installation fails due to orjson dependency #7687

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

Closed
Mtze opened this issue Nov 22, 2020 · 3 comments
Closed

Installation fails due to orjson dependency #7687

Mtze opened this issue Nov 22, 2020 · 3 comments

Comments

@Mtze
Copy link

Mtze commented Nov 22, 2020

Details

  • Read the Docs project URL:
  • Build URL (if applicable):
  • Read the Docs username (if applicable):

I followed the install instructions here (https://docs.readthedocs.io/en/stable/development/install.html), but the requirements step fails with

Collecting orjson==2.0.7
  Downloading orjson-2.0.7.tar.gz (480 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp4ejl15q6
         cwd: /tmp/pip-install-v9upuffk/orjson
    Complete output (6 lines):

    Cargo, the Rust package manager, is not installed or is not on PATH.
    This package requires Rust and Cargo to compile extensions. Install it through
    the system's package manager or via https://rustup.rs/

    Checking for Rust toolchain....
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp4ejl15q6 Check the logs for full command output.

Expected Result

Requirements get installed

Actual Result

The desired version of orjson (2.0.7) cannot be installed.

@Mtze
Copy link
Author

Mtze commented Nov 22, 2020

Maybe remove the explicit version number here

orjson==2.0.7 # pyup: ignore
except it is really necessary.

@humitos
Copy link
Member

humitos commented Nov 23, 2020

Hi! We currently support Python 3.6 and it works with the current orjson defined in the requirements. You may want to try that.

We are tracking this issue in #7313 --please subscribe there for news on this.

@humitos humitos closed this as completed Nov 23, 2020
@sovyk-v
Copy link

sovyk-v commented Jul 25, 2024

Had the same problem on Ubuntu 23.04, Python 3.11 and orjson 3.6.7. The issue turned out to be in an python3.11-incompatible orjson version. Fixed by updating orjson to Python 3.11-compatible version - orjson>=3.7.7 (I used 3.7.12 because it's the latest patch for orjson 3.7.x).

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