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

raise socket.error, "Tunnel connection failed: %d %s" % (code, message.strip()) #949

Closed
5 tasks
Fcscanf opened this issue Sep 24, 2021 · 0 comments
Closed
5 tasks

Comments

@Fcscanf
Copy link

Fcscanf commented Sep 24, 2021

在提交前,请确保您已经检查了以下内容!

  • 您可以在浏览器中登陆微信账号,但不能使用itchat登陆
  • 我已经阅读并按文档 中的指引进行了操作
  • 您的问题没有在issues报告,否则请在原有issue下报告
  • 本问题确实关于itchat, 而不是其他项目.
  • 如果你的问题关于稳定性,建议尝试对网络稳定性要求极低的itchatmp项目

请使用itchat.run(debug=True)运行,并将输出粘贴在下面:

[在这里粘贴完整日志]
Traceback (most recent call last):
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\wx\analysis_friends.py", line 1, in <module>
    import itchat
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\venv\lib\site-packages\itchat\__init__.py", line 2, in <module>
    from .core import Core
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\venv\lib\site-packages\itchat\core.py", line 6, in <module>
    from .components import load_components
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\venv\lib\site-packages\itchat\components\__init__.py", line 3, in <module>
    from .login import load_login
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\venv\lib\site-packages\itchat\components\login.py", line 7, in <module>
    from httplib import BadStatusLine
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\PythonProject\venv\lib\site-packages\httplib.py", line 676
    raise socket.error, "Tunnel connection failed: %d %s" % (code, message.strip())
                      ^
SyntaxError: invalid syntax

您的itchat版本为:[在这里填写版本号]。(可通过python -c "import itchat;print(itchat.__version__)"获取)
image
获取版本时也出现了同样的报错:

❯ python -c "import itchat;print(itchat.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\pythonProject\venv\lib\site-packages\itchat\__init__.py", line 2, in <module>
    from .core import Core
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\pythonProject\venv\lib\site-packages\itchat\core.py", line 6, in <module>
    from .components import load_components
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\pythonProject\venv\lib\site-packages\itchat\components\__init__.py", line 3, in <module>
    from .login import load_login
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\pythonProject\venv\lib\site-packages\itchat\components\login.py", line 7, in <module>
    from httplib import BadStatusLine
  File "D:\LinkSpace\Work\WorkSpace\Code\PyCharm\pythonProject\venv\lib\site-packages\httplib.py", line 676
    raise socket.error, "Tunnel connection failed: %d %s" % (code, message.strip())
                      ^

其他的内容或者问题更详细的描述都可以添加在下面:

[您的内容]

@Fcscanf Fcscanf closed this as completed Sep 24, 2021
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