Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep getting this error while attempting to run the webconverter.py script. Tried it on both Windows and Linux. #45

Open
Olum0G opened this issue Sep 12, 2022 · 1 comment

Comments

@Olum0G
Copy link

Olum0G commented Sep 12, 2022

Traceback (most recent call last):
File "/home/kali/ESPBug/web_converter/webConverter.py", line 8, in
from css_html_js_minify.minify import process_single_html_file, process_single_js_file, process_single_css_file
File "/home/kali/ESPBug/web_converter/css_html_js_minify/init.py", line 13, in
from .minify import (process_single_html_file, process_single_js_file,
File "/home/kali/ESPBug/web_converter/css_html_js_minify/minify.py", line 30, in
from anglerfish import (check_encoding, check_folder, make_logger,
File "/usr/local/lib/python3.10/dist-packages/anglerfish/init.py", line 32, in
from anglerfish.get_clipboard import get_clipboard # noqa
File "/usr/local/lib/python3.10/dist-packages/anglerfish/get_clipboard.py", line 18, in
Clipboard = NamedTuple("Clipboard", fields=(("copy", callable),
File "/usr/lib/python3.10/typing.py", line 2324, in NamedTuple
return _make_nmtuple(typename, fields, module=module)
File "/usr/lib/python3.10/typing.py", line 2249, in _make_nmtuple
types = {n: _type_check(t, f"field {n} annotation must be a type")
File "/usr/lib/python3.10/typing.py", line 2249, in
types = {n: _type_check(t, f"field {n} annotation must be a type")
File "/usr/lib/python3.10/typing.py", line 176, in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: field fields annotation must be a type Got (('copy', ), ('paste', )).

@viplameo
Copy link

After a few tests, I found a way to fix this error:
step 1: install python 3.7 + "anglerfish"
step 2: no step 2

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

No branches or pull requests

2 participants