xyuanmu / XX-Mini

:ghost: XX-Net 精简版
445 stars 126 forks source link

release of XX-Mini_linux_darwin_v1.3.2 get a problem #142

Closed ywaby closed 6 years ago

ywaby commented 6 years ago

release of XX-Mini_linux_darwin_v1.3.2 get a problem

Sep 28 14:07:00.820 - [ERROR] gae_handler.handler TypeError('__init__() takes exactly 4 arguments (5 given)',) https://easylist-downloads.adblockplus.org/easylistchina.txt , retry...
Sep 28 14:07:00.820 - [ERROR] Except stack:Traceback (most recent call last):
  File "/home/ywaby/下载/XX-Mini_linux_darwin_v1.3.2/lib.egg/gae_handler.py", line 265, in request_gae_proxy
    response = request_gae_server(request_headers, request_body, url)
  File "/home/ywaby/下载/XX-Mini_linux_darwin_v1.3.2/lib.egg/gae_handler.py", line 135, in request_gae_server
    response = http_dispatch.request(headers, body, url)
  File "/home/ywaby/下载/XX-Mini_linux_darwin_v1.3.2/lib.egg/http_dispatcher.py", line 180, in request
    task = http_common.Task(headers, body, q, url)
TypeError: __init__() takes exactly 4 arguments (5 given)
gkjgh commented 6 years ago

作者没在Linux上测试过。我用的是Manjaro Linux。同样的错误:

Sep 29 12:54:08.418 - [ERROR] gae_handler.handler TypeError('init() takes exactly 4 arguments (5 given)',) https://distrowatch.com/ , retry... Sep 29 12:54:08.418 - [ERROR] Except stack:Traceback (most recent call last): File "/run/media/HD/Applications/XX-Mini/lib.egg/gae_handler.py", line 265, in request_gae_proxy response = request_gae_server(request_headers, request_body, url) File "/run/media/HD/Applications/XX-Mini/lib.egg/gae_handler.py", line 135, in request_gae_server response = http_dispatch.request(headers, body, url) File "/run/media/HD/Applications/XX-Mini/lib.egg/http_dispatcher.py", line 180, in request task = http_common.Task(headers, body, q, url) TypeError: init() takes exactly 4 arguments (5 given)

但是Windows版没问题。问题可能出在python2上。搭建个Linux环境吧,用虚拟机也不难。

ywaby commented 6 years ago

我源代码跑也有同样问题,确实是多了一个参数,不知道什么情况

xyuanmu commented 6 years ago

稍等一下,正在修复

xyuanmu commented 6 years ago

可以了,重新下载即可。

ywaby commented 6 years ago

可以用了,谢了