#1131796 pagekite: autopkgtest failure with Python 3.14

#1131796#5
Date:
2026-03-24 16:47:29 UTC
From:
To:
Hi Maintainer

The autopkgtests of this package failed in Ubuntu with Python 3.14 as
the default version.  I've copied what I hope is the relevant part of
the log below.

Regards
Graham


 72s autopkgtest [16:06:38]: test test-tunnel: [-----------------------
 73s starting frontend
 73s Traceback (most recent call last):
 73s   File "/usr/bin/pagekite", line 28, in <module>
 73s     from pagekite import pk
 73s   File "/usr/lib/python3/dist-packages/pagekite/pk.py", line 33,
in <module>
 73s     from six.moves.urllib.request import URLopener, urlopen
 73s ImportError: cannot import name 'URLopener' from
'six.moves.urllib.request' (unknown location)
 74s starting backend
 74s Traceback (most recent call last):
 74s   File "/usr/bin/pagekite", line 28, in <module>
 74s     from pagekite import pk
 74s   File "/usr/lib/python3/dist-packages/pagekite/pk.py", line 33,
in <module>
 74s     from six.moves.urllib.request import URLopener, urlopen
 74s ImportError: cannot import name 'URLopener' from
'six.moves.urllib.request' (unknown location)
 84s trying to connect to ident server via pagekite
 84s error
 84s stopping pagekite processes
 84s /tmp/autopkgtest.a1JY9F/build.1U1/src/debian/tests/test-tunnel:
38: kill: No such process
 84s
 84s /tmp/autopkgtest.a1JY9F/build.1U1/src/debian/tests/test-tunnel:
38: kill: No such process
 84s
 84s autopkgtest [16:06:50]: test test-tunnel: -----------------------]
 84s autopkgtest [16:06:50]: test test-tunnel:  - - - - - - - - - -
results - - - - - - - - - -
 84s test-tunnel          FAIL non-zero exit status 1

#1131796#10
Date:
2026-03-25 08:29:22 UTC
From:
To:
[Graham Inggs]

Thank you for the heads up.  I notice
<URL: https://bugzilla.redhat.com/show_bug.cgi?id=2327971 > is a similar
report about a missing 'URLopener' in six, and there there is a pointer to a
upstream fix <URL: https://github.com/benjaminp/six/pull/388 > in six,
so I believe the problem is actually in the
<URL: https://tracker.debian.org/pkg/six > package and should be fixed
there.  You do not specify which version of python3-six was used during
build, but I assume it was the latest one and reassign the issue.

#1131796#23
Date:
2026-03-27 17:43:25 UTC
From:
To:
Control: reassign -1 src:pagekite 1.5.2.201011-4

The problem can't be that six is missing the upstream patch you point
to, because that patch landed in six 1.17.0 which has been in Debian for
over a year and was even in trixie.

The problem is that pagekite itself is doing `from
six.moves.urllib.request import URLopener`.  six can't make that work
for you any more, since the class was removed from the Python standard
library.  This appears to have been fixed in pagekite upstream:

https://github.com/pagekite/PyPagekite/commit/b15c769c22b0554706fdbc46a0a0bc89bdb9909f

Reassigning back.

Regards,