[Freedombox-pkg-team] Bug#1075997: pagekite: Fail with python 3.12 (AttributeError: module 'ssl' has no attribute 'wrap_socket')

Petter Reinholdtsen pere at hungry.com
Tue Aug 13 07:06:05 BST 2024


[Sunil Mohan Adapa]
> I have a slightly different patch. I have been able to eliminate the
> error and also replace the old method with new one while keeping all
> the old behavior. I have tested that it was able to connect
> successfully to the server. However, I don't have credits in my
> account. Please help test it further. If it looks good, we can make a
> release of the package.

I can confirm that this got my pagekite working again.

The service emit some strange messages to journald, but I believe those
are not relevant for this error and not fatal:

pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/pk.py:1242: SyntaxWarning: invalid escape sequence '\.'
pagekite[20706]:   'localhost': '((::ffff:)?127\..*|::1)',
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/common.py:153: SyntaxWarning: invalid escape sequence '\.'
pagekite[20706]:   SERVICE_DOMAIN_RE = re.compile('\.(' + '|'.join(SERVICE_DOMAINS) + ')$')
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/selectables.py:656: SyntaxWarning: invalid escape sequence '\s'
pagekite[20706]:   XMPP_REGEXP = re.compile("<[^>]+\sto=([^\s>]+)[^>]*>")
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/filters.py:163: SyntaxWarning: invalid escape sequence '\d'
pagekite[20706]:   HTTP_HEADER = re.compile('(?ism)^(([A-Z]+) ([^\n]+) HTTP/\d+\.\d+\s*)$')
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/filters.py:216: SyntaxWarning: invalid escape sequence '\.'
pagekite[20706]:   '(?:wp-admin/(?!admin-ajax|css/)|wp-config\.php'
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/filters.py:218: SyntaxWarning: invalid escape sequence '\.'
pagekite[20706]:   '|system32/|\.\.|\.ht(?:access|pass)'
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/filters.py:222: SyntaxWarning: invalid escape sequence '\.'
pagekite[20706]:   '|(?:adm[^\n]*|install[^\n]*|setup)\.php)'
pagekite[20706]: /usr/lib/python3/dist-packages/pagekite/proto/filters.py:224: SyntaxWarning: invalid escape sequence '\d'
pagekite[20706]:   ' HTTP/\d+\.\d+\s*)$')

Perhaps worthy of its own bug report, or to be ignored as not fatal?

-- 
Happy hacking
Petter Reinholdtsen



More information about the Freedombox-pkg-team mailing list