[Python-modules-team] Bug#917496: keyrings.alt: FTBFS ('module' object has no attribute 'ResourceNotFoundError')

Santiago Vila sanvila at debian.org
Thu Dec 27 23:54:02 GMT 2018


Package: src:keyrings.alt
Version: 3.1-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_autoreconf -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py config 
running config
I: pybuild base:217: python3.7 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_keyrings.alt/build/keyrings

[... snipped ...]

        service = random_string(20, UNICODE_CHARS)
>       self.check_set_get(service, username, password)

/usr/lib/python2.7/dist-packages/keyring/tests/test_backend.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python2.7/dist-packages/keyring/tests/test_backend.py:60: in check_set_get
    assert keyring.get_password(service, username) is None
keyrings/alt/pyfs.py:181: in get_password
    password_base64 = self.config.get(service, username).encode()
keyrings/alt/pyfs.py:166: in config
    f = self._open()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <keyrings.alt.pyfs.EncryptedKeyring object at 0x7f262d65fd50>, mode = 'r'

    def _open(self, mode='r'):
        """Open the password file in the specified mode
            """
        open_file = None
        writeable = 'w' in mode or 'a' in mode or '+' in mode
        try:
            # NOTE: currently the MemOpener does not split off any filename
            #       which causes errors on close()
            #       so we add a dummy name and open it separately
            if (self.filename.startswith('mem://') or
                    self.filename.startswith('ram://')):
                open_file = fs.opener.fsopendir(self.filename).open('kr.cfg',
                                                                    mode)
            else:
                if not hasattr(self, '_pyfs'):
                    # reuse the pyfilesystem and path
                    self._pyfs, self._path = fs.opener.opener.parse(
                        self.filename, writeable=writeable)
                    # cache if permitted
                    if self._cache_timeout is not None:
                        self._pyfs = fs.remote.CacheFS(
                            self._pyfs, cache_timeout=self._cache_timeout)
                open_file = self._pyfs.open(self._path, mode)
>       except fs.errors.ResourceNotFoundError:
E       AttributeError: 'module' object has no attribute 'ResourceNotFoundError'

keyrings/alt/pyfs.py:108: AttributeError
=============== 64 failed, 23 passed, 39 skipped in 3.85 seconds ===============
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_keyrings.alt/build; python2.7 -m pytest --ignore=keyrings/alt/_win_crypto.py --ignore=tests/test_crypto.py --ignore=tests/test_file.py --ignore=tests/test_Windows.py
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:13: build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
but it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/keyrings.alt.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the Python-modules-team mailing list