GPT-SoVITS icon indicating copy to clipboard operation
GPT-SoVITS copied to clipboard

go-webui.bat在启动后报错,刚刚下载的时候明明正常打开的

Open MatthewHA233 opened this issue 1 year ago • 16 comments

D:\my files\GPT-SoVITS-beta0217fix>runtime\python.exe webui.py Traceback (most recent call last): File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\requests\models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\simplejson_init_.py", line 514, in loads return _default_decoder.decode(s) File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\simplejson\decoder.py", line 386, in decode obj, end = self.raw_decode(s) File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\simplejson\decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\my files\GPT-SoVITS-beta0217fix\webui.py", line 48, in import gradio as gr File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\gradio_init_.py", line 3, in import gradio.components as components File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\gradio\components.py", line 35, in from gradio.blocks import Block File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\gradio\blocks.py", line 33, in from gradio import ( File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\gradio\strings.py", line 37, in updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json() File "D:\my files\GPT-SoVITS-beta0217fix\runtime\lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

D:\my files\GPT-SoVITS-beta0217fix>pause image 估计是因为开过全局代理的原因,但是我关闭代理,重启了电脑,重新解压缩了,都没用

MatthewHA233 avatar Apr 27 '24 09:04 MatthewHA233

G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2>runtime\python.exe webui.py Traceback (most recent call last): File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\requests\models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\simplejson_init_.py", line 514, in loads return _default_decoder.decode(s) File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\simplejson\decoder.py", line 386, in decode obj, end = self.raw_decode(s) File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\simplejson\decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\webui.py", line 48, in import gradio as gr File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\gradio_init_.py", line 3, in import gradio.components as components File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\gradio\components.py", line 35, in from gradio.blocks import Block File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\gradio\blocks.py", line 33, in from gradio import ( File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\gradio\strings.py", line 37, in updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json() File "G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2\runtime\lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

G:\GPT-SoVITS\beta\GPT-SoVITS-beta0306fix2\GPT-SoVITS-beta0306fix2>pause 请按任意键继续. . . 今天突然这样了,有哪位大佬能够帮忙解释一下呢?

385766470 avatar Apr 27 '24 09:04 385766470

刚刚遇到了一样的问题

xuzhijiang avatar Apr 27 '24 10:04 xuzhijiang

刚刚遇到了一样的问题

如有解决方案,请告知一下,谢谢!

385766470 avatar Apr 27 '24 10:04 385766470

G:\AiTool\GPT-SoVITS>runtime\python.exe webui.py Traceback (most recent call last): File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\requests\models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\simplejson_init_.py", line 514, in loads return _default_decoder.decode(s) File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\simplejson\decoder.py", line 386, in decode obj, end = self.raw_decode(s) File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\simplejson\decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "G:\AiTool\GPT-SoVITS\webui.py", line 48, in import gradio as gr File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\gradio_init_.py", line 3, in import gradio.components as components File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\gradio\components.py", line 35, in from gradio.blocks import Block File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\gradio\blocks.py", line 33, in from gradio import ( File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\gradio\strings.py", line 37, in updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json() File "G:\AiTool\GPT-SoVITS\runtime\lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

G:\AiTool\GPT-SoVITS>pause 请按任意键继续. . .

我也遇见了,不会是某个依赖挂了吧

Liuxin4950 avatar Apr 27 '24 10:04 Liuxin4950

一样的报错

blackbulaji avatar Apr 27 '24 10:04 blackbulaji

其他人二次开发的还可以用,离谱

Liuxin4950 avatar Apr 27 '24 10:04 Liuxin4950

可能的解决方案(solution):

今天遇到一样的问题,应该是gadio包的string.py文件在申请更新内容时网络出现问题(应该是网站挂了) 只需要找到runtime\Lib\site-packages\gradio\strings.py,把下图绿色框内容注释掉就行了 image

# try:
#     updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json()
#     en.update(updated_messaging)
# except (
#     requests.ConnectionError,
#     requests.exceptions.ReadTimeout,
#     json.decoder.JSONDecodeError,
# ):  # Use default messaging
#     pass

alfredzhou1902 avatar Apr 27 '24 10:04 alfredzhou1902

这样吗?谢谢你,我试试

Liuxin4950 avatar Apr 27 '24 10:04 Liuxin4950

可以了,nb,我知道是啥玩意没了,就是找不到位置,大佬赛高

Liuxin4950 avatar Apr 27 '24 10:04 Liuxin4950

感谢大佬!刚刚遇到一模一样的问题!

stella0909 avatar Apr 27 '24 10:04 stella0909

好像已经能用了恢复正常了

MatthewHA233 avatar Apr 27 '24 11:04 MatthewHA233

可能的解决方案(solution):

今天遇到一样的问题,应该是gadio包的string.py文件在申请更新内容时网络出现问题(应该是网站挂了) 只需要找到runtime\Lib\site-packages\gradio\strings.py,把下图绿色框内容注释掉就行了 image

# try:
#     updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json()
#     en.update(updated_messaging)
# except (
#     requests.ConnectionError,
#     requests.exceptions.ReadTimeout,
#     json.decoder.JSONDecodeError,
# ):  # Use default messaging
#     pass
``

可能的解决方案(solution):

今天遇到一样的问题,应该是gadio包的string.py文件在申请更新内容时网络出现问题(应该是网站挂了) 只需要找到runtime\Lib\site-packages\gradio\strings.py,把下图绿色框内容注释掉就行了 image

# try:
#     updated_messaging = requests.get(MESSAGING_API_ENDPOINT, timeout=3).json()
#     en.update(updated_messaging)
# except (
#     requests.ConnectionError,
#     requests.exceptions.ReadTimeout,
#     json.decoder.JSONDecodeError,
# ):  # Use default messaging
#     pass

果然有效,谢谢大佬!

385766470 avatar Apr 28 '24 06:04 385766470

感谢楼上的指导,这就把整合包所有gradio联网语句注释掉,防止后续又出问题

RVC-Boss avatar Apr 28 '24 09:04 RVC-Boss

我连“runtime\python.exe webui.py”都运行不了,显示“runtime\python.exe”不是内部或外部命令,但问题是我做的其他的python开发都可以正常用python,python --version也没问题,就这个不行,也不知道为啥

jiehai4 avatar May 04 '24 04:05 jiehai4

E:\GPT\freegpt-webui>python run.py Traceback (most recent call last): File "E:\GPT\freegpt-webui\run.py", line 3, in from server.bp import bp File "E:\GPT\freegpt-webui\server\bp.py", line 1, in from flask import Blueprint ModuleNotFoundError: No module named 'flask'

E:\GPT\freegpt 显示这样是怎么回事呢

mraili1 avatar May 11 '24 15:05 mraili1

问错地方了,这不是GSV

XXXXRT666 avatar May 12 '24 19:05 XXXXRT666