I hope I'm posting in the right place. I'm attempting to build mongodb, which has a set of python dependencies with very specific versions including poetry 1.5.1. For poetry and a few other dependencies I get a "failed to acquire package cache lock".
Is the package cache lock a FreeBSD or rust issue? What is it telling me is wrong and how might I fix/debug this issue? All help is appreciated!
I do not want to use pkg manager in my use case.
I've tried a bunch of different actions such as clearing some space, 'rustup default stable', updating pip versions, etc.
FreeBSD xxxxxxxxxxx 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64
(.venv) [kinkade@xxxxxxxxxxx mongo-r8.0.4]$ pip --version
pip 25.0 from /u/kinkade/mongodb_src2/mongo-r8.0.4/.venv/lib/python3.11/site-packages/pip (python 3.11)
(.venv) [kinkade@xxxxxxxxxxx mongo-r8.0.4]$ python --version
Python 3.11.10
Is the package cache lock a FreeBSD or rust issue? What is it telling me is wrong and how might I fix/debug this issue? All help is appreciated!
I do not want to use pkg manager in my use case.
Code:
[FONT=Calibri]bash
cd ~/mongodb_src2/mongo-r8.0.4
python3 -m venv .venv
source python3-venv/bin/activate
pip install 'poetry==1.5.1'
...[/FONT]
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
Collecting maturin<2.0,>=1.2
Using cached maturin-1.8.1.tar.gz (197 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 metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: maturin
Building wheel for maturin (pyproject.toml): started
Building wheel for maturin (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for maturin (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.freebsd-14.1-RELEASE-p5-amd64-cpython-311/maturin
copying maturin/__init__.py -> build/lib.freebsd-14.1-RELEASE-p5-amd64-cpython-311/maturin
copying maturin/__main__.py -> build/lib.freebsd-14.1-RELEASE-p5-amd64-cpython-311/maturin
running egg_info
writing maturin.egg-info/PKG-INFO
writing dependency_links to maturin.egg-info/dependency_links.txt
writing requirements to maturin.egg-info/requires.txt
writing top-level names to maturin.egg-info/top_level.txt
reading manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.json' under directory 'src/python_interpreter'
writing manifest file 'maturin.egg-info/SOURCES.txt'
running build_ext
running build_rust
error: failed to acquire package cache lock
Caused by:
failed to lock file: /u/kinkade/.cargo/.package-cache
Caused by:
No locks available (os error 77)
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
Failed to build maturin
ERROR: Failed to build installable wheels for some pyproject.toml based projects (maturin)
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
FreeBSD xxxxxxxxxxx 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64
(.venv) [kinkade@xxxxxxxxxxx mongo-r8.0.4]$ pip --version
pip 25.0 from /u/kinkade/mongodb_src2/mongo-r8.0.4/.venv/lib/python3.11/site-packages/pip (python 3.11)
(.venv) [kinkade@xxxxxxxxxxx mongo-r8.0.4]$ python --version
Python 3.11.10