[Debichem-devel] Bug#1077430: python-emmet-core: FTBFS: E ImportError: cannot import name 'datetime' from 'pydantic.datetime_parse' (/usr/lib/python3/dist-packages/pydantic/datetime_parse.py)

Lucas Nussbaum lucas at debian.org
Mon Jul 29 06:32:45 BST 2024


Source: python-emmet-core
Version: 0.57.1-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> set -e; \
> for py in 3.12; do \
> SKIP_TESTS=""; \
> list_initialised=0; \
> for t in test_from_url test_seriallization test_task_doc; do \
>   if [ ${list_initialised} = 0 ]; then \
>     SKIP_TESTS=$t; \
>     list_initialised=1; \
>   else \
>     SKIP_TESTS="${SKIP_TESTS} or $t"; \
>   fi; \
> done; \
> if [ "x${SKIP_TESTS}" != "x" ]; then \
>   SKIP_TESTS="not ( ${SKIP_TESTS} )"; \
> fi; \
> echo "skipping tests: ${SKIP_TESTS}"; \
>   pybuilddir=`pybuild --pyver $py --print build_dir | awk '{print $3}'`; \
>   testdir=/<<PKGBUILDDIR>>/.pybuild/test_python$py; \
>   mkdir $testdir; cp -a tests $testdir; \
>   cd $testdir; \
>   PMG_TEST_FILES_DIR=/<<PKGBUILDDIR>>/debian/test_files PYTHONPATH=$pybuilddir \
>     python$py -m pytest -v -k "${SKIP_TESTS}" $testdir; \
> done
> skipping tests: not ( test_from_url or test_seriallization or test_task_doc )
> ImportError while loading conftest '/<<PKGBUILDDIR>>/.pybuild/test_python3.12/tests/conftest.py'.
> tests/conftest.py:121: in <module>
>     class SiNonSCFUniform(SchemaTestData):
> tests/conftest.py:122: in SiNonSCFUniform
>     from emmet.core.vasp.calculation import VaspObject
> ../cpython3_3.12_emmet-core/build/emmet/core/vasp/calculation.py:11: in <module>
>     from pydantic.datetime_parse import datetime
> E   ImportError: cannot import name 'datetime' from 'pydantic.datetime_parse' (/usr/lib/python3/dist-packages/pydantic/datetime_parse.py)
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 4


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/python-emmet-core_0.57.1-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debichem-devel mailing list