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

升级至 0.15.0 版本及以上后出现 unrecognized arguments 及 SyntaxError: unterminated string literal #34

Closed
WilliamK7 opened this issue Jan 11, 2025 · 4 comments · Fixed by #35
Assignees
Labels
bug Something isn't working

Comments

@WilliamK7
Copy link

WilliamK7 commented Jan 11, 2025

python 版本 3.10.14
从 0.15.0 版本起出现问题

PS C:\Users\WilliamKing> pip install mw2fcitx==0.15.0
Successfully installed mw2fcitx-0.15.0

PS C:\Users\WilliamKing> mw2fcitx
usage: Fetch titles from online and generate a dictionary.
mw2fcitx: error: unrecognized arguments: C:\Users\WilliamKing\miniconda3\Scripts\mw2fcitx


PS C:\Users\WilliamKing> pip install mw2fcitx==0.16.0
Successfully installed mw2fcitx-0.16.0

PS C:\Users\WilliamKing> mw2fcitx
Traceback (most recent call last):
  File "C:\Users\WilliamKing\miniconda3\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\WilliamKing\miniconda3\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\WilliamKing\miniconda3\Scripts\mw2fcitx.exe\__main__.py", line 4, in <module>
  File "C:\Users\WilliamKing\miniconda3\lib\site-packages\mw2fcitx\main.py", line 9, in <module>
    from .build_dict import build
  File "C:\Users\WilliamKing\miniconda3\lib\site-packages\mw2fcitx\build_dict.py", line 4, in <module>
    from .pipeline import MWFPipeline
  File "C:\Users\WilliamKing\miniconda3\lib\site-packages\mw2fcitx\pipeline.py", line 6, in <module>
    from .fetch import fetch_all_titles
  File "C:\Users\WilliamKing\miniconda3\lib\site-packages\mw2fcitx\fetch.py", line 79
    data = http.request("GET", api_url + f"?action=query&list=allpages&format=json&aplimit={aplimit}&apcontinue={
                                         ^
SyntaxError: unterminated string literal (detected at line 79)
PS C:\Users\WilliamKing> python --version
Python 3.10.14

安装部分已省略
0.14.3 版本可正常使用

@WilliamK7 WilliamK7 changed the title SyntaxError: unterminated string literal 升级至 0.15.0 版本以上后出现 unrecognized arguments 及 SyntaxError: unterminated string literal Jan 11, 2025
@WilliamK7 WilliamK7 changed the title 升级至 0.15.0 版本以上后出现 unrecognized arguments 及 SyntaxError: unterminated string literal 升级至 0.15.0 版本及以上后出现 unrecognized arguments 及 SyntaxError: unterminated string literal Jan 11, 2025
@outloudvi outloudvi added the bug Something isn't working label Jan 11, 2025
@outloudvi outloudvi self-assigned this Jan 11, 2025
@outloudvi
Copy link
Owner

outloudvi commented Jan 11, 2025

感谢报告两个问题!关于两个问题的具体细节:

unrecognized arguments

mw2fcitx 1.15.0 有一个 bug,导致程序无法使用;这个 bug 在 1.15.1 解决。考虑到可能产生的误解,我们会撤回 (yank) 1.15.0。

SyntaxError: unterminated string literal

多行 f-string 在 Python 3.12 才获得支持,因此目前的代码在 3.11 及更低版本会无法工作。我们会修改和推出新版本,并且增加对目前 PyPI 上所宣告支持版本的单元测试。

@outloudvi

This comment was marked as duplicate.

@WilliamK7
Copy link
Author

了解了,感谢开发者能及时跟进

@outloudvi
Copy link
Owner

0.18.0 已经发布,修正了无法在 Python 3.9-3.11 运行的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants