因为该项目的python脚本里面有访问https://github.com/和https://raw.githubusercontent.com/,而这两个网址在国内访问很不稳定。如果遇到下面的报错,说明是网络问题,多试几次就好了。
Traceback (most recent call last):
File "swapper.py", line 192, in <module>
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 525, in open
File "urllib\request.py", line 634, in http_response
File "urllib\request.py", line 563, in error
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 643, in http_error_default
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
[PYI-10772:ERROR] Failed to execute script 'swapper' due to unhandled exception!
Traceback (most recent call last):
File "swapper.py", line 192, in <module>
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 519, in open
File "urllib\request.py", line 536, in _open
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 1391, in https_open
File "urllib\request.py", line 1352, in do_open
File "http\client.py", line 1374, in getresponse
File "http\client.py", line 318, in begin
File "http\client.py", line 287, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response
[PYI-9948:ERROR] Failed to execute script 'swapper' due to unhandled exception!
被转换的exe的目录下必须要有LICENSE.electron.txt和LICENSES.chromium.html这两个文件。如果没有,那么必须用记事本新建空白的同名文件。