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

Maturin fails to build while trying to build orjson from sources #1458

Closed
2 tasks
lu-zero opened this issue Feb 3, 2023 · 1 comment
Closed
2 tasks

Maturin fails to build while trying to build orjson from sources #1458

lu-zero opened this issue Feb 3, 2023 · 1 comment
Labels
upstream Upstream issue

Comments

@lu-zero
Copy link

lu-zero commented Feb 3, 2023

Bug Description

python -m venv .some-env
. .some-env/bin/activate
pip install orjson --no-binary :all:

fails with

             Downloading crates ...
            error: failed to download `winapi-x86_64-pc-windows-gnu v0.4.0`

            Caused by:
              unable to get packages from source

            Caused by:
              failed to unpack package `winapi-x86_64-pc-windows-gnu v0.4.0`

            Caused by:
              failed to open `/home/lu_zero/.cargo/registry/src/github.com-1ecc6299db9ec823/winapi-x86_64-pc-windows-gnu-0.4.0/.cargo-ok`

            Caused by:
              File exists (os error 17)
            error: `cargo metadata --manifest-path Cargo.toml --format-version 1 --locked` failed with code 101
            -- Output captured from stdout:

            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for maturin
        Building wheel for tomli (pyproject.toml): started
        Building wheel for tomli (pyproject.toml): finished with status 'done'
        Created wheel for tomli: filename=tomli-2.0.1-py3-none-any.whl size=12758 sha256=c351f96ba658fa5c284b5c3f3036cfc3db32f9700c4d5a6a29f3d1fb10da4626
        Stored in directory: /home/lu_zero/.cache/pip/wheels/5e/2d/f9/a8d3aa83dbc50206ba48484888342f10b89e450cc49c37f7bb
      Successfully built tomli
      Failed to build maturin
      ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects

Your maturin version (maturin --version)

0.14.12

Your Python version (python -V)

3.10.9

Your pip version (pip -V)

23.0 and 22.3.1

What bindings you're using

cffi

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  • Install rust stable via rustup
  • Install python3.10
  • Setup a virtualenv
  • pip install orjson --no-binary :all:
@lu-zero lu-zero added the bug Something isn't working label Feb 3, 2023
@messense
Copy link
Member

messense commented Feb 3, 2023

Most likely a cargo bug: rust-lang/cargo#11638

@messense messense added upstream Upstream issue and removed bug Something isn't working labels Feb 3, 2023
@messense messense closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

2 participants