milesmcc / shynet

Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Apache License 2.0
2.93k stars 191 forks source link

rpds-py error: subprocess-exited-with-error #315

Open losthearts opened 8 months ago

losthearts commented 8 months ago

I am trying to build shynet for armv6 using docker. I'm going about doing this by running sudo docker build -t armv6shynet . --network=host in the root repo.

Collecting rpds-py>=0.7.1
  Downloading rpds_py-0.18.0.tar.gz (25 kB)
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error' 
error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      error: failed to parse manifest at `/tmp/pip-install-dazea_km/rpds-py_e70e4fbb97ac439a81d93a293d1a741c/Cargo.toml`

      Caused by:
        feature `edition2021` is required

        this Cargo does not support nightly features, but if you
        switch to nightly channel you can add
        `cargo-features = ["edition2021"]` to enable this feature
      💥 maturin failed
        Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
        Caused by: `cargo metadata` exited with an error:
      Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-26f5hqk4', '--interpreter', '/usr/local/bin/python']' returned non-zero exit status 1.
      Checking for Rust toolchain....
      Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-26f5hqk4 --interpreter /usr/local/bin/python`
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.4; however, version 24.0 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev libressl-dev libffi-dev &&         npm i -P --prefix .. &&   pip install poetry==1.2.2 &&     poetry config virtualenvs.create false &&       poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation &&
        poetry install --no-dev --no-interaction --no-ansi &&   apk --purge del .build-deps' returned a non-zero code: 1