shadowsocksrr / electron-ssr

Shadowsocksr client using electron
MIT License
1.73k stars 510 forks source link

python: can't open file 主机名称和用户名混淆? #84

Closed dxyzx0 closed 3 years ago

dxyzx0 commented 4 years ago

Your os

ubuntu 20.04 LTS

The version of electron-ssr

0.2.7

What's the problem

重点在error那一行,我的文件目录里面并没有/home/abc-ubuntu这个文件夹,我的是/home/abc这个文件夹,应该是把主机名称和用户名搞混了。

App log here

5-01 15:36:26:750 [info] Kill client
2020-05-01 15:36:55:975 [info] last update time: Fri May 01 2020 15:36:55 GMT+0800 (CST)
2020-05-01 15:36:56:026 [info] Register shortcut: toggleWindow, Ctrl+Shift+W
2020-05-01 15:36:56:032 [info] run command: python /home/abc-ubuntu/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s ************** -p ***** -k ****** -m chacha20-ietf -O auth_sha1_v4 -o http_simple -g  ******************** -b 127.0.0.1 -l 1080
2020-05-01 15:36:56:037 [info] pac server listen at: 127.0.0.1:2333
2020-05-01 15:36:56:037 [info] http proxy server listen at: 127.0.0.1:1081
2020-05-01 15:36:56:082 [error] python: can't open file '/home/abc-ubuntu/.config/electron-ssr/shadowsocksr/shadowsocks/local.py': [Errno 2] No such file or directory

2020-05-01 15:36:56:087 [info] next subscribe update time: Sat May 02 2020 15:36:55 GMT+0800 (CST)
xVanTuring commented 4 years ago

为什么不试试prerelease版本的呢

已从 Outlook Mobilehttps://aka.ms/blhgte 发送


From: DingXiangYuanZhiXing notifications@github.com Sent: Friday, May 1, 2020 3:40:45 PM To: shadowsocksrr/electron-ssr electron-ssr@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [shadowsocksrr/electron-ssr] python: can't open file 主机名称和用户名混淆? (#84)

Your os The version of electron-ssr

0.2.7

What's the problem

重点在error那一行,我的文件目录里面并没有/home/abc-ubuntu这个文件夹,我的是'/home/abc'这个文件夹,应该是把主机名称和用户名搞混了。

App log here

5-01 15:36:26:750 [info] Kill client

2020-05-01 15:36:55:975 [info] last update time: Fri May 01 2020 15:36:55 GMT+0800 (CST)

2020-05-01 15:36:56:026 [info] Register shortcut: toggleWindow, Ctrl+Shift+W

2020-05-01 15:36:56:032 [info] run command: python /home/psw-ubuntu/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s hgh-hkg-iplc-500m.01.ns257798.yxyyxy.xyz -p 10091 -k ** -m chacha20-ietf -O auth_sha1_v4 -o http_simple -g upos-hz-mirrorwcsu.acgvideo.com -b 127.0.0.1 -l 1080

2020-05-01 15:36:56:037 [info] pac server listen at: 127.0.0.1:2333

2020-05-01 15:36:56:037 [info] http proxy server listen at: 127.0.0.1:1081

2020-05-01 15:36:56:082 [error] python: can't open file '/home/abc-ubuntu/.config/electron-ssr/shadowsocksr/shadowsocks/local.py': [Errno 2] No such file or directory

2020-05-01 15:36:56:087 [info] next subscribe update time: Sat May 02 2020 15:36:55 GMT+0800 (CST)

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/shadowsocksrr/electron-ssr/issues/84, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACVBICFFAS4F7RV5Q3FTVE3RPJ4H3ANCNFSM4MW5VEFA.

dxyzx0 commented 4 years ago

@xVanTuring 试过了,0.2.6 0.2.7 0.3.0-alpha5 都不行。 然后我自己删除了~/.config/electron-ssr,也还是不行。我在其他电脑上没有出现这个问题,应该就是其他电脑上我主机名和用户名取得是一样的。

2020-05-01 17:01:25:931 [info] python: can't open file '/home/abc-ubuntu/.config/electron-ssr/shadowsocksr/shadowsocks/local.py': [Errno 2] No such file or directory
xVanTuring commented 4 years ago

请问你用的是deb还是appimage

dxyzx0 commented 4 years ago

@xVanTuring deb. 我自己解决了。 原因是我在另外的电脑上使用的Export gui-config.json结果里面的ssrPath(绝对路径)也一并被导出了,应该使用相对路径才合适。我也不太懂具体细节。