Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937520 - dev-python/pydantic-core-2.20.1 fails to emerge: expected array, but found string
Summary: dev-python/pydantic-core-2.20.1 fails to emerge: expected array, but found st...
Status: RESOLVED DUPLICATE of bug 937470
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-07 17:30 UTC by Florian Schmaus
Modified: 2024-08-07 17:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge.log (pydantic-core-2.20.1:20240807-155829.log,13.67 KB, text/x-log)
2024-08-07 17:30 UTC, Florian Schmaus
Details
emerge-info.txt (emerge-info.txt,10.03 KB, text/plain)
2024-08-07 17:31 UTC, Florian Schmaus
Details
emerge-pqv.txt (emerge-pqv.txt,152 bytes, text/plain)
2024-08-07 17:32 UTC, Florian Schmaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2024-08-07 17:30:28 UTC
Created attachment 899363 [details]
emerge.log

emerging pydantic-core-2.20.1 fails with

 *   Building the wheel for pydantic_core-2.20.1 via maturin
cargo_env python3.12 -m gpep517 build-wheel --prefix=/usr --backend maturin --output-fd 3 --wheel-dir /data-scratch/var-tmp/portage/dev-pytho
n/pydantic-core-2.20.1/work/pydantic_core-2.20.1-python3_12/wheel --config-json {"build-args": ["--jobs=12", "--skip-auditwheel"]}
2024-08-07 17:58:32,849 gpep517 INFO Building wheel via backend maturin
Running `maturin pep517 build-wheel -i /usr/bin/python3.12 --compatibility off --jobs=12 --skip-auditwheel`
error: could not load Cargo configuration

Caused by:
  failed to merge configuration at `/data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/cargo_home/config.toml`

Caused by:
  failed to merge key `build` between /data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/pydantic_core-2.20.1/.cargo/config.t
oml and /data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/cargo_home/config.toml

Caused by:
  failed to merge key `rustflags` between /data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/pydantic_core-2.20.1/.cargo/config.toml and /data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/cargo_home/config.toml

Caused by:
  failed to merge config value from `/data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/cargo_home/config.toml` into `/data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/pydantic_core-2.20.1/.cargo/config.toml`: expected array, but found string
💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error: 
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3.12', '--compatibility', 'off', '--jobs=12', '--skip-auditwheel'] returned non-zero exit status 1
 * ERROR: dev-python/pydantic-core-2.20.1::gentoo failed (compile phase):
 *   Wheel build failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4516:  Called distutils-r1_src_compile
 *   environment, line 2278:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  869:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3959:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3455:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3453:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1352:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 2260:  Called distutils-r1_python_compile
 *   environment, line 2082:  Called distutils_pep517_install '/data-scratch/var-tmp/portage/dev-python/pydantic-core-2.20.1/work/pydantic_core-2.20.1-python3_12/install'
 *   environment, line 2605:  Called die
 * The specific snippet of code:
 *       local wheel=$("${cmd[@]}" 3>&1 1>&2 || die "Wheel build failed");
Comment 1 Florian Schmaus gentoo-dev 2024-08-07 17:31:44 UTC
Created attachment 899364 [details]
emerge-info.txt
Comment 2 Florian Schmaus gentoo-dev 2024-08-07 17:32:13 UTC
Created attachment 899383 [details]
emerge-pqv.txt
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-07 17:32:55 UTC
Sigh, did I test the wrong version?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-07 17:37:44 UTC

*** This bug has been marked as a duplicate of bug 937470 ***