error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-3tc_w84t --interpreter /tmp/tmpx8710mzz/venv/bin/python`
error: failed to parse lock file at: /tmp/pip-install-2reivb6t/orjson_caa20ab8ed4c45a481f8b027b2af3969/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
💥 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-3tc_w84t', '--interpreter', '/tmp/tmpx8710mzz/venv/bin/python']' returned non-zero exit status 1.
[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.
error: subprocess-exited-with-error
× Building wheel for tiktoken (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [74 lines of output]
/tmp/pip-build-env-t123wqor/overlay/lib/python3.13t/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/__init__.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/_educational.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/core.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/load.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/model.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
copying tiktoken/registry.py -> build/lib.linux-x86_64-cpython-313t/tiktoken
creating build/lib.linux-x86_64-cpython-313t/tiktoken_ext
copying tiktoken_ext/openai_public.py -> build/lib.linux-x86_64-cpython-313t/tiktoken_ext
running egg_info
writing tiktoken.egg-info/PKG-INFO
writing dependency_links to tiktoken.egg-info/dependency_links.txt
writing requirements to tiktoken.egg-info/requires.txt
writing top-level names to tiktoken.egg-info/top_level.txt
reading manifest file 'tiktoken.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
adding license file 'LICENSE'
writing manifest file 'tiktoken.egg-info/SOURCES.txt'
copying tiktoken/py.typed -> build/lib.linux-x86_64-cpython-313t/tiktoken
running build_ext
running build_rust
Blocking waiting for file lock on package cache
Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Downloading crates ...
Downloaded fancy-regex v0.13.0
Downloaded bit-vec v0.6.3
Downloaded bit-set v0.5.3
Downloaded rustc-hash v1.1.0
Downloaded serde_derive v1.0.219
Downloaded serde v1.0.219
Downloaded memchr v2.7.5
Downloaded aho-corasick v1.1.3
Downloaded regex v1.11.1
Downloaded syn v2.0.104
Downloaded regex-syntax v0.8.5
Downloaded regex-automata v0.4.9
Downloaded bstr v1.12.0
cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features python pyo3/extension-module -- --crate-type cdylib
Downloading crates ...
Downloaded cfg-if v1.0.1
Downloaded target-lexicon v0.12.16
Downloaded pyo3-macros v0.22.6
Downloaded pyo3-macros-backend v0.22.6
Downloaded autocfg v1.5.0
Downloaded pyo3-build-config v0.22.6
Downloaded pyo3-ffi v0.22.6
Downloaded pyo3 v0.22.6
Downloaded libc v0.2.174
Blocking waiting for file lock on package cache
error: package `regex v1.11.1` cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.63.0
Either upgrade to rustc 1.65 or newer, or use
cargo update -p regex@1.11.1 --precise ver
where `ver` is the latest version of `regex` supporting rustc 1.63.0
error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features 'python pyo3/extension-module' -- --crate-type cdylib` failed with code 101
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tiktoken
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> tiktoken
0dab /tmp/pip-install-so2fs2ix/scipy_7d843626d8bb4ab3b2ab99e63ece0dab/.mesonpy-0vh2fjww -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-so2fs2ix/scipy_7d843626d8bb4ab3b2ab99e63ece0dab/.mesonpy-0vh2fjww/meson-python-native-file.ini
The Meson build system
Version: 1.9.0
Source dir: /tmp/pip-install-so2fs2ix/scipy_7d843626d8bb4ab3b2ab99e63ece0dab
Build dir: /tmp/pip-install-so2fs2ix/scipy_7d843626d8bb4ab3b2ab99e63ece0dab/.mesonpy-0vh2fjww
Build type: native build
Project name: scipy
Project version: 1.15.3
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14+deb12u1) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14+deb12u1) 12.2.0")
C++ linker for the host machine: c++ ld.bfd 2.40
Cython compiler for the host machine: cython (cython 3.0.12)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/tmp/tmpgll4fs4j/venv/bin/python)
Did not find pkg-config by name 'pkg-config'
Found pkg-config: NO
Run-time dependency python found: YES 3.14
Program cython found: YES (/tmp/pip-build-env-_vtjo_84/overlay/bin/cython)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Library m found: YES
../meson.build:80:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
The following exception(s) were encountered:
Running `gfortran --help` gave "[Errno 2] No such file or directory: 'gfortran'"
Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
Running `flang-new --help` gave "[Errno 2] No such file or directory: 'flang-new'"
Running `flang-new --version` gave "[Errno 2] No such file or directory: 'flang-new'"
Running `flang-new -V` gave "[Errno 2] No such file or directory: 'flang-new'"
Running `flang --help` gave "[Errno 2] No such file or directory: 'flang'"
Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
Running `nvfortran --help` gave "[Errno 2] No such file or directory: 'nvfortran'"
Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
Running `pgfortran --help` gave "[Errno 2] No such file or directory: 'pgfortran'"
Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
Running `ifort --help` gave "[Errno 2] No such file or directory: 'ifort'"
Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
Running `ifx --help` gave "[Errno 2] No such file or directory: 'ifx'"
Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
Running `g95 --help` gave "[Errno 2] No such file or directory: 'g95'"
Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
A full log can be found at /tmp/pip-install-so2fs2ix/scipy_7d843626d8bb4ab3b2ab99e63ece0dab/.mesonpy-0vh2fjww/meson-logs/meson-log.txt
[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.
[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.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-ibrxb27a --interpreter /tmp/tmpjkltpzps/venv/bin/python`
error: failed to parse lock file at: /tmp/pip-install-z4hk4g23/rpds-py_1fb359a2acde422088623cf6675e8f39/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
💥 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-ibrxb27a', '--interpreter', '/tmp/tmpjkltpzps/venv/bin/python']' returned non-zero exit status 1.
[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.
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-1akv0qr4 --interpreter /tmp/tmptmvtsanl/venv/bin/python`
error: failed to parse lock file at: /tmp/pip-install-7yhtvilm/orjson_0d32e2e24676425e91e9eba5fd936898/Cargo.lock
Caused by:
lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated?
💥 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-1akv0qr4', '--interpreter', '/tmp/tmptmvtsanl/venv/bin/python']' returned non-zero exit status 1.
[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.
error: subprocess-exited-with-error
× Building wheel for tiktoken (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
/tmp/pip-build-env-n11r2wyu/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/__init__.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/_educational.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/core.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/load.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/model.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
copying tiktoken/registry.py -> build/lib.linux-x86_64-cpython-314t/tiktoken
creating build/lib.linux-x86_64-cpython-314t/tiktoken_ext
copying tiktoken_ext/openai_public.py -> build/lib.linux-x86_64-cpython-314t/tiktoken_ext
running egg_info
writing tiktoken.egg-info/PKG-INFO
writing dependency_links to tiktoken.egg-info/dependency_links.txt
writing requirements to tiktoken.egg-info/requires.txt
writing top-level names to tiktoken.egg-info/top_level.txt
reading manifest file 'tiktoken.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
adding license file 'LICENSE'
writing manifest file 'tiktoken.egg-info/SOURCES.txt'
copying tiktoken/py.typed -> build/lib.linux-x86_64-cpython-314t/tiktoken
running build_ext
running build_rust
error: failed to parse manifest at `/tmp/pip-install-u13sr0fs/tiktoken_e0b1c137c5c143bbad4cc336e8ebdd51/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
this version of Cargo is older than the `2024` edition, and only supports `2015`, `2018`, and `2021` editions.
error: `cargo metadata --manifest-path Cargo.toml --format-version 1` 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 tiktoken
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> tiktoken