Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11873

Bug#937698: Help needed for issue in test suite for Python3 (Was: Bug#937698: python-dendropy: Python2 removal in sid/bullseye)

Path csiph.com!news.mixmin.net!news.albasani.net!tahina.priv.at!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#937698: Help needed for issue in test suite for Python3 (Was: Bug#937698: python-dendropy: Python2 removal in sid/bullseye)
Date Tue, 08 Oct 2019 09:40:02 +0200
Message-ID <yOS6u-6k1-3@gated-at.bofh.it> (permalink)
References <yOS6u-6k1-5@gated-at.bofh.it> <yOS6u-6k1-5@gated-at.bofh.it>
X-Original-To 937698@bugs.debian.org, debian-python@lists.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Oct 8 07:36:15 2019
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.951
Reply-To Andreas Tille <andreas@an3as.eu>, 937698@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
X-Debian-Pr-Message followup 937698
X-Debian-Pr-Package src:python-dendropy
X-Debian-Pr-Keywords bullseye sid
X-Debian-Pr-Source python-dendropy
X-Spam-Bayes score:0.0000 Tokens: new, 63; hammy, 150; neutral, 214; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--sk:salsa.d, 0.000-+--sk:salsad, 0.000-+--UD:salsa.debian.org, 0.000-+--salsadebianorg
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent NeoMutt/20170113 (1.7.2)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1562754
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 99
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 8 Oct 2019 09:28:45 +0200
X-Original-Message-ID <20191008072845.2epcjuqifelbi2wg@an3as.eu>
X-Original-References <E1i3bUE-0006yZ-Nk@paradis.debian.org> <E1i3bUE-0006yZ-Nk@paradis.debian.org>
Xref csiph.com linux.debian.bugs.dist:978357 linux.debian.maint.python:11873

Cross-posted to 2 groups.

Show key headers only | View raw


Control: tags -1 help

Hi,

I have prepared a fix for this package in Git[1].  Unfortunately I'm
stumbling upon a test suite error which was discussed with upstream
previously.  It happens only for Python3 and was ignored before but
this strategy seems to be inappropriate now after droping Python2.
You can simply reproduce the issue even in the unpackaged source:

$ python3 setup.py test
-setup.py: DendroPy version 4.4.0
-setup.py: using setuptools ('/usr/lib/python3/dist-packages/setuptools/__init__.py')
-setup.py: searching for packages
-setup.py: packages identified:
           - dendropy                
           - dendropy.legacy         
           - dendropy.utility        
           - dendropy.mathlib        
           - dendropy.dataio         
           - dendropy.interop        
           - dendropy.datamodel      
           - dendropy.model          
           - dendropy.calculate      
           - dendropy.simulate       
           - dendropy.utility.libexec
-setup.py: scripts identified:
           - applications/sumtrees/sumtrees.py  
           - applications/sumlabels/sumlabels.py
-setup.py: setuptools command extensions are available
running test
running egg_info
writing src/DendroPy.egg-info/PKG-INFO
writing dependency_links to src/DendroPy.egg-info/dependency_links.txt
writing entry points to src/DendroPy.egg-info/entry_points.txt
writing requirements to src/DendroPy.egg-info/requires.txt
writing top-level names to src/DendroPy.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
warning: no files found matching 'doc/Makefile'
warning: no files found matching '*' under directory 'doc/source'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.gitignore' found anywhere in distribution
warning: no previously-included files matching '.gitattributes' found anywhere in distribution
warning: no previously-included files matching '.idea' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
writing manifest file 'src/DendroPy.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 192, in <module>
    **EXTRA_KWARGS
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 229, in run
    self.run_tests()
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 251, in run_tests
    exit=False,
  File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python3.7/unittest/main.py", line 147, in parseArgs
    self.createTests()
  File "/usr/lib/python3.7/unittest/main.py", line 159, in createTests
    self.module)
  File "/usr/lib/python3.7/unittest/loader.py", line 220, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.7/unittest/loader.py", line 220, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 47, in loadTestsFromModule
    for file in resource_listdir(module.__name__, ''):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1162, in resource_listdir
    return get_provider(package_or_requirement).resource_listdir(
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 364, in get_provider
    return _find_adapter(_provider_factories, loader)(module)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1392, in __init__
    self.module_path = os.path.dirname(getattr(module, '__file__', ''))
  File "/usr/lib/python3.7/posixpath.py", line 156, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType


Any hint would be welcome.

Kind regards

      Andreas.


[1] https://salsa.debian.org/med-team/python-dendropy

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#937698: Help needed for issue in test suite for Python3 (Was: Bug#937698: python-dendropy: Python2 removal in sid/bullseye) Andreas Tille <andreas@an3as.eu> - 2019-10-08 09:40 +0200
  Re: Help needed for issue in test suite for Python3 (Was: Bug#937698:  python-dendropy: Python2 removal in sid/bullseye) Michael Kesper <mkesper@schokokeks.org> - 2019-10-08 09:50 +0200
  Bug#937698: Help needed for issue in test suite for Python3 (Was: Bug#937698: python-dendropy: Python2 removal in sid/bullseye) Simon McVittie <smcv@debian.org> - 2019-10-08 10:10 +0200

csiph-web