Source: python-mechanize
Version: 1:0.4.5-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> 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.10 3.9" --system custom 
> --test-args "cd {build_dir}; {interpreter} run_tests.py"
> I: pybuild base:237: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build; python3.10 
> run_tests.py
> ..............................EE/usr/lib/python3.10/unittest/case.py:613: 
> ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpzb_unlqv' 
> mode='w' encoding='UTF-8'>
>   outcome.errors.clear()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> E/usr/lib/python3.10/unittest/case.py:613: ResourceWarning: unclosed file 
> <_io.TextIOWrapper name='/tmp/tmpbhhwoyt7' mode='w' encoding='UTF-8'>
>   outcome.errors.clear()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ...............E................................................................................................................E........./usr/lib/python3.10/collections/__init__.py:422:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   result = tuple_new(cls, iterable)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3.10/collections/__init__.py:422: ResourceWarning: unclosed 
> <socket.socket [closed] fd=9, family=AddressFamily.AF_INET, 
> type=SocketKind.SOCK_STREAM, proto=6>
>   result = tuple_new(cls, iterable)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ..../<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_opener.py:107:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   kind = int(kind)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_opener.py:107:
>  ResourceWarning: unclosed <socket.socket [closed] fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   kind = int(kind)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_opener.py:107:
>  ResourceWarning: unclosed <socket.socket [closed] fd=10, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   kind = int(kind)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_opener.py:107:
>  ResourceWarning: unclosed <socket.socket [closed] fd=11, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   kind = int(kind)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ......../usr/lib/python3.10/email/feedparser.py:89: ResourceWarning: unclosed 
> <socket.socket fd=6, family=AddressFamily.AF_INET, 
> type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 59524), 
> raddr=('127.0.0.1', 2121)>
>   for ateof in reversed(self._eofstack):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ................................................................................................/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_urllib2_fork.py:1375:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   return list(filter(None, (part_.strip() for part_ in res)))
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_urllib2_fork.py:1375:
>  ResourceWarning: unclosed <socket.socket [closed] fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   return list(filter(None, (part_.strip() for part_ in res)))
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ..................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=11, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=13, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=14, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=15, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=16, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=18, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_useragent.py:103:
>  ResourceWarning: unclosed <socket.socket [closed] fd=19, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   ua_handlers[scheme] = klass()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> .....
> ======================================================================
> ERROR: test_mozilla_cookiejar (test.test_cookies.CookieJarPersistenceTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_cookies.py",
>  line 1266, in test_mozilla_cookiejar
>     new_c = save_and_restore(c, True)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_cookies.py",
>  line 1258, in save_and_restore
>     new_c.load(ignore_discard=ignore_discard)
>   File "/usr/lib/python3.10/http/cookiejar.py", line 1807, in load
>     self._really_load(f, filename, ignore_discard, ignore_expires)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_clientcookie.py",
>  line 199, in _really_load
>     raise LoadError(
> http.cookiejar.LoadError: '/tmp/tmpmykgrdbx' does not look like a Netscape 
> format cookies file
> 
> ======================================================================
> ERROR: test_mozilla_cookiejar_embedded_tab 
> (test.test_cookies.CookieJarPersistenceTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_cookies.py",
>  line 1285, in test_mozilla_cookiejar_embedded_tab
>     fh.write(MozillaCookieJar.header + "\n" +
> AttributeError: type object 'MozillaCookieJar' has no attribute 'header'
> 
> ======================================================================
> ERROR: test_mozilla_cookiejar_initial_dot_violation 
> (test.test_cookies.CookieJarPersistenceTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_cookies.py",
>  line 1306, in test_mozilla_cookiejar_initial_dot_violation
>     fh.write(MozillaCookieJar.header + "\n" +
> AttributeError: type object 'MozillaCookieJar' has no attribute 'header'
> 
> ======================================================================
> ERROR: test_missing_name (test.test_cookies.CookieTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_cookies.py",
>  line 342, in test_missing_name
>     c.revert(ignore_expires=True, ignore_discard=True)
>   File "/usr/lib/python3.10/http/cookiejar.py", line 1827, in revert
>     self.load(filename, ignore_discard, ignore_expires)
>   File "/usr/lib/python3.10/http/cookiejar.py", line 1807, in load
>     self._really_load(f, filename, ignore_discard, ignore_expires)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_clientcookie.py",
>  line 199, in _really_load
>     raise LoadError(
> http.cookiejar.LoadError: '/tmp/tmpxgwq7v4l' does not look like a Netscape 
> format cookies file
> 
> ======================================================================
> ERROR: test_mozilla_cookiejar (test.test_functional.CookieJarTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_functional.py",
>  line 684, in test_mozilla_cookiejar
>     self._test_cookiejar(make_cookiejar, commit)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_functional.py",
>  line 664, in _test_cookiejar
>     cookiejar = make_cookiejar()
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/test/test_functional.py",
>  line 676, in make_cookiejar
>     cj.revert()
>   File "/usr/lib/python3.10/http/cookiejar.py", line 1827, in revert
>     self.load(filename, ignore_discard, ignore_expires)
>   File "/usr/lib/python3.10/http/cookiejar.py", line 1807, in load
>     self._really_load(f, filename, ignore_discard, ignore_expires)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build/mechanize/_clientcookie.py",
>  line 199, in _really_load
>     raise LoadError(
> http.cookiejar.LoadError: '/tmp/tmp-TempDirMaker-a_m1t_cb/cookies.txt' does 
> not look like a Netscape format cookies file
> 
> ----------------------------------------------------------------------
> Ran 304 tests in 5.724s
> 
> FAILED (errors=5)
> sys:1: ResourceWarning: unclosed <socket.socket fd=6, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 42955)>
> sys:1: ResourceWarning: unclosed <socket.socket fd=17, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 43929)>
> sys:1: ResourceWarning: unclosed <socket.socket fd=7, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 41171)>
> E: pybuild pybuild:355: test: plugin custom failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mechanize/build; python3.10 
> run_tests.py
> I: pybuild base:237: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build; python3.9 run_tests.py
> .........................................................................................................................................................................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:85:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   for meth in dir(handler):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:85:
>  ResourceWarning: unclosed <socket.socket [closed] fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   for meth in dir(handler):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ..../<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:85:
>  ResourceWarning: unclosed <socket.socket [closed] fd=10, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   for meth in dir(handler):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:85:
>  ResourceWarning: unclosed <socket.socket [closed] fd=11, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   for meth in dir(handler):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ............./<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_urllib2_fork.py:888:
>  ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, 
> type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 59776), 
> raddr=('127.0.0.1', 2121)>
>   self.passwd = password_mgr
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> .........................................................................................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_urllib2_fork.py:1375:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   return list(filter(None, (part_.strip() for part_ in res)))
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_urllib2_fork.py:1375:
>  ResourceWarning: unclosed <socket.socket [closed] fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   return list(filter(None, (part_.strip() for part_ in res)))
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ..................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=8, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=11, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=16, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=17, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=18, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_mechanize/build/mechanize/_opener.py:60:
>  ResourceWarning: unclosed <socket.socket [closed] fd=19, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
>   if not hasattr(handler, "add_parent"):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> .....
> ----------------------------------------------------------------------
> Ran 304 tests in 5.724s
> 
> OK
> sys:1: ResourceWarning: unclosed <socket.socket fd=6, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 33965)>
> sys:1: ResourceWarning: unclosed <socket.socket fd=9, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 42411)>
> sys:1: ResourceWarning: unclosed <socket.socket fd=7, 
> family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
> laddr=('127.0.0.1', 32841)>
> dh_auto_test: error: pybuild --test -i python{version} -p "3.10 3.9" --system 
> custom --test-args "cd {build_dir}; {interpreter} run_tests.py" returned exit 
> code 13


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/python-mechanize_0.4.5-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to