Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

U flag to open causing a python-3.11 failure, aka are you continuing snake? #33

Open
abadger opened this issue Jan 3, 2023 · 2 comments

Comments

@abadger
Copy link

abadger commented Jan 3, 2023

Hey, I'm wondering if you are going to continue working on snake. I just upgraded to 3.11 and noticed that changes to open() (the "U" flag has gone away) is causing a failure:

Error invoking 'python_execute_file' on channel 3 (python3-script-host):
Traceback (most recent call last):
  File "/home/badger/.vim/pack/badger/start/snake/plugin/bootstrap.py", line 11, in <module>
    import snake
  File "/home/badger/.vim/pack/badger/start/snake/plugin/snake/__init__.py", line 737, in <module>
    from . import plugin_loader
  File "/home/badger/.vim/pack/badger/start/snake/plugin/snake/plugin_loader.py", line 215, in <module>

    import_source("vimrc", vimrc_path)
  File "/home/badger/.vim/pack/badger/start/snake/plugin/snake/plugin_loader.py", line 206, in import_s
ource
    h = open(path, desc[1])
        ^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'U'

If you're going to continue work on snake, I can look at opening a PR to omit the flag when we are using later python versions. There are other deprecations in the works, though (for instance, imp is deprecated) so I'll probably try porting my configs to lua if you don't have time to keep snake updated anymore.

@amoffat
Copy link
Owner

amoffat commented Jan 5, 2023

Hi @abadger, no I am not working on snake anymore. I should probably archive it, unless you would be interested in maintaining it?

@abadger
Copy link
Author

abadger commented Jan 5, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants