Package: src:python-mechanize
Version: 1:0.4.10+ds-3
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
pybuild --clean -i python{version} -p 3.13
I: pybuild base:311: python3.13 setup.py clean /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.13' does not exist -- can't clean it
rm -rf .pybuild/
find . -name \*.pyc -exec rm {} \;
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
rm -f debian/debhelper-build-stamp
rm -rf debian/.debhelper/
rm -f -- debian/python3-mechanize.substvars debian/files
rm -fr -- debian/python3-mechanize/ debian/tmp/
find . \( \( \
\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
debian/rules binary
dh binary --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
pybuild --configure -i python{version} -p 3.13
I: pybuild base:311: python3.13 setup.py config /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running config
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
pybuild --build -i python{version} -p 3.13
I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize copying mechanize/_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_urllib2_fork.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_form_controls.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_clientcookie.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_auth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_form.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_response.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_html.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_rfc3986.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_gzip.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_debug.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_headersutil.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_urllib2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_equiv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_opener.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/polyglot.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_entities.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_useragent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_sockettimeout.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_mechanize.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_testcase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
copying mechanize/_request.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
rm -f debian/python3-mechanize.debhelper.log
debian/rules override_dh_auto_test-indep
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# several points here:
# - pybuild sets proxy server which breaks locally started server, disable it
# - we need to explicitly change to the build dir, otherwise the test
# uses the main files
# Thanks to Dmitry Shachnev for finding all that!
http_proxy= no_proxy= dh_auto_test -- --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py"
pybuild --test -i python{version} -p 3.13 --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py"
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build; python3.13 run_tests.py
................................................F.../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_headersutil.py:237: DeprecationWarning: 'maxsplit' is passed as positional argument
k, v = re.split(r"\s*=\s*", param, 1) ......................................................................................................................./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket fd=6, family=
2, type=1, proto=6, laddr=('127.0.0.1', 34410), raddr=('127.0.0.1', 2121)>
for meth in dir(handler):
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
for meth in dir(handler):
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
for meth in dir(handler):
ResourceWarning: Enable tracemalloc to get the object allocation traceback ........./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=6, family=2, type=1, proto=6>
lookup.setdefault(kind, set()).add(handler)
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=7, family=2, type=1, proto=6>
lookup.setdefault(kind, set()).add(handler)
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
lookup.setdefault(kind, set()).add(handler)
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
lookup.setdefault(kind, set()).add(handler)
ResourceWarning: Enable tracemalloc to get the object allocation traceback ................./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_headersutil.py:237: DeprecationWarning: 'maxsplit' is passed as positional argument
k, v = re.split(r"\s*=\s*", param, 1) ..................................................................................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:99: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
ii = meth.find("_")
ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:99: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
ii = meth.find("_")
ResourceWarning: Enable tracemalloc to get the object allocation traceback ......................... ======================================================================
FAIL: test_missing_name (test.test_cookies.CookieTests.test_missing_name) ---------------------------------------------------------------------- Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/test/test_cookies.py", line 335, in test_missing_name
assert lwp_cookie_str(cookie) == (
^^^^^^^^^^^^^^^^^^^^^^^^^^^
r'"spam"; path="/foo/"; domain="www.acme.com"; '
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'path_spec; discard; version=0')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
----------------------------------------------------------------------
Ran 306 tests in 5.560s
FAILED (failures=1)
E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build; python3.13 run_tests.py
rm -fr -- /tmp/dh-xdg-rundir-Ie0U9EWB
dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py" returned exit code 13
make[1]: *** [debian/rules:23: override_dh_auto_test-indep] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202505/
About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-mechanize, so that this is still visible in the BTS web page for this package.
Thanks.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)