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

报错 #9

Closed
youngda opened this issue Aug 20, 2018 · 11 comments
Closed

报错 #9

youngda opened this issue Aug 20, 2018 · 11 comments

Comments

@youngda
Copy link

youngda commented Aug 20, 2018

请选择: 1

1.启动服务
2.停止服务
3.重启服务
4.运行状态
5.运行日志

请选择: 1

Traceback (most recent call last):
File "/usr/local/shadowsocks/server.py", line 32, in
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay,
File "/usr/local/shadowsocks/../shadowsocks/tcprelay.py", line 32, in
from shadowsocks import encrypt, obfs, eventloop, shell, common, lru_cache, version
File "/usr/local/shadowsocks/../shadowsocks/obfs.py", line 39
return {"auth_aes128_md5", "auth_aes128_sha1",
^
SyntaxError: invalid syntax
Starting ShadowsocksR failed
ssrr服务启动成功!

@leitbogioro
Copy link
Owner

已修正,重新安装试试

@x0r2d2
Copy link

x0r2d2 commented Aug 20, 2018

@leitbogioro
Will you translate the options to the English?

@leitbogioro
Copy link
Owner

Emmm……I have this plan, wait for me to translate it.

@youngda
Copy link
Author

youngda commented Aug 21, 2018

@leitbogioro

3
该协议已不可抵御防火长城的重放攻击,不建议使用,是否要选择?(y/n)
y
新的协议为:auth_sha1_v4
ShadowsocksR is stopped
Traceback (most recent call last):
File "/usr/local/shadowsocks/server.py", line 32, in
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay,
File "/usr/local/shadowsocks/../shadowsocks/tcprelay.py", line 32, in
from shadowsocks import encrypt, obfs, eventloop, shell, common, lru_cache, version
File "/usr/local/shadowsocks/../shadowsocks/obfs.py", line 39
return {"auth_aes128_md5", "auth_aes128_sha1",
^
SyntaxError: invalid syntax
Starting ShadowsocksR failed

传输协议配置已完成!

@youngda
Copy link
Author

youngda commented Aug 21, 2018

是不是我系统问题?搬瓦工官方centos6

@leitbogioro
Copy link
Owner

在Ubuntu上测试未发现问题,我切换到CentOS 6环境试试看,强烈推荐Ubuntu 16.04环境

@leitbogioro
Copy link
Owner

@hybtoy English version of SSR.Go is released, please input
bash -c "$(curl -fsSL https://git.io/fAUCt)"
and then press enter to install.

@leitbogioro
Copy link
Owner

@youngda 经查明,是 ssr 源代码的语法错误,从主程序中的 obfs.py 文件内的第 39 行开始返回的协议列表,应当用列表(List)—— [] 括起来,而不是用字典(Dictionary)—— {},以上造成了CentOS环境下的运行错误,我去修改一下源代码,稍后重新打包上传

@youngda
Copy link
Author

youngda commented Aug 23, 2018

@leitbogioro 好的谢谢啦

@leitbogioro
Copy link
Owner

没啥问题了哈,没问题我关贴了。

@youngda
Copy link
Author

youngda commented Aug 28, 2018

缺了两个包wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install qrcode
pip install Image

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

3 participants