Bug#906626: typedload: FTBFS in buster/sid (The type alias is invalid in runtime context)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#906626: typedload: FTBFS in buster/sid (The type alias is invalid in runtime context)

Santiago Vila-2
Package: src:typedload
Version: 1.7-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 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: python3.6 setup.py config
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/datadumper.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/dataloader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/attrload.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/attrdump.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make test
make[2]: Entering directory '/<<PKGBUILDDIR>>'
python3 -m tests
............................................
----------------------------------------------------------------------
Ran 44 tests in 0.015s

OK
Running tests using 3.6.6 (default, Jun 27 2018, 14:44:17)
[GCC 8.1.0]
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make mypy
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mypy --config-file mypy.conf typedload
typedload/dataloader.py:123: error: The type alias is invalid in runtime context
typedload/dataloader.py:153: error: The type alias is invalid in runtime context
typedload/datadumper.py:84: error: The type alias is invalid in runtime context
make[2]: *** [Makefile:9: mypy] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:9: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/typedload.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.

Reply | Threaded
Open this post in threaded view
|

Bug#906626: mypy failure

Salvo Tomaselli-3
Hello,

thanks for your report. It is indeed failing to build, due to a newer
version of mypy that fails.

I suspect this is actually an issue with mypy,

See this example

NONETYPE = type(None)

def f(a) -> None:
    if type(a) == NONETYPE:
        pass

I will contact the mypy upstream about this.

But I intend to make a typedload update to workaround this.

Best

--
Salvo Tomaselli

"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
                -- Galileo Galilei

http://ltworf.github.io/ltworf/

Reply | Threaded
Open this post in threaded view
|

Bug#906626: marked as done (typedload: FTBFS in buster/sid (The type alias is invalid in runtime context))

Debian Bug Tracking System
In reply to this post by Santiago Vila-2
Your message dated Mon, 20 Aug 2018 06:34:38 +0000
with message-id <[hidden email]>
and subject line Bug#906626: fixed in typedload 1.8-1
has caused the Debian Bug report #906626,
regarding typedload: FTBFS in buster/sid (The type alias is invalid in runtime context)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [hidden email]
immediately.)


--
906626: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906626
Debian Bug Tracking System
Contact [hidden email] with problems

Package: src:typedload
Version: 1.7-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 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: python3.6 setup.py config
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/datadumper.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
copying typedload/dataloader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/attrload.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/attrdump.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/plugins/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload/plugins
copying typedload/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/typedload
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make test
make[2]: Entering directory '/<<PKGBUILDDIR>>'
python3 -m tests
............................................
----------------------------------------------------------------------
Ran 44 tests in 0.015s

OK
Running tests using 3.6.6 (default, Jun 27 2018, 14:44:17)
[GCC 8.1.0]
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make mypy
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mypy --config-file mypy.conf typedload
typedload/dataloader.py:123: error: The type alias is invalid in runtime context
typedload/dataloader.py:153: error: The type alias is invalid in runtime context
typedload/datadumper.py:84: error: The type alias is invalid in runtime context
make[2]: *** [Makefile:9: mypy] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:9: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/typedload.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.

Source: typedload
Source-Version: 1.8-1

We believe that the bug you reported is fixed in the latest version of
typedload, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [hidden email],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvo 'LtWorf' Tomaselli <[hidden email]> (supplier of updated typedload package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [hidden email])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 20 Aug 2018 07:56:13 +0200
Source: typedload
Binary: python3-typedload
Architecture: source all
Version: 1.8-1
Distribution: unstable
Urgency: medium
Maintainer: Salvo 'LtWorf' Tomaselli <[hidden email]>
Changed-By: Salvo 'LtWorf' Tomaselli <[hidden email]>
Description:
 python3-typedload - Python3 module to load and dump data into typed structures
