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