0s autopkgtest [11:02:28]: starting date and time: 2024-11-13 11:02:28+0000 0s autopkgtest [11:02:28]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [11:02:28]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.nict46qm/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade duecredit --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-5.secgroup --name adt-plucky-s390x-duecredit-20241113-110227-juju-7f2275-prod-proposed-migration-environment-20-4a228051-7b68-4956-a3f3-bfc12c7dab2c --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 107s autopkgtest [11:04:15]: testbed dpkg architecture: s390x 107s autopkgtest [11:04:15]: testbed apt version: 2.9.8 107s autopkgtest [11:04:15]: @@@@@@@@@@@@@@@@@@@@ test bed setup 108s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 109s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 109s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 109s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 109s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 109s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [85.8 kB] 109s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [565 kB] 109s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [16.6 kB] 109s Fetched 1689 kB in 1s (2216 kB/s) 109s Reading package lists... 111s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s Calculating upgrade... 111s The following NEW packages will be installed: 111s python3.13-gdbm 111s The following packages will be upgraded: 111s libgpgme11t64 libpython3-stdlib python3 python3-gdbm python3-minimal 112s 5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 112s Need to get 252 kB of archives. 112s After this operation, 98.3 kB of additional disk space will be used. 112s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.7-1 [27.4 kB] 112s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.7-1 [24.0 kB] 112s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.7-1 [10.0 kB] 112s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-gdbm s390x 3.13.0-2 [31.0 kB] 112s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-gdbm s390x 3.12.7-1 [8642 B] 112s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x libgpgme11t64 s390x 1.23.2-5ubuntu4 [151 kB] 112s Fetched 252 kB in 0s (597 kB/s) 112s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 55510 files and directories currently installed.) 112s Preparing to unpack .../python3-minimal_3.12.7-1_s390x.deb ... 112s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 112s Setting up python3-minimal (3.12.7-1) ... 112s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 55510 files and directories currently installed.) 112s Preparing to unpack .../python3_3.12.7-1_s390x.deb ... 112s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 112s Preparing to unpack .../libpython3-stdlib_3.12.7-1_s390x.deb ... 112s Unpacking libpython3-stdlib:s390x (3.12.7-1) over (3.12.6-0ubuntu1) ... 113s Selecting previously unselected package python3.13-gdbm. 113s Preparing to unpack .../python3.13-gdbm_3.13.0-2_s390x.deb ... 113s Unpacking python3.13-gdbm (3.13.0-2) ... 113s Preparing to unpack .../python3-gdbm_3.12.7-1_s390x.deb ... 113s Unpacking python3-gdbm:s390x (3.12.7-1) over (3.12.6-1ubuntu1) ... 113s Preparing to unpack .../libgpgme11t64_1.23.2-5ubuntu4_s390x.deb ... 113s Unpacking libgpgme11t64:s390x (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 113s Setting up libgpgme11t64:s390x (1.23.2-5ubuntu4) ... 113s Setting up python3.13-gdbm (3.13.0-2) ... 113s Setting up libpython3-stdlib:s390x (3.12.7-1) ... 113s Setting up python3 (3.12.7-1) ... 113s Setting up python3-gdbm:s390x (3.12.7-1) ... 113s Processing triggers for man-db (2.12.1-3) ... 113s Processing triggers for libc-bin (2.40-1ubuntu3) ... 114s Reading package lists... 114s Building dependency tree... 114s Reading state information... 114s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 114s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 114s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 114s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 115s Reading package lists... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Calculating upgrade... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s Reading package lists... 116s Building dependency tree... 116s Reading state information... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s autopkgtest [11:04:27]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 119s autopkgtest [11:04:27]: @@@@@@@@@@@@@@@@@@@@ apt-source duecredit 120s Get:1 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (dsc) [2238 B] 120s Get:2 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (tar) [84.3 kB] 120s Get:3 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (diff) [4296 B] 121s gpgv: Signature made Sun Sep 22 22:39:02 2024 UTC 121s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 121s gpgv: issuer "tchet@debian.org" 121s gpgv: Can't check signature: No public key 121s dpkg-source: warning: cannot verify inline signature for ./duecredit_0.10.2-2.dsc: no acceptable signature found 121s autopkgtest [11:04:29]: testing package duecredit version 0.10.2-2 121s autopkgtest [11:04:29]: build not needed 121s autopkgtest [11:04:29]: test command1: preparing testbed 124s Reading package lists... 124s Building dependency tree... 124s Reading state information... 124s Starting pkgProblemResolver with broken count: 0 124s Starting 2 pkgProblemResolver with broken count: 0 124s Done 124s The following additional packages will be installed: 124s libpython3.13-minimal libpython3.13-stdlib libxslt1.1 python3-all 124s python3-citeproc python3-duecredit python3-iniconfig python3-looseversion 124s python3-lxml python3-packaging python3-pluggy python3-pytest python3.13 124s python3.13-minimal 124s Suggested packages: 124s python-lxml-doc python3.13-venv python3.13-doc binfmt-support 124s Recommended packages: 124s python3-bs4 python3-cssselect python3-html5lib 124s The following NEW packages will be installed: 124s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib libxslt1.1 124s python3-all python3-citeproc python3-duecredit python3-iniconfig 124s python3-looseversion python3-lxml python3-packaging python3-pluggy 124s python3-pytest python3.13 python3.13-minimal 124s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 124s Need to get 7831 kB/7832 kB of archives. 124s After this operation, 30.9 MB of additional disk space will be used. 124s Get:1 /tmp/autopkgtest.gTCLKj/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [728 B] 124s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.0-2 [877 kB] 125s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.0-2 [2172 kB] 125s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.0-2 [2086 kB] 125s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x libxslt1.1 s390x 1.1.39-0exp1ubuntu1 [169 kB] 125s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.0-2 [719 kB] 125s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.7-1 [890 B] 125s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x python3-lxml s390x 5.3.0-1 [1314 kB] 125s Get:9 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-citeproc all 0.6.0-3 [98.4 kB] 125s Get:10 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-looseversion all 1.3.0-3 [8354 B] 125s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 125s Get:12 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-duecredit all 0.10.2-2 [66.0 kB] 125s Get:13 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 125s Get:14 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 125s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 126s Fetched 7831 kB in 1s (8066 kB/s) 126s Selecting previously unselected package libpython3.13-minimal:s390x. 126s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 55517 files and directories currently installed.) 126s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_s390x.deb ... 126s Unpacking libpython3.13-minimal:s390x (3.13.0-2) ... 126s Selecting previously unselected package python3.13-minimal. 126s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_s390x.deb ... 126s Unpacking python3.13-minimal (3.13.0-2) ... 126s Selecting previously unselected package libpython3.13-stdlib:s390x. 126s Preparing to unpack .../02-libpython3.13-stdlib_3.13.0-2_s390x.deb ... 126s Unpacking libpython3.13-stdlib:s390x (3.13.0-2) ... 126s Selecting previously unselected package libxslt1.1:s390x. 126s Preparing to unpack .../03-libxslt1.1_1.1.39-0exp1ubuntu1_s390x.deb ... 126s Unpacking libxslt1.1:s390x (1.1.39-0exp1ubuntu1) ... 126s Selecting previously unselected package python3.13. 126s Preparing to unpack .../04-python3.13_3.13.0-2_s390x.deb ... 126s Unpacking python3.13 (3.13.0-2) ... 126s Selecting previously unselected package python3-all. 126s Preparing to unpack .../05-python3-all_3.12.7-1_s390x.deb ... 126s Unpacking python3-all (3.12.7-1) ... 126s Selecting previously unselected package python3-lxml:s390x. 126s Preparing to unpack .../06-python3-lxml_5.3.0-1_s390x.deb ... 126s Unpacking python3-lxml:s390x (5.3.0-1) ... 126s Selecting previously unselected package python3-citeproc. 126s Preparing to unpack .../07-python3-citeproc_0.6.0-3_all.deb ... 126s Unpacking python3-citeproc (0.6.0-3) ... 126s Selecting previously unselected package python3-looseversion. 126s Preparing to unpack .../08-python3-looseversion_1.3.0-3_all.deb ... 126s Unpacking python3-looseversion (1.3.0-3) ... 126s Selecting previously unselected package python3-packaging. 126s Preparing to unpack .../09-python3-packaging_24.1-1_all.deb ... 126s Unpacking python3-packaging (24.1-1) ... 126s Selecting previously unselected package python3-duecredit. 126s Preparing to unpack .../10-python3-duecredit_0.10.2-2_all.deb ... 126s Unpacking python3-duecredit (0.10.2-2) ... 126s Selecting previously unselected package python3-iniconfig. 126s Preparing to unpack .../11-python3-iniconfig_1.1.1-2_all.deb ... 126s Unpacking python3-iniconfig (1.1.1-2) ... 126s Selecting previously unselected package python3-pluggy. 126s Preparing to unpack .../12-python3-pluggy_1.5.0-1_all.deb ... 126s Unpacking python3-pluggy (1.5.0-1) ... 126s Selecting previously unselected package python3-pytest. 126s Preparing to unpack .../13-python3-pytest_8.3.3-1_all.deb ... 126s Unpacking python3-pytest (8.3.3-1) ... 126s Selecting previously unselected package autopkgtest-satdep. 126s Preparing to unpack .../14-1-autopkgtest-satdep.deb ... 126s Unpacking autopkgtest-satdep (0) ... 126s Setting up python3-iniconfig (1.1.1-2) ... 126s Setting up libpython3.13-minimal:s390x (3.13.0-2) ... 126s Setting up python3-packaging (24.1-1) ... 126s Setting up python3-pluggy (1.5.0-1) ... 126s Setting up python3-looseversion (1.3.0-3) ... 127s Setting up libxslt1.1:s390x (1.1.39-0exp1ubuntu1) ... 127s Setting up python3.13-minimal (3.13.0-2) ... 127s Setting up libpython3.13-stdlib:s390x (3.13.0-2) ... 127s Setting up python3.13 (3.13.0-2) ... 129s Setting up python3-pytest (8.3.3-1) ... 129s Setting up python3-all (3.12.7-1) ... 129s Setting up python3-lxml:s390x (5.3.0-1) ... 129s Setting up python3-citeproc (0.6.0-3) ... 130s Setting up python3-duecredit (0.10.2-2) ... 130s Setting up autopkgtest-satdep (0) ... 130s Processing triggers for systemd (256.5-2ubuntu4) ... 130s Processing triggers for man-db (2.12.1-3) ... 130s Processing triggers for libc-bin (2.40-1ubuntu3) ... 132s (Reading database ... 56720 files and directories currently installed.) 132s Removing autopkgtest-satdep (0) ... 133s autopkgtest [11:04:41]: test command1: for py in `py3versions -s`; do $py -m pytest -k "not test_import_doi" /usr/lib/python3/dist-packages/duecredit/tests; done 133s autopkgtest [11:04:41]: test command1: [----------------------- 133s ============================= test session starts ============================== 133s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 133s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 133s plugins: typeguard-4.4.1 133s collected 76 items / 1 deselected / 75 selected 133s 133s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test__main__.py . [ 1%] 133s .. [ 4%] 133s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_api.py .. [ 6%] 134s .ssssssss [ 18%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_cmdline.py . [ 20%] 134s .... [ 25%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_collector.py . [ 26%] 134s ........ [ 37%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_dueswitch.py . [ 38%] 134s . [ 40%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_entries.py . [ 41%] 134s . [ 42%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_injections.py . [ 44%] 134s .....ss........... [ 68%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py ... [ 72%] 134s .FF....FF. [ 85%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_utils.py . [ 86%] 134s [ 86%] 134s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_versions.py . [ 88%] 134s .ssssssss [100%] 134s 134s =================================== FAILURES =================================== 134s _______________________________ test_text_output _______________________________ 134s 134s bibtex_entry = BibTeX("@ARTICLE{XXX0,\n author = {Halchenko, Yaroslav O. and Hanke, Michael},\n title = {Open is not enough. Let{'}...mber = {00022},\n doi = {10.3389/fninf.2012.00022},\n issn = {1662-5196},\n localfile = {HH12.pdf},\n}", key='XXX0') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s > import citeproc as cp 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:299: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 134s from .frontend import CitationStylesStyle, CitationStylesBibliography 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s 134s import os 134s 134s from warnings import warn 134s 134s > from lxml import etree 134s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 134s 134s During handling of the above exception, another exception occurred: 134s 134s def test_text_output() -> None: 134s entry = BibTeX(_sample_bibtex) 134s entry2 = BibTeX(_sample_bibtex2) 134s 134s # in this case, since we're not citing any module or method, we shouldn't 134s # output anything 134s collector = DueCreditCollector() 134s collector.cite(entry, path="package") 134s 134s strio = StringIO() 134s TextOutput(strio, collector).dump(tags=["*"]) 134s value = strio.getvalue() 134s assert "0 packages cited" in value, "value was %s" % value 134s assert "0 modules cited" in value, "value was %s" % value 134s assert "0 functions cited" in value, "value was %s" % value 134s 134s # but it should be cited if cite_module=True 134s collector = DueCreditCollector() 134s collector.cite(entry, path="package", cite_module=True) 134s 134s strio = StringIO() 134s > TextOutput(strio, collector).dump(tags=["*"]) 134s 134s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:306: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/duecredit/io.py:247: in dump 134s self.fd.write(get_text_rendering(cit.entry, style=self.style)) 134s /usr/lib/python3/dist-packages/duecredit/io.py:256: in get_text_rendering 134s return format_bibtex(entry, style=style) 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s bibtex_entry = BibTeX("@ARTICLE{XXX0,\n author = {Halchenko, Yaroslav O. and Hanke, Michael},\n title = {Open is not enough. Let{'}...mber = {00022},\n doi = {10.3389/fninf.2012.00022},\n issn = {1662-5196},\n localfile = {HH12.pdf},\n}", key='XXX0') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s import citeproc as cp 134s from citeproc.source.bibtex import BibTeX as cpBibTeX 134s except ImportError as e: 134s > raise RuntimeError( 134s "For formatted output we need citeproc and all of its dependencies " 134s "(such as lxml) but there is a problem while importing citeproc: %s" 134s % str(e) 134s ) 134s E RuntimeError: For formatted output we need citeproc and all of its dependencies (such as lxml) but there is a problem while importing citeproc: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 134s _______________________ test_text_output_dump_formatting _______________________ 134s 134s bibtex_entry = BibTeX("@ARTICLE{XXX0,\n author = {Halchenko, Yaroslav O. and Hanke, Michael},\n title = {Open is not enough. Let{'}...mber = {00022},\n doi = {10.3389/fninf.2012.00022},\n issn = {1662-5196},\n localfile = {HH12.pdf},\n}", key='XXX0') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s > import citeproc as cp 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:299: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 134s from .frontend import CitationStylesStyle, CitationStylesBibliography 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s 134s import os 134s 134s from warnings import warn 134s 134s > from lxml import etree 134s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 134s 134s During handling of the above exception, another exception occurred: 134s 134s def test_text_output_dump_formatting() -> None: 134s due = DueCreditCollector() 134s 134s # XXX: atm just to see if it spits out stuff 134s @due.dcite( 134s BibTeX(_sample_bibtex), 134s description="solution to life", 134s path="mymodule", 134s version="0.0.16", 134s ) 134s def mymodule(arg1: Any, kwarg2: Any = "blah") -> Any: 134s """docstring""" 134s assert arg1 == "magical" 134s assert kwarg2 == 1 134s 134s @due.dcite( 134s BibTeX(_sample_bibtex2), 134s description="solution to life", 134s path="mymodule:myfunction", 134s ) 134s def myfunction(arg42): 134s pass 134s 134s myfunction("argh") 134s return "load" 134s 134s # check we don't have anything output 134s strio = StringIO() 134s TextOutput(strio, due).dump(tags=["*"]) 134s value = strio.getvalue() 134s assert "0 modules cited" in value, f"value was {value}" 134s assert "0 functions cited" in value, f"value was {value}" 134s 134s # now we call it -- check it prints stuff 134s strio = StringIO() 134s mymodule("magical", kwarg2=1) 134s > TextOutput(strio, due).dump(tags=["*"]) 134s 134s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:381: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/duecredit/io.py:247: in dump 134s self.fd.write(get_text_rendering(cit.entry, style=self.style)) 134s /usr/lib/python3/dist-packages/duecredit/io.py:256: in get_text_rendering 134s return format_bibtex(entry, style=style) 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s bibtex_entry = BibTeX("@ARTICLE{XXX0,\n author = {Halchenko, Yaroslav O. and Hanke, Michael},\n title = {Open is not enough. Let{'}...mber = {00022},\n doi = {10.3389/fninf.2012.00022},\n issn = {1662-5196},\n localfile = {HH12.pdf},\n}", key='XXX0') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s import citeproc as cp 134s from citeproc.source.bibtex import BibTeX as cpBibTeX 134s except ImportError as e: 134s > raise RuntimeError( 134s "For formatted output we need citeproc and all of its dependencies " 134s "(such as lxml) but there is a problem while importing citeproc: %s" 134s % str(e) 134s ) 134s E RuntimeError: For formatted output we need citeproc and all of its dependencies (such as lxml) but there is a problem while importing citeproc: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 134s ________________________ test_format_bibtex_zenodo_doi _________________________ 134s 134s bibtex_entry = BibTeX('@data{0b1284ba-5ce5-4367-84f3-c44b4962ad90,\n doi = {10.5281/zenodo.50186},\n url = {https://doi.org/10....ipype: Release candidate 1 for version 0.12.0},\n year = {2016}\n }', key='0b1284ba-5ce5-4367-84f3-c44b4962ad90') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s > import citeproc as cp 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:299: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 134s from .frontend import CitationStylesStyle, CitationStylesBibliography 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s 134s import os 134s 134s from warnings import warn 134s 134s > from lxml import etree 134s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 134s 134s During handling of the above exception, another exception occurred: 134s 134s def test_format_bibtex_zenodo_doi() -> None: 134s """ 134s test that we can correctly parse bibtex entries obtained from a zenodo doi 134s """ 134s # this was fetched on 2016-05-10 134s bibtex_zenodo = """ 134s @data{0b1284ba-5ce5-4367-84f3-c44b4962ad90, 134s doi = {10.5281/zenodo.50186}, 134s url = {https://doi.org/10.5281/zenodo.50186}, 134s author = {Satrajit Ghosh; Chris Filo Gorgolewski; Oscar Esteban; 134s Erik Ziegler; David Ellis; cindeem; Michael Waskom; Dav Clark; Michael; 134s Fred Loney; Alexandre M. S.; Michael Notter; Hans Johnson; 134s Anisha Keshavan; Yaroslav Halchenko; Carlo Hamalainen; Blake Dewey; 134s Ben Cipollini; Daniel Clark; Julia Huntenburg; Drew Erickson; 134s Michael Hanke; moloney; Jason W; Demian Wassermann; cdla; 134s Nolan Nichols; Chris Markiewicz; Jarrod Millman; Arman Eshaghi; }, 134s publisher = {Zenodo}, 134s title = {nipype: Release candidate 1 for version 0.12.0}, 134s year = {2016} 134s } 134s """ 134s > assert ( 134s format_bibtex(BibTeX(bibtex_zenodo)) 134s == """Ghosh, S. et al., 2016. nipype: Release candidate 1 for version 0.12.0.""" 134s ) 134s 134s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:612: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s bibtex_entry = BibTeX('@data{0b1284ba-5ce5-4367-84f3-c44b4962ad90,\n doi = {10.5281/zenodo.50186},\n url = {https://doi.org/10....ipype: Release candidate 1 for version 0.12.0},\n year = {2016}\n }', key='0b1284ba-5ce5-4367-84f3-c44b4962ad90') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s import citeproc as cp 134s from citeproc.source.bibtex import BibTeX as cpBibTeX 134s except ImportError as e: 134s > raise RuntimeError( 134s "For formatted output we need citeproc and all of its dependencies " 134s "(such as lxml) but there is a problem while importing citeproc: %s" 134s % str(e) 134s ) 134s E RuntimeError: For formatted output we need citeproc and all of its dependencies (such as lxml) but there is a problem while importing citeproc: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 134s ____________________ test_format_bibtex_with_utf_characters ____________________ 134s 134s bibtex_entry = BibTeX('@misc{https://doi.org/10.5281/zenodo.60847,\n doi = {10.5281/zenodo.60847},\n url = {http://zenodo.org/recor...\n title = {nibabel 2.0.1},\n publisher = {Zenodo},\n year = {2015}\n}', key='https://doi.org/10.5281/zenodo.60847') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s > import citeproc as cp 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:299: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 134s from .frontend import CitationStylesStyle, CitationStylesBibliography 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s 134s import os 134s 134s from warnings import warn 134s 134s > from lxml import etree 134s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 134s 134s During handling of the above exception, another exception occurred: 134s 134s def test_format_bibtex_with_utf_characters() -> None: 134s """ 134s test that we can correctly parse bibtex entry if it contains utf-8 characters 134s """ 134s # this was fetched on 2017-08-16 134s # replaced Brett with Brótt to have utf-8 characters in first author's name as well 134s bibtex_utf8 = ( 134s "@misc{https://doi.org/10.5281/zenodo.60847,\n doi = {10.5281/zenodo.60847},\n url = {" 134s "http://zenodo.org/record/60847},\n author = {Brótt, Matthew and Hanke, Michael and Cipollini, " 134s "Ben and {Marc-Alexandre Côté} and Markiewicz, Chris and Gerhard, Stephan and Larson, " 134s "Eric and Lee, Gregory R. and Halchenko, Yaroslav and Kastman, Erik and {Cindeem} and Morency, " 134s "Félix C. and {Moloney} and Millman, Jarrod and Rokem, Ariel and {Jaeilepp} and Gramfort, " 134s "Alexandre and Bosch, Jasper J.F. Van Den and {Krish Subramaniam} and Nichols, Nolan and {Embaker} " 134s "and {Bpinsard} and {Chaselgrove} and Oosterhof, Nikolaas N. and St-Jean, Samuel and {Bago " 134s "Amirbekian} and Nimmo-Smith, Ian and {Satrajit Ghosh}},\n keywords = {},\n title = {nibabel " 134s "2.0.1},\n publisher = {Zenodo},\n year = {2015}\n} " 134s ) 134s > assert ( 134s format_bibtex(BibTeX(bibtex_utf8)) == "Brótt, M. et al., 2015. nibabel 2.0.1." 134s ) 134s 134s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:635: 134s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 134s 134s bibtex_entry = BibTeX('@misc{https://doi.org/10.5281/zenodo.60847,\n doi = {10.5281/zenodo.60847},\n url = {http://zenodo.org/recor...\n title = {nibabel 2.0.1},\n publisher = {Zenodo},\n year = {2015}\n}', key='https://doi.org/10.5281/zenodo.60847') 134s style = 'harvard1' 134s 134s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 134s try: 134s import citeproc as cp 134s from citeproc.source.bibtex import BibTeX as cpBibTeX 134s except ImportError as e: 134s > raise RuntimeError( 134s "For formatted output we need citeproc and all of its dependencies " 134s "(such as lxml) but there is a problem while importing citeproc: %s" 134s % str(e) 134s ) 134s E RuntimeError: For formatted output we need citeproc and all of its dependencies (such as lxml) but there is a problem while importing citeproc: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 134s 134s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 134s =============================== warnings summary =============================== 134s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 134s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-ok3v5de0' 134s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 134s 134s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:429 134s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:429: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/lastfailed: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-pseb7yc7' 134s config.cache.set("cache/lastfailed", self.lastfailed) 134s 134s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 134s /usr/lib/python3/dist-packages/_pytest/stepwise.py:51: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-oowwrzjy' 134s session.config.cache.set(STEPWISE_CACHE_DIR, []) 134s 134s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 134s =========================== short test summary info ============================ 134s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_text_output 134s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_text_output_dump_formatting 134s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_format_bibtex_zenodo_doi 134s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_format_bibtex_with_utf_characters 134s ====== 4 failed, 53 passed, 18 skipped, 1 deselected, 3 warnings in 0.55s ====== 134s autopkgtest [11:04:42]: test command1: -----------------------] 135s autopkgtest [11:04:43]: test command1: - - - - - - - - - - results - - - - - - - - - - 135s command1 FAIL non-zero exit status 1 135s autopkgtest [11:04:43]: test command2: preparing testbed 137s Reading package lists... 137s Building dependency tree... 137s Reading state information... 137s Starting pkgProblemResolver with broken count: 0 137s Starting 2 pkgProblemResolver with broken count: 0 137s Done 138s The following NEW packages will be installed: 138s autopkgtest-satdep 138s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 138s Need to get 0 B/724 B of archives. 138s After this operation, 0 B of additional disk space will be used. 138s Get:1 /tmp/autopkgtest.gTCLKj/2-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [724 B] 138s Selecting previously unselected package autopkgtest-satdep. 138s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56720 files and directories currently installed.) 138s Preparing to unpack .../2-autopkgtest-satdep.deb ... 138s Unpacking autopkgtest-satdep (0) ... 138s Setting up autopkgtest-satdep (0) ... 140s (Reading database ... 56720 files and directories currently installed.) 140s Removing autopkgtest-satdep (0) ... 140s autopkgtest [11:04:48]: test command2: for py in `py3versions -s`; do $py -m pytest -k test_import_doi /usr/lib/python3/dist-packages/duecredit/tests; done 140s autopkgtest [11:04:48]: test command2: [----------------------- 141s ============================= test session starts ============================== 141s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 141s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 141s plugins: typeguard-4.4.1 141s collected 76 items / 75 deselected / 1 selected 141s 144s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py . [100%] 144s 144s =============================== warnings summary =============================== 144s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 144s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-r5yeu748' 144s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 144s 144s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 144s /usr/lib/python3/dist-packages/_pytest/stepwise.py:51: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-mgylhz4g' 144s session.config.cache.set(STEPWISE_CACHE_DIR, []) 144s 144s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 144s ================= 1 passed, 75 deselected, 2 warnings in 3.62s ================= 145s ============================= test session starts ============================== 145s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 145s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 145s plugins: typeguard-4.4.1 145s collected 76 items / 75 deselected / 1 selected 145s 146s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py . [100%] 146s 146s =============================== warnings summary =============================== 146s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 146s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-byh4eehh' 146s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 146s 146s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 146s /usr/lib/python3/dist-packages/_pytest/stepwise.py:51: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/duecredit/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/duecredit/tests/pytest-cache-files-sqsyjuol' 146s session.config.cache.set(STEPWISE_CACHE_DIR, []) 146s 146s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 146s ================= 1 passed, 75 deselected, 2 warnings in 1.13s ================= 146s autopkgtest [11:04:54]: test command2: -----------------------] 147s autopkgtest [11:04:55]: test command2: - - - - - - - - - - results - - - - - - - - - - 147s command2 PASS 147s autopkgtest [11:04:55]: @@@@@@@@@@@@@@@@@@@@ summary 147s command1 FAIL non-zero exit status 1 147s command2 PASS 153s nova [W] Using flock in prodstack6-s390x 153s Creating nova instance adt-plucky-s390x-duecredit-20241113-110227-juju-7f2275-prod-proposed-migration-environment-20-4a228051-7b68-4956-a3f3-bfc12c7dab2c from image adt/ubuntu-plucky-s390x-server-20241113.img (UUID e740277e-1f72-40ae-bfbe-46030537c71c)...