Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Doesn't work on Amazon Linux with gedit 3.28.1 #10

Open
Gianluca755 opened this issue Jul 22, 2022 · 3 comments
Open

Doesn't work on Amazon Linux with gedit 3.28.1 #10

Gianluca755 opened this issue Jul 22, 2022 · 3 comments

Comments

@Gianluca755
Copy link

It doesn't work and causes a reset of the gedit configuration.

@lwindolf
Copy link
Owner

Can you give more details regarding the configuration reset?

@Gianluca755
Copy link
Author

I install the plugin with the instructions on GitHub. Plugin installer is present in the plugin list in gedit.
If I select it I got plugin loader 'python3' was not found, found this with setting Loader=python but no result, tried 2to3 on the code but it failed with:

RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: No changes to appactivatable.py
Traceback (most recent call last):
  File "/bin/2to3", line 5, in <module>
    sys.exit(main("lib2to3.fixes"))
  File "/usr/lib64/python3.7/lib2to3/main.py", line 259, in main
    options.processes)
  File "/usr/lib64/python3.7/lib2to3/refactor.py", line 687, in refactor
    items, write, doctests_only)
  File "/usr/lib64/python3.7/lib2to3/refactor.py", line 282, in refactor
    self.refactor_file(dir_or_file, write, doctests_only)
  File "/usr/lib64/python3.7/lib2to3/refactor.py", line 728, in refactor_file
    *args, **kwargs)
  File "/usr/lib64/python3.7/lib2to3/refactor.py", line 322, in refactor_file
    input, encoding = self._read_python_source(filename)
  File "/usr/lib64/python3.7/lib2to3/refactor.py", line 318, in _read_python_source
    return f.read(), encoding
  File "/usr/lib64/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 1: invalid continuation byte

It is probably my fault due to some config.

@lwindolf
Copy link
Owner

I think switching the loader won't help. Sadly I cannot help with how to install necessary dependencies on Amazon Linux.

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