xszyou / Fay

Fay is an open-source digital human framework integrating language models and digital characters. It offers retail, assistant, and agent versions for diverse applications like virtual shopping guides, broadcasters, assistants, waiters, teachers, and voice or text-based mobile assistants.
GNU General Public License v3.0
8.96k stars 1.77k forks source link

mac 上运行之后,白屏窗口显示Access to 127.0.0.1 was denied #83

Closed zxconan closed 10 months ago

zxconan commented 10 months ago
image

控制台输出:

pygame 2.1.3 (SDL 2.0.22, Python 3.11.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
Exception in thread Thread-4 (run):
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/zhangxin/workspace/github/Fay/gui/flask_server.py", line 140, in run
    server.serve_forever()
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/baseserver.py", line 398, in serve_forever
    self.start()
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/baseserver.py", line 336, in start
    self.init_socket()
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/pywsgi.py", line 1545, in init_socket
    StreamServer.init_socket(self)
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/server.py", line 180, in init_socket
    self.socket = self.get_listener(self.address, self.backlog, self.family)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/server.py", line 192, in get_listener
    return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/server.py", line 288, in _tcp_listener
    sock.bind(address)
  File "/opt/homebrew/lib/python3.11/site-packages/gevent/_socketcommon.py", line 563, in bind
    return self._sock.bind(address)
           ^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 48] Address already in use: ('0.0.0.0', 5000)
Exception in thread Thread-3 (__runnable):
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/zhangxin/workspace/github/Fay/ai_module/ali_nls.py", line 39, in __runnable
    __post_token()
  File "/Users/zhangxin/workspace/github/Fay/ai_module/ali_nls.py", line 34, in __post_token
    _token = json.loads(__client.do_action_with_exception(__request))['Token']['Id']
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/aliyunsdkcore/client.py", line 429, in do_action_with_exception
    raise exception
aliyunsdkcore.acs_exception.exceptions.ServerException: HTTP Status: 400 Error:MissingAccessKeyId AccessKeyId is mandatory for this action. RequestID: E2D1F698-E9D8-5A4B-ACA8-4E8050F826B8
2023-12-08 15:50:03.974 Python[44693:2030152] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
zxconan commented 10 months ago
image