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

dist下youdao_get 翻译 带有 / 的内容报错 #7

Open
WN90 opened this issue Nov 21, 2021 · 0 comments
Open

dist下youdao_get 翻译 带有 / 的内容报错 #7

WN90 opened this issue Nov 21, 2021 · 0 comments

Comments

@WN90
Copy link

WN90 commented Nov 21, 2021

youdao_get.py yd_get.py都没有任何问题, dist/youdao_get则报错,不清楚为什么,反馈一下

系统ubuntu 21.10

下面的 a/b 是带有/的内容,用youdao_get.py yd_get.py都没有任何问题

$ dist/youdao_get 'a/b'
Traceback (most recent call last):
  File "youdao_get.py", line 39, in <module>
    word = word.replace("/", "/")       # url 方式要过滤掉 / 换成全角
  File "urllib/request.py", line 163, in urlopen
  File "urllib/request.py", line 472, in open
  File "urllib/request.py", line 582, in http_response
  File "urllib/request.py", line 510, in error
  File "urllib/request.py", line 444, in _call_chain
  File "urllib/request.py", line 590, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found
[20681] Failed to execute script youdao_get
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

1 participant