Closes: 906626
Changes:
 typedload (1.8-1) unstable; urgency=medium
 .
   * New upstream release
   * Workaround mypy bug (Closes: #906626)
   * Bump Standards-Version to 4.2.0
Checksums-Sha1:
 534e77c5b004646c6c646c9cb29c7bdf16c89051 2111 typedload_1.8-1.dsc
 989b684bc9a0c5c9bfe29d0d935000768608d4e8 28631 typedload_1.8.orig.tar.gz
 16f05b94366a20cd7466a2b7a27f014aea29c0a1 833 typedload_1.8.orig.tar.gz.asc
 32b92e284e0d3b51e68dd4ceea0a6ade2d485967 12376 typedload_1.8-1.debian.tar.xz
 c3adecbe43680a59fbcb90fc54cad1a7bb44ef1a 11288 python3-typedload_1.8-1_all.deb
 d3f62e39c276d5ea77f6cdcb8b2180cd28417217 5975 typedload_1.8-1_amd64.buildinfo
Checksums-Sha256:
 163f2b508a21e282c6fead9829552fd5be9d3523cd88f084c0382e4fffcac979 2111 typedload_1.8-1.dsc
 13329c5fc76de51cce13ea76fa243e38e062c96ca937887ef45a667f6f05cf63 28631 typedload_1.8.orig.tar.gz
 e72ab0d7b0e39c2b8ef69656f3a3c0306dbc8817a4f2f4193a3ae737ec8259da 833 typedload_1.8.orig.tar.gz.asc
 ccd871a07173ec2dff5a15aaa2ad0b1d96082c5d0cbb69e5304271057b45784a 12376 typedload_1.8-1.debian.tar.xz
 99e431ac90703a1d74d2933f328abfcb5e95c0e19f979f175ee17868b013fd1f 11288 python3-typedload_1.8-1_all.deb
 92ac21cfe788883bca497b6d6e40a9e737d7513df91565bf85318b33febf6e9e 5975 typedload_1.8-1_amd64.buildinfo
Files:
 dcbf63a6e9876cafc68e30b2e8cfa932 2111 python optional typedload_1.8-1.dsc
 c937e69ab9bde5f1d84ae7762efef8bd 28631 python optional typedload_1.8.orig.tar.gz
 01f72a53bb0011a206a862c5c7d6fe86 833 python optional typedload_1.8.orig.tar.gz.asc
 b9d6bf7f4742af4a4370e12489781833 12376 python optional typedload_1.8-1.debian.tar.xz
 60cc39812b318dfd4d7d549377bd1187 11288 python optional python3-typedload_1.8-1_all.deb
 581a879bea4e8bb98a100baf7c06d2c9 5975 python optional typedload_1.8-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEQnSLnnbYmXmeH74Us6fPDIAYhs8FAlt6WxsUHHRpcG9zY2hp
QHRpc2NhbGkuaXQACgkQs6fPDIAYhs/YHg/+Ljdiekp/5vcI1kaIh7Kjw1S6oa0F
/+fuqZgAX/BoZC3qfWKQUsyRiAWuVZ1cE+ObvnjpfgZPytcWXRWvX7dFIuOrpatT
71+sgHyEYE2YS5Riqg6RAKRw/xOLf78ZZ0X5pAki6c6iHZ7rAUS7vXYStrNcNbsY
wkjyR5hJBgS++GTYjPueQ8u4EW/vNaclc5Jg0rTD78S3bXXWZfKQ370BeKqXyL8x
FolU7YrXoR4xQDO0nO5ZEg8xyrJsqVnyxYH2wCo3VoTySQJTg5Aj7ahTAsUC0vfF
4y94gkc08jxcIDkDMdO/i2Hy2GMqPquyvSLUFgUe5WN6SKlKqHh2LAbTGxjSNr/V
sSf5rsaQyqJayYrbz3aH3PER1/6/IGsuXFoGKG5aXxxsTd1Nv72aaDDzV4R/hpnk
P2VEQWLose3DVAC2aNmFbLMRbiLHMITz+phQy4d4OUb4b87AOccMqQkIveZyo0pw
EauIvZZPzPvFr17TASdc5j4BgOwca0ntQrKiDtLOgAlcvGVKPPrxbeMR5exxtQdk
OIZQlN+ljC3Gg92w3ZN+N2RsUzrrrMKam4M9sjD8gizwQiTiQFXS/VDk1EfSmmE5
hStThp7vw7X8xBOKn3M+sE9lFlL477ryk9kjjZEZyKwA/95fivtSN3bQMYBtoezt
ksfuF6MnIRR14Mw=
=GEsG
-----END PGP SIGNATURE-----