Closed mock closed 11 months ago
File mode 'U'
was removed in 3.11, the code responsible for this error was dropped in 596adc4 but the change isn't yet in a release. Users who run into the problem should install Sopel from master
for the time being, or maybe run their instance with 3.10 or lower until the next release.
Thanks for the report!
I've created and assigned a new milestone, with an arbitrarily assigned "pay attention to me!" date of 1 May. If we don't get 8.0 finalized by then, we can cut a hotfix release for the stable branch. (If the Travis CI release pipeline no longer works, I'll build and upload it myself!) Meanwhile, I will pin the issue.
Note: Hotfix urgency to be adjusted as needed if too many users start running into this, i.e. if Python 3.11 environments become too common in the wild to ignore.
Just confirming that installing the master branch resolved the above issue without any other tweaking.
Just here to note that I ran into this error today on installing the latest release of sopel, which apparently is still not compatible with Python 3.11 despite this error being known for five months.
Just cut a release already, even if this is the only thing in it.
We can't run the maintenance branch's CI on GitHub Actions, and the old Travis-CI test + release pipeline is also broken due to changes from them (even though we registered as an OSS project 🙄)
Basically, creating a maintenance release that is adequately tested just for this bug (which has a workaround—installing from the master
branch) would take too much of our limited developer time away from finishing Sopel 8.0, which is on track to be done next month. Seriously, we're very close! Prioritization is just very important for us, as a small project with few active contributors.
I'm writing the Sopel 8 upgrade guide, and @SnoopJ has put in a bunch of work on the changelog for 8.0.0. It's safe to say that this won't be fixed in a patch release for 7.1.x, so I'm re-tagging this for 8.0.0 and closing it (because it is, in fact, fixed).
Description
I'm logging this here for reference per the advice given by those in the IRC support channel.
After upgrading my OS, my default Python is now 3.11.1. When I tried to start up my bots, I received multiple errors for the my custom modules. The error manifested as:
The full error file is included below for a complete trace.
It was suggested for the time being to pull a copy of the master branch and then make any adjustments to the code to avoid the
'U'
mode. (The line causing the problems was located here: https://github.com/sopel-irc/sopel/blob/v7.1.9/sopel/plugins/handlers.py#L435.)Reproduction steps
Expected behavior
Loading of my custom modules as with Python 3.10.x. Custom modules then will listen for triggers.
Relevant logs
Notes
No response
Sopel version
7.1.9
Installation method
pip install
Python version
3.11.1
Operating system
Fedora 37
IRCd
No response
Relevant plugins
all my custom plugins