Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python Subject: autopkgtest-pkg-python fails if package name is python-pyMODULENAME (Was: Bug#945768: python-pypubsub: autopkgtest failure: No module named 'pypubsub') Date: Thu, 28 Nov 2019 16:10:02 +0100 Message-ID: X-Original-To: Debian Python X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Nov 28 15:04:15 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.899 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, FUZZY_CPILL=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailing-List: archive/latest/17654 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20191128150402.GK2400@an3as.eu Approved: robomod@news.nic.it Lines: 53 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 28 Nov 2019 16:04:02 +0100 X-Original-Message-ID: <20191128150402.GK2400@an3as.eu> Xref: csiph.com linux.debian.maint.python:12053 On Thu, Nov 28, 2019 at 12:46:34PM +0100, Paul Gevers wrote: > Source: python-pypubsub > Version: 4.0.3-2 > X-Debbugs-CC: debian-ci@lists.debian.org > User: debian-ci@lists.debian.org > Usertags: regression > > ... > > [1] https://qa.debian.org/excuses.php?package=python-pypubsub > > https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-pypubsub/3403470/log.gz > > autopkgtest [15:15:47]: test autodep8-python3: set -e ; for py in > $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing > with $py:" ; $py -c "import pypubsub; print(pypubsub)" ; done > autopkgtest [15:15:47]: test autodep8-python3: [----------------------- > Testing with python3.7: > Traceback (most recent call last): > File "", line 1, in > ModuleNotFoundError: No module named 'pypubsub' > autopkgtest [15:15:47]: test autodep8-python3: -----------------------] The test is correct since the correct module name is pubsub (rather than pypubsub). It seems that's a usual pattern since if I check python3-pyvcf[1] it ends up in: autopkgtest [08:47:45]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import pyvcf; print(pyvcf)" ; done autopkgtest [08:47:45]: test autodep8-python3: [----------------------- Testing with python3.8: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pyvcf' autopkgtest [08:47:46]: test autodep8-python3: -----------------------] autopkgtest [08:47:46]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - autodep8-python3 FAIL non-zero exit status 1 Is there any trick to enable autopkgtest-pkg-python detecting the correct module name? Kind regards Andreas. [1] https://ci.debian.net/data/autopkgtest/unstable/amd64/p/python-pyvcf/3462810/log.gz -- http://fam-tille.de