sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
949 stars 403 forks source link

help: invalid pattern in Python 3.11 #2403

Closed dgw closed 1 year ago

dgw commented 1 year ago

The old built-in help plugin uses a global regex flag in the middle of a pattern, which is no longer allowed as of Python 3.11:

https://github.com/sopel-irc/sopel/blob/81b5e1180f2ac331263894323b7c52c8f7ab9825/sopel/modules/help.py#L246

Doing this was deprecated in Python 3.6 (scroll to re header, if the link fragment breaks).

The workaround is to install sopel-help from PyPI.

It is an official replacement, extracted from the core bot package and released separately for easier updates. We intend to keep it usable with the older 7.1.x Sopel versions until Sopel 8 is released.

This issue was opened after the offending code had already been removed from Sopel 8, so it could be pinned to the top of our issue list in case anyone had this problem.

antdude commented 1 year ago

Thanks, dgw. Is it possible to see this URL without Sopel to see what it looks like in a text web browser (lynx, eLinks, etc.) since I SSH2 into my friend's Fedora box?

dgw commented 1 year ago

@antdude Surely you meant to post that on #2402?

antdude commented 1 year ago

@dgw. Oops! Dang typos. Thanks. :(