-
Notifications
You must be signed in to change notification settings - Fork 200
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
2.18.0: pep517 based build fails #1264
Comments
List of installed modules in build env Package Version
------------------ -----------
attrs 23.2.0
build 1.2.1
dirty-equals 0.7.1
exceptiongroup 1.1.3
hypothesis 6.100.0
importlib_metadata 7.1.0
iniconfig 2.0.0
installer 0.7.0
maturin 1.5.1
packaging 24.0
pluggy 1.4.0
py-cpuinfo 9.0.0
pyproject_hooks 1.0.0
pytest 8.1.1
pytest-benchmark 4.0.0
pytest-mock 3.14.0
pytest-timeout 2.3.1
python-dateutil 2.9.0.post0
pytz 2024.1
ruff 0.3.5
sortedcontainers 2.4.0
tokenize_rt 5.2.0
tomli 2.0.1
typing_extensions 4.10.0
wheel 0.43.0
zipp 3.18.1 |
Please can you give some details on the environment, os, how, and why your building pydantic-core from source. |
I'm building your module because I'm working on Linux/Solaris distribution. |
No idea why it's failing for you and not others (e.g. our CI) and only now, maybe a subtle change in a patch release. But I should be about to fix it. |
Is it anything else what I can try to do to provide more diagnostics? 🤔 |
The reason is that you have the wrong version of typing extensions installed: Line 4 in f636403
|
oh, I've just re-read the version constraint, maybe that's not it. |
Which patch version of 3.10 are you using? |
Latest one 3.10.14. |
Similar issue, which is very peculiar considering the version check should work?:
|
2.18.2 seems is OK + /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
* Building wheel...
Running `maturin pep517 build-wheel -i /usr/bin/python3 --compatibility off`
📦 Including license file "/home/tkloczko/rpmbuild/BUILD/pydantic-core-2.18.2/LICENSE"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.10 at /usr/bin/python3
📡 Using build options features, bindings from pyproject.toml
Compiling autocfg v1.1.0
Compiling target-lexicon v0.12.9
Compiling proc-macro2 v1.0.76
Compiling python3-dll-a v0.2.9
Compiling once_cell v1.18.0
Compiling unicode-ident v1.0.10
Compiling libc v0.2.147
Compiling heck v0.4.1
Compiling version_check v0.9.4
Compiling cfg-if v1.0.0
Compiling rustversion v1.0.13
Compiling parking_lot_core v0.9.8
Compiling static_assertions v1.1.0
Compiling scopeguard v1.1.0
Compiling tinyvec_macros v0.1.1
Compiling portable-atomic v1.6.0
Compiling smallvec v1.13.2
Compiling memchr v2.6.3
Compiling serde v1.0.197
Compiling zerocopy v0.7.32
Compiling regex-syntax v0.8.2
Compiling indoc v2.0.4
Compiling equivalent v1.0.1
Compiling unindent v0.2.3
Compiling percent-encoding v2.3.1
Compiling hashbrown v0.14.3
Compiling serde_json v1.0.114
Compiling unicode-bidi v0.3.13
Compiling itoa v1.0.8
Compiling ryu v1.0.14
Compiling uuid v1.7.0
Compiling base64 v0.21.7
Compiling tinyvec v1.6.0
Compiling lexical-util v0.8.5
Compiling form_urlencoded v1.2.1
Compiling aho-corasick v1.0.2
Compiling indexmap v2.2.2
Compiling unicode-normalization v0.1.22
Compiling lexical-parse-integer v0.8.6
Compiling quote v1.0.35
Compiling lexical-parse-float v0.8.5
Compiling syn v2.0.48
Compiling getrandom v0.2.10
Compiling ahash v0.8.10
Compiling idna v0.5.0
Compiling num-traits v0.2.16
Compiling num-integer v0.1.45
Compiling lock_api v0.4.10
Compiling num-bigint v0.4.4
Compiling memoffset v0.9.0
Compiling regex-automata v0.4.5
Compiling url v2.5.0
Compiling parking_lot v0.12.1
Compiling pyo3-build-config v0.21.1
Compiling regex v1.10.3
Compiling pyo3-macros-backend v0.21.1
Compiling pyo3-ffi v0.21.1
Compiling pyo3 v0.21.1
Compiling jiter v0.2.1
Compiling pydantic-core v2.18.2 (/home/tkloczko/rpmbuild/BUILD/pydantic-core-2.18.2)
Compiling serde_derive v1.0.197
Compiling strum_macros v0.25.3
Compiling enum_dispatch v0.3.13
Compiling strum_macros v0.26.1
Compiling pyo3-macros v0.21.1
Compiling strum v0.25.0
Compiling speedate v0.14.0
Finished `release` profile [optimized] target(s) in 6m 07s
📦 Built wheel for CPython 3.10 to /home/tkloczko/rpmbuild/BUILD/pydantic-core-2.18.2/target/wheels/pydantic_core-2.18.2-cp310-cp310-linux_x86_64.whl
/home/tkloczko/rpmbuild/BUILD/pydantic-core-2.18.2/target/wheels/pydantic_core-2.18.2-cp310-cp310-linux_x86_64.whl
Successfully built pydantic_core-2.18.2-cp310-cp310-linux_x86_64.whl Closing. |
I am currently unable to install the latest release on Windows. Output:
|
I'm releasing Python 3.13 support in PyO3 in the next version; so we can begin being able to build on 3.13 development versions soon. Until then, either set the environment variable and hope for the best (YMMV), or use a stable Python :) |
For me 2.18.2 and 2.18.3 are perfectly fine. |
Looks like something is wrong and I'm not sure what I can do more to diagnose this issue 🤔
The text was updated successfully, but these errors were encountered: