mistral-inference icon indicating copy to clipboard operation
mistral-inference copied to clipboard

[BUG: No arguments expected for "install" command, got "." watson@MacBookPro mistral-inference % poetry install .

Open davidthewatson opened this issue 6 months ago • 1 comments

Python -VV

Python 3.13.3 (main, Apr  8 2025, 13:54:08) [Clang 17.0.0 (clang-1700.0.13.3)]

apparently poetry doesn't like ".". I dunno, I don't use poetry. 

This is macos Apple Silicon on M1 Pro. FWIW, recommend using the rust invasion or innovation? of python tooling gone awry with uv, which goes a lot further, a lot faster. Armen Ronacher can't be wrong.

Thanks!

Pip Freeze

python3 -m pip freeze
certifi==2025.4.26
cffi==1.17.1
gpg==1.24.3
packaging==25.0
pycparser==2.22
wheel @ file:///opt/homebrew/Cellar/python%403.13/3.13.2/libexec/wheel-0.45.1-py3-none-any.whl#sha256=b9235939e2096903717cb6bfc132267f8a7e46deb2ec3ef9c5e234ea301795d0

Reproduction Steps

  1. Copy install lines from github project.
  2. Crash on poetry install .

Expected Behavior

Install!

Additional Context

switch ro uv. tastes great. less filling. simon willison knows. ask him. he's closer to your shores than I am.

Suggested Solutions

uv.

davidthewatson avatar Jun 05 '25 19:06 davidthewatson

Removing the dot causes another crash:

poetry install
Installing dependencies from lock file

Package operations: 44 installs, 0 updates, 0 removals

- Installing rpds-py (0.18.1): Failed

PEP517 build of a dependency failed

Backend subprocess exited when trying to invoke build_wheel

  | Command '['/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python', '/opt/homebrew/Cellar/poetry/2.1.3/libexec/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmp3_tqlodv']' returned non-zero exit status 1.
  | 
  | Running `maturin pep517 build-wheel -i /private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python --compatibility off`
  | 📦 Including license file "/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmp87dn1l92/rpds_py-0.18.1/LICENSE"
  | 🔗 Found pyo3 bindings
  | 🐍 Found CPython 3.13 at /private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python
  | 📡 Using build options features from pyproject.toml
  | 💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default
  |    Compiling target-lexicon v0.12.9
  |    Compiling once_cell v1.18.0
  |    Compiling autocfg v1.1.0
  |    Compiling proc-macro2 v1.0.66
  |    Compiling unicode-ident v1.0.11
  |    Compiling libc v0.2.147
  |    Compiling parking_lot_core v0.9.8
  |    Compiling scopeguard v1.1.0
  |    Compiling portable-atomic v1.6.0
  |    Compiling smallvec v1.11.0
  |    Compiling cfg-if v1.0.0
  |    Compiling heck v0.4.1
  |    Compiling triomphe v0.1.9
  |    Compiling static_assertions v1.1.0
  |    Compiling unindent v0.2.3
  |    Compiling indoc v2.0.4
  |    Compiling lock_api v0.4.10
  |    Compiling memoffset v0.9.0
  |    Compiling archery v1.2.0
  |    Compiling rpds v1.1.0
  |    Compiling quote v1.0.31
  |    Compiling syn v2.0.32
  |    Compiling pyo3-build-config v0.20.3
  |    Compiling parking_lot v0.12.1
  |    Compiling pyo3-ffi v0.20.3
  |    Compiling pyo3 v0.20.3
  | error: failed to run custom build command for `pyo3-ffi v0.20.3`
  | 
  | Caused by:
  |   process didn't exit successfully: `/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmp87dn1l92/rpds_py-0.18.1/target/release/build/pyo3-ffi-ecaf5723532d0b0a/build-script-build` (exit status: 1)
  |   --- stdout
  |   cargo:rerun-if-env-changed=PYO3_CROSS
  |   cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
  |   cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
  |   cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
  |   cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
  |   cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY
  | 
  |   --- stderr
  |   error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
  |   = help: please check if an updated version of PyO3 is available. Current version: 0.20.3
  |   = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
  | warning: build failed, waiting for other jobs to finish...
  | 💥 maturin failed
  |   Caused by: Failed to build a native library through cargo
  |   Caused by: Cargo build finished with "exit status: 101": `env -u CARGO MACOSX_DEPLOYMENT_TARGET="11.0" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python" PYTHON_SYS_EXECUTABLE="/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmp87dn1l92/rpds_py-0.18.1/Cargo.toml" "--release" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/rpds.cpython-313-darwin.so"`
  | Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/private/var/folders/sw/6w0m56lj2tz7189k6ntdqmcw0000gn/T/tmpbwjno68z/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with rpds-py (0.18.1)

- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).

You can verify this by running pip wheel --no-cache-dir --use-pep517 "rpds-py (==0.18.1)".

davidthewatson avatar Jun 05 '25 19:06 davidthewatson