control: severity -1 normal

On Sun, 2017-02-26 at 15:33 +0000, Ghislain Vaillant wrote:
> control: retitle -1 DistributionNotFound: The 'singledispatch' distribution 
> was not found
> control: severity -1 important
> 
> This bug is now a blocker for src:python-pydap (currently under ITP).

Actually, the code can be patched to use the `singledispatch` module
from the standard library from Python 3.5 onwards. I have lowered the
severity as a result.

> The test suite for Pydap fails and the log is riddled with
> DistributionNotFound errors regarding singledispatch:
> 
> ```
> ======================================================================
> ERROR: Failure: DistributionNotFound (The 'singledispatch' distribution was 
> not found and is required by the application)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 418, in 
> loadTestsFromName
>     addr.filename, addr.module)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in 
> importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in 
> importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.5/imp.py", line 234, in load_module
>     return load_source(name, filename, file)
>   File "/usr/lib/python3.5/imp.py", line 172, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 693, in _load
>   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 673, in exec_module
>   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pydap/tests/test_D1.py", line 
> 13, in <module>
>     from pydap.handlers.lib import BaseHandler
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pydap/handlers/lib.py", 
> line 65, in <module>
>     class BaseHandler(object):
>   File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pydap/handlers/lib.py", 
> line 76, in BaseHandler
>     responses = load_responses()
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pydap/responses/lib.py", line 
> 22, in load_responses
>     (r.name, r.load()) for r in iter_entry_points('pydap.response'))
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build/pydap/responses/lib.py", line 
> 22, in <genexpr>
>     (r.name, r.load()) for r in iter_entry_points('pydap.response'))
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2290, 
> in load
>     self.require(*args, **kwargs)
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2307, 
> in require
>     items = working_set.resolve(reqs, env, installer)
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 849, 
> in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'singledispatch' distribution was not 
> found and is required by the application
> ```
> 
> This, plus the dh-python3 warning reported initially (when the failure
> of the tests above is bypassed), is a sign of something seriously wrong
> with the packaging.
> 
> 
> On Thu, 12 Jan 2017 10:55:23 +0000 Ghislain Antony Vaillant 
> <[email protected]> wrote:
> > Package: python3-singledispatch
> > Version: 3.4.0.3-2
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > On an attempt to build a package with a b-dep / i-dep on singledispatch,
> > dh_python3 complains that it cannot find the package providing
> > singledispatch. Is this behaviour expected? Does it have to do with the
> > removal of the egg-info directory mentioned in the change log for
> > 3.4.0.3-1?
> > 
> > Sure singledispatch could be added manually to py3dist-overrides, but I
> > would rather have dh_python3 figure things out automatically as it
> > properly does for all the other b-deps / i-deps.
> > 
> > Cheers,
> > Ghis
> > 
> > 
> > -- System Information:
> > Debian Release: stretch/sid
> >   APT prefers testing
> >   APT policy: (900, 'testing'), (300, 'unstable')
> > Architecture: amd64 (x86_64)
> > 
> > Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
> > Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> 
> 

Reply via email to