SeaHOH / GotoX

本地自动代理,修改自 goagent。
730 stars 148 forks source link

OpenWRT LEDE 安装debian后运行GotoX报错 #76

Open jlzsss opened 6 years ago

jlzsss commented 6 years ago

报错信息如下: root@Openwrt:/home/GotoX# python3 start.py Traceback (most recent call last): File "start.py", line 14, in proxy.main() File "/home/GotoX/local/proxy.py", line 257, in main sys.stdout.write(''.join(info)) UnicodeEncodeError: 'ascii' codec can't encode character '\u7248' in position 91: ordinal not in range(128)

SeaHOH commented 6 years ago

因为有中文,需要系统支持。

不然只能注释掉这句,并增加一句 logging.disable(50)

jlzsss commented 6 years ago

修改后,运行python3 start.py无反应 BusyBox v1.28.3 () built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| | | - || | -| || | | || || | |___|| |_||||____||| |__| |__| W I R E L E S S F R E E D O M

Openwrt Koolshare mod V2.17, r7469-92b40b1 by fw867

root@Openwrt:~# debian root@Openwrt:/# cd /home/GotoX root@Openwrt:/home/GotoX# ls GotoX.ico README.md cert config data launcher local python requirements.txt start.py web root@Openwrt:/home/GotoX# python3 start.py

SeaHOH commented 6 years ago

注释掉这句,并增加一句 logging.disable(50)

这相当于取消所有输出,如果这样端口也没有开始正常监听,我也没啥头绪。 毕竟我也没 LEDE 的使用经验,或许你可以去问问 #58 的楼主?

jlzsss commented 6 years ago

debian安装设置为zh_CN后,问题解决。

SeaHOH commented 6 years ago

谢谢你,提供这些信息。