0s autopkgtest [12:08:11]: starting date and time: 2024-11-13 12:08:11+0000 0s autopkgtest [12:08:11]: git checkout: 0acbae0a WIP show VirtSubproc stderr in real-time 0s autopkgtest [12:08:11]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.9dfb62_9/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-4.secgroup --name adt-plucky-ppc64el-duecredit-20241113-115504-juju-7f2275-prod-proposed-migration-environment-2-f0dbdef2-b83d-4260-b78f-2247b1a5e41a --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-ppc64el -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/ 106s autopkgtest [12:09:57]: testbed dpkg architecture: ppc64el 106s autopkgtest [12:09:57]: testbed apt version: 2.9.8 106s autopkgtest [12:09:57]: @@@@@@@@@@@@@@@@@@@@ test bed setup 107s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 107s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 107s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 107s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 108s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 108s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [86.2 kB] 108s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [588 kB] 108s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [19.6 kB] 108s Fetched 1715 kB in 1s (1435 kB/s) 108s Reading package lists... 110s 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 libpython3-stdlib python3 python3-gdbm python3-minimal 111s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 111s Need to get 102 kB of archives. 111s After this operation, 141 kB of additional disk space will be used. 111s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-minimal ppc64el 3.12.7-1 [27.4 kB] 111s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3 ppc64el 3.12.7-1 [24.0 kB] 111s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el libpython3-stdlib ppc64el 3.12.7-1 [10.0 kB] 111s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-gdbm ppc64el 3.13.0-2 [31.5 kB] 111s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-gdbm ppc64el 3.12.7-1 [8640 B] 112s Fetched 102 kB in 0s (274 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 ... 73767 files and directories currently installed.) 112s Preparing to unpack .../python3-minimal_3.12.7-1_ppc64el.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 ... 73767 files and directories currently installed.) 112s Preparing to unpack .../python3_3.12.7-1_ppc64el.deb ... 112s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 112s Preparing to unpack .../libpython3-stdlib_3.12.7-1_ppc64el.deb ... 112s Unpacking libpython3-stdlib:ppc64el (3.12.7-1) over (3.12.6-0ubuntu1) ... 112s Selecting previously unselected package python3.13-gdbm. 112s Preparing to unpack .../python3.13-gdbm_3.13.0-2_ppc64el.deb ... 112s Unpacking python3.13-gdbm (3.13.0-2) ... 112s Preparing to unpack .../python3-gdbm_3.12.7-1_ppc64el.deb ... 112s Unpacking python3-gdbm:ppc64el (3.12.7-1) over (3.12.6-1ubuntu1) ... 112s Setting up python3.13-gdbm (3.13.0-2) ... 112s Setting up libpython3-stdlib:ppc64el (3.12.7-1) ... 112s Setting up python3 (3.12.7-1) ... 113s Setting up python3-gdbm:ppc64el (3.12.7-1) ... 113s Processing triggers for man-db (2.12.1-3) ... 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 115s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 115s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 116s Reading package lists... 116s Reading package lists... 116s Building dependency tree... 116s Reading state information... 116s Calculating upgrade... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s Reading package lists... 117s Building dependency tree... 117s Reading state information... 117s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 120s autopkgtest [12:10:11]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 120s autopkgtest [12:10:11]: @@@@@@@@@@@@@@@@@@@@ apt-source duecredit 122s Get:1 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (dsc) [2238 B] 122s Get:2 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (tar) [84.3 kB] 122s Get:3 http://ftpmaster.internal/ubuntu plucky/universe duecredit 0.10.2-2 (diff) [4296 B] 122s gpgv: Signature made Sun Sep 22 22:39:02 2024 UTC 122s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 122s gpgv: issuer "tchet@debian.org" 122s gpgv: Can't check signature: No public key 122s dpkg-source: warning: cannot verify inline signature for ./duecredit_0.10.2-2.dsc: no acceptable signature found 122s autopkgtest [12:10:13]: testing package duecredit version 0.10.2-2 122s autopkgtest [12:10:13]: build not needed 123s autopkgtest [12:10:14]: test command1: preparing testbed 124s Reading package lists... 124s Building dependency tree... 124s Reading state information... 124s Starting pkgProblemResolver with broken count: 0 125s Starting 2 pkgProblemResolver with broken count: 0 125s Done 125s The following additional packages will be installed: 125s libpython3.13-minimal libpython3.13-stdlib libxslt1.1 python3-all 125s python3-citeproc python3-duecredit python3-iniconfig python3-looseversion 125s python3-lxml python3-packaging python3-pluggy python3-pytest python3.13 125s python3.13-minimal 125s Suggested packages: 125s python-lxml-doc python3.13-venv python3.13-doc binfmt-support 125s Recommended packages: 125s python3-bs4 python3-cssselect python3-html5lib 125s The following NEW packages will be installed: 125s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib libxslt1.1 125s python3-all python3-citeproc python3-duecredit python3-iniconfig 125s python3-looseversion python3-lxml python3-packaging python3-pluggy 125s python3-pytest python3.13 python3.13-minimal 125s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 125s Need to get 8088 kB/8089 kB of archives. 125s After this operation, 35.3 MB of additional disk space will be used. 125s Get:1 /tmp/autopkgtest.va0e9D/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [720 B] 125s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-minimal ppc64el 3.13.0-2 [881 kB] 126s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13-minimal ppc64el 3.13.0-2 [2302 kB] 126s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libpython3.13-stdlib ppc64el 3.13.0-2 [2148 kB] 126s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el libxslt1.1 ppc64el 1.1.39-0exp1ubuntu1 [191 kB] 126s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.13 ppc64el 3.13.0-2 [719 kB] 126s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-all ppc64el 3.12.7-1 [888 B] 126s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-lxml ppc64el 5.3.0-1 [1354 kB] 126s Get:9 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-citeproc all 0.6.0-3 [98.4 kB] 126s Get:10 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-looseversion all 1.3.0-3 [8354 B] 126s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.1-1 [41.4 kB] 126s Get:12 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-duecredit all 0.10.2-2 [66.0 kB] 126s Get:13 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 126s Get:14 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 126s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.3-1 [251 kB] 126s Fetched 8088 kB in 1s (9254 kB/s) 126s Selecting previously unselected package libpython3.13-minimal:ppc64el. 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 ... 73774 files and directories currently installed.) 126s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_ppc64el.deb ... 126s Unpacking libpython3.13-minimal:ppc64el (3.13.0-2) ... 126s Selecting previously unselected package python3.13-minimal. 126s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_ppc64el.deb ... 126s Unpacking python3.13-minimal (3.13.0-2) ... 126s Selecting previously unselected package libpython3.13-stdlib:ppc64el. 126s Preparing to unpack .../02-libpython3.13-stdlib_3.13.0-2_ppc64el.deb ... 126s Unpacking libpython3.13-stdlib:ppc64el (3.13.0-2) ... 126s Selecting previously unselected package libxslt1.1:ppc64el. 126s Preparing to unpack .../03-libxslt1.1_1.1.39-0exp1ubuntu1_ppc64el.deb ... 126s Unpacking libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 126s Selecting previously unselected package python3.13. 126s Preparing to unpack .../04-python3.13_3.13.0-2_ppc64el.deb ... 126s Unpacking python3.13 (3.13.0-2) ... 127s Selecting previously unselected package python3-all. 127s Preparing to unpack .../05-python3-all_3.12.7-1_ppc64el.deb ... 127s Unpacking python3-all (3.12.7-1) ... 127s Selecting previously unselected package python3-lxml:ppc64el. 127s Preparing to unpack .../06-python3-lxml_5.3.0-1_ppc64el.deb ... 127s Unpacking python3-lxml:ppc64el (5.3.0-1) ... 127s Selecting previously unselected package python3-citeproc. 127s Preparing to unpack .../07-python3-citeproc_0.6.0-3_all.deb ... 127s Unpacking python3-citeproc (0.6.0-3) ... 127s Selecting previously unselected package python3-looseversion. 127s Preparing to unpack .../08-python3-looseversion_1.3.0-3_all.deb ... 127s Unpacking python3-looseversion (1.3.0-3) ... 127s Selecting previously unselected package python3-packaging. 127s Preparing to unpack .../09-python3-packaging_24.1-1_all.deb ... 127s Unpacking python3-packaging (24.1-1) ... 127s Selecting previously unselected package python3-duecredit. 127s Preparing to unpack .../10-python3-duecredit_0.10.2-2_all.deb ... 127s Unpacking python3-duecredit (0.10.2-2) ... 127s Selecting previously unselected package python3-iniconfig. 127s Preparing to unpack .../11-python3-iniconfig_1.1.1-2_all.deb ... 127s Unpacking python3-iniconfig (1.1.1-2) ... 127s Selecting previously unselected package python3-pluggy. 127s Preparing to unpack .../12-python3-pluggy_1.5.0-1_all.deb ... 127s Unpacking python3-pluggy (1.5.0-1) ... 127s Selecting previously unselected package python3-pytest. 127s Preparing to unpack .../13-python3-pytest_8.3.3-1_all.deb ... 127s Unpacking python3-pytest (8.3.3-1) ... 127s Selecting previously unselected package autopkgtest-satdep. 127s Preparing to unpack .../14-1-autopkgtest-satdep.deb ... 127s Unpacking autopkgtest-satdep (0) ... 127s Setting up python3-iniconfig (1.1.1-2) ... 127s Setting up libpython3.13-minimal:ppc64el (3.13.0-2) ... 127s Setting up python3-packaging (24.1-1) ... 127s Setting up python3-pluggy (1.5.0-1) ... 128s Setting up python3-looseversion (1.3.0-3) ... 128s Setting up libxslt1.1:ppc64el (1.1.39-0exp1ubuntu1) ... 128s Setting up python3.13-minimal (3.13.0-2) ... 129s Setting up libpython3.13-stdlib:ppc64el (3.13.0-2) ... 129s Setting up python3.13 (3.13.0-2) ... 130s Setting up python3-pytest (8.3.3-1) ... 131s Setting up python3-all (3.12.7-1) ... 131s Setting up python3-lxml:ppc64el (5.3.0-1) ... 131s Setting up python3-citeproc (0.6.0-3) ... 131s Setting up python3-duecredit (0.10.2-2) ... 132s Setting up autopkgtest-satdep (0) ... 132s Processing triggers for systemd (256.5-2ubuntu4) ... 132s Processing triggers for man-db (2.12.1-3) ... 132s Processing triggers for libc-bin (2.40-1ubuntu3) ... 135s (Reading database ... 74977 files and directories currently installed.) 135s Removing autopkgtest-satdep (0) ... 135s autopkgtest [12:10:26]: test command1: for py in `py3versions -s`; do $py -m pytest -k "not test_import_doi" /usr/lib/python3/dist-packages/duecredit/tests; done 135s autopkgtest [12:10:26]: test command1: [----------------------- 136s ============================= test session starts ============================== 136s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 136s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 136s plugins: typeguard-4.4.1 136s collected 76 items / 1 deselected / 75 selected 136s 136s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test__main__.py . [ 1%] 136s .. [ 4%] 136s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_api.py .. [ 6%] 137s .ssssssss [ 18%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_cmdline.py . [ 20%] 137s .... [ 25%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_collector.py . [ 26%] 137s ........ [ 37%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_dueswitch.py . [ 38%] 137s . [ 40%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_entries.py . [ 41%] 137s . [ 42%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_injections.py . [ 44%] 137s .....ss........... [ 68%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py ... [ 72%] 137s .FF....FF. [ 85%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_utils.py . [ 86%] 137s [ 86%] 137s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_versions.py . [ 88%] 137s .ssssssss [100%] 137s 137s =================================== FAILURES =================================== 137s _______________________________ test_text_output _______________________________ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s > import citeproc as cp 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:299: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 137s from .frontend import CitationStylesStyle, CitationStylesBibliography 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 137s import os 137s 137s from warnings import warn 137s 137s > from lxml import etree 137s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 137s 137s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 137s 137s During handling of the above exception, another exception occurred: 137s 137s def test_text_output() -> None: 137s entry = BibTeX(_sample_bibtex) 137s entry2 = BibTeX(_sample_bibtex2) 137s 137s # in this case, since we're not citing any module or method, we shouldn't 137s # output anything 137s collector = DueCreditCollector() 137s collector.cite(entry, path="package") 137s 137s strio = StringIO() 137s TextOutput(strio, collector).dump(tags=["*"]) 137s value = strio.getvalue() 137s assert "0 packages cited" in value, "value was %s" % value 137s assert "0 modules cited" in value, "value was %s" % value 137s assert "0 functions cited" in value, "value was %s" % value 137s 137s # but it should be cited if cite_module=True 137s collector = DueCreditCollector() 137s collector.cite(entry, path="package", cite_module=True) 137s 137s strio = StringIO() 137s > TextOutput(strio, collector).dump(tags=["*"]) 137s 137s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:306: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/duecredit/io.py:247: in dump 137s self.fd.write(get_text_rendering(cit.entry, style=self.style)) 137s /usr/lib/python3/dist-packages/duecredit/io.py:256: in get_text_rendering 137s return format_bibtex(entry, style=style) 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s import citeproc as cp 137s from citeproc.source.bibtex import BibTeX as cpBibTeX 137s except ImportError as e: 137s > raise RuntimeError( 137s "For formatted output we need citeproc and all of its dependencies " 137s "(such as lxml) but there is a problem while importing citeproc: %s" 137s % str(e) 137s ) 137s 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) 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 137s _______________________ test_text_output_dump_formatting _______________________ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s > import citeproc as cp 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:299: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 137s from .frontend import CitationStylesStyle, CitationStylesBibliography 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 137s import os 137s 137s from warnings import warn 137s 137s > from lxml import etree 137s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 137s 137s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 137s 137s During handling of the above exception, another exception occurred: 137s 137s def test_text_output_dump_formatting() -> None: 137s due = DueCreditCollector() 137s 137s # XXX: atm just to see if it spits out stuff 137s @due.dcite( 137s BibTeX(_sample_bibtex), 137s description="solution to life", 137s path="mymodule", 137s version="0.0.16", 137s ) 137s def mymodule(arg1: Any, kwarg2: Any = "blah") -> Any: 137s """docstring""" 137s assert arg1 == "magical" 137s assert kwarg2 == 1 137s 137s @due.dcite( 137s BibTeX(_sample_bibtex2), 137s description="solution to life", 137s path="mymodule:myfunction", 137s ) 137s def myfunction(arg42): 137s pass 137s 137s myfunction("argh") 137s return "load" 137s 137s # check we don't have anything output 137s strio = StringIO() 137s TextOutput(strio, due).dump(tags=["*"]) 137s value = strio.getvalue() 137s assert "0 modules cited" in value, f"value was {value}" 137s assert "0 functions cited" in value, f"value was {value}" 137s 137s # now we call it -- check it prints stuff 137s strio = StringIO() 137s mymodule("magical", kwarg2=1) 137s > TextOutput(strio, due).dump(tags=["*"]) 137s 137s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:381: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/duecredit/io.py:247: in dump 137s self.fd.write(get_text_rendering(cit.entry, style=self.style)) 137s /usr/lib/python3/dist-packages/duecredit/io.py:256: in get_text_rendering 137s return format_bibtex(entry, style=style) 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s import citeproc as cp 137s from citeproc.source.bibtex import BibTeX as cpBibTeX 137s except ImportError as e: 137s > raise RuntimeError( 137s "For formatted output we need citeproc and all of its dependencies " 137s "(such as lxml) but there is a problem while importing citeproc: %s" 137s % str(e) 137s ) 137s 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) 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 137s ________________________ test_format_bibtex_zenodo_doi _________________________ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s > import citeproc as cp 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:299: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 137s from .frontend import CitationStylesStyle, CitationStylesBibliography 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 137s import os 137s 137s from warnings import warn 137s 137s > from lxml import etree 137s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 137s 137s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 137s 137s During handling of the above exception, another exception occurred: 137s 137s def test_format_bibtex_zenodo_doi() -> None: 137s """ 137s test that we can correctly parse bibtex entries obtained from a zenodo doi 137s """ 137s # this was fetched on 2016-05-10 137s bibtex_zenodo = """ 137s @data{0b1284ba-5ce5-4367-84f3-c44b4962ad90, 137s doi = {10.5281/zenodo.50186}, 137s url = {https://doi.org/10.5281/zenodo.50186}, 137s author = {Satrajit Ghosh; Chris Filo Gorgolewski; Oscar Esteban; 137s Erik Ziegler; David Ellis; cindeem; Michael Waskom; Dav Clark; Michael; 137s Fred Loney; Alexandre M. S.; Michael Notter; Hans Johnson; 137s Anisha Keshavan; Yaroslav Halchenko; Carlo Hamalainen; Blake Dewey; 137s Ben Cipollini; Daniel Clark; Julia Huntenburg; Drew Erickson; 137s Michael Hanke; moloney; Jason W; Demian Wassermann; cdla; 137s Nolan Nichols; Chris Markiewicz; Jarrod Millman; Arman Eshaghi; }, 137s publisher = {Zenodo}, 137s title = {nipype: Release candidate 1 for version 0.12.0}, 137s year = {2016} 137s } 137s """ 137s > assert ( 137s format_bibtex(BibTeX(bibtex_zenodo)) 137s == """Ghosh, S. et al., 2016. nipype: Release candidate 1 for version 0.12.0.""" 137s ) 137s 137s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:612: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s import citeproc as cp 137s from citeproc.source.bibtex import BibTeX as cpBibTeX 137s except ImportError as e: 137s > raise RuntimeError( 137s "For formatted output we need citeproc and all of its dependencies " 137s "(such as lxml) but there is a problem while importing citeproc: %s" 137s % str(e) 137s ) 137s 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) 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 137s ____________________ test_format_bibtex_with_utf_characters ____________________ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s > import citeproc as cp 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:299: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s /usr/lib/python3/dist-packages/citeproc/__init__.py:45: in 137s from .frontend import CitationStylesStyle, CitationStylesBibliography 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 137s import os 137s 137s from warnings import warn 137s 137s > from lxml import etree 137s E ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py) 137s 137s /usr/lib/python3/dist-packages/citeproc/frontend.py:6: ImportError 137s 137s During handling of the above exception, another exception occurred: 137s 137s def test_format_bibtex_with_utf_characters() -> None: 137s """ 137s test that we can correctly parse bibtex entry if it contains utf-8 characters 137s """ 137s # this was fetched on 2017-08-16 137s # replaced Brett with Brótt to have utf-8 characters in first author's name as well 137s bibtex_utf8 = ( 137s "@misc{https://doi.org/10.5281/zenodo.60847,\n doi = {10.5281/zenodo.60847},\n url = {" 137s "http://zenodo.org/record/60847},\n author = {Brótt, Matthew and Hanke, Michael and Cipollini, " 137s "Ben and {Marc-Alexandre Côté} and Markiewicz, Chris and Gerhard, Stephan and Larson, " 137s "Eric and Lee, Gregory R. and Halchenko, Yaroslav and Kastman, Erik and {Cindeem} and Morency, " 137s "Félix C. and {Moloney} and Millman, Jarrod and Rokem, Ariel and {Jaeilepp} and Gramfort, " 137s "Alexandre and Bosch, Jasper J.F. Van Den and {Krish Subramaniam} and Nichols, Nolan and {Embaker} " 137s "and {Bpinsard} and {Chaselgrove} and Oosterhof, Nikolaas N. and St-Jean, Samuel and {Bago " 137s "Amirbekian} and Nimmo-Smith, Ian and {Satrajit Ghosh}},\n keywords = {},\n title = {nibabel " 137s "2.0.1},\n publisher = {Zenodo},\n year = {2015}\n} " 137s ) 137s > assert ( 137s format_bibtex(BibTeX(bibtex_utf8)) == "Brótt, M. et al., 2015. nibabel 2.0.1." 137s ) 137s 137s /usr/lib/python3/dist-packages/duecredit/tests/test_io.py:635: 137s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 137s 137s 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') 137s style = 'harvard1' 137s 137s def format_bibtex(bibtex_entry: BibTeX, style: str = "harvard1") -> str: 137s try: 137s import citeproc as cp 137s from citeproc.source.bibtex import BibTeX as cpBibTeX 137s except ImportError as e: 137s > raise RuntimeError( 137s "For formatted output we need citeproc and all of its dependencies " 137s "(such as lxml) but there is a problem while importing citeproc: %s" 137s % str(e) 137s ) 137s 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) 137s 137s /usr/lib/python3/dist-packages/duecredit/io.py:302: RuntimeError 137s =============================== warnings summary =============================== 137s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 137s /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-3ke7yjdq' 137s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 137s 137s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:429 137s /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-eqg17uh0' 137s config.cache.set("cache/lastfailed", self.lastfailed) 137s 137s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 137s /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-bl3pcpa1' 137s session.config.cache.set(STEPWISE_CACHE_DIR, []) 137s 137s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 137s =========================== short test summary info ============================ 137s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_text_output 137s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_text_output_dump_formatting 137s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_format_bibtex_zenodo_doi 137s FAILED ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py::test_format_bibtex_with_utf_characters 137s ====== 4 failed, 53 passed, 18 skipped, 1 deselected, 3 warnings in 0.87s ====== 137s autopkgtest [12:10:28]: test command1: -----------------------] 138s autopkgtest [12:10:29]: test command1: - - - - - - - - - - results - - - - - - - - - - 138s command1 FAIL non-zero exit status 1 138s autopkgtest [12:10:29]: test command2: preparing testbed 139s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Starting pkgProblemResolver with broken count: 0 140s Starting 2 pkgProblemResolver with broken count: 0 140s Done 140s The following NEW packages will be installed: 140s autopkgtest-satdep 140s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 140s Need to get 0 B/720 B of archives. 140s After this operation, 0 B of additional disk space will be used. 140s Get:1 /tmp/autopkgtest.va0e9D/2-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [720 B] 141s Selecting previously unselected package autopkgtest-satdep. 141s (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 ... 74977 files and directories currently installed.) 141s Preparing to unpack .../2-autopkgtest-satdep.deb ... 141s Unpacking autopkgtest-satdep (0) ... 141s Setting up autopkgtest-satdep (0) ... 143s (Reading database ... 74977 files and directories currently installed.) 143s Removing autopkgtest-satdep (0) ... 144s autopkgtest [12:10:35]: test command2: for py in `py3versions -s`; do $py -m pytest -k test_import_doi /usr/lib/python3/dist-packages/duecredit/tests; done 144s autopkgtest [12:10:35]: test command2: [----------------------- 144s ============================= test session starts ============================== 144s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 144s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 144s plugins: typeguard-4.4.1 144s collected 76 items / 75 deselected / 1 selected 144s 148s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py . [100%] 148s 148s =============================== warnings summary =============================== 148s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 148s /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-40c70c2y' 148s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 148s 148s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 148s /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-wboml8m_' 148s session.config.cache.set(STEPWISE_CACHE_DIR, []) 148s 148s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 148s ================= 1 passed, 75 deselected, 2 warnings in 3.78s ================= 149s ============================= test session starts ============================== 149s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 149s rootdir: /usr/lib/python3/dist-packages/duecredit/tests 149s plugins: typeguard-4.4.1 149s collected 76 items / 75 deselected / 1 selected 149s 150s ../../../../usr/lib/python3/dist-packages/duecredit/tests/test_io.py . [100%] 150s 150s =============================== warnings summary =============================== 150s ../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:475 150s /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-ygnbn6w6' 150s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 150s 150s ../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:51 150s /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-y_14z2qg' 150s session.config.cache.set(STEPWISE_CACHE_DIR, []) 150s 150s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 150s ================= 1 passed, 75 deselected, 2 warnings in 1.19s ================= 150s autopkgtest [12:10:41]: test command2: -----------------------] 150s autopkgtest [12:10:41]: test command2: - - - - - - - - - - results - - - - - - - - - - 150s command2 PASS 151s autopkgtest [12:10:42]: @@@@@@@@@@@@@@@@@@@@ summary 151s command1 FAIL non-zero exit status 1 151s command2 PASS 156s virt: nova [W] Using flock in prodstack6-ppc64el 156s virt: Creating nova instance adt-plucky-ppc64el-duecredit-20241113-115504-juju-7f2275-prod-proposed-migration-environment-2-f0dbdef2-b83d-4260-b78f-2247b1a5e41a from image adt/ubuntu-plucky-ppc64el-server-20241113.img (UUID 0c5715b6-5cca-4485-b8bf-b85dfd917a5f)...