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

run_gradio issue #98

Open
ShaneYuTH opened this issue Sep 26, 2023 · 0 comments
Open

run_gradio issue #98

ShaneYuTH opened this issue Sep 26, 2023 · 0 comments

Comments

@ShaneYuTH
Copy link

When I run multi_agent using run_gradio command, I will get:
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=89569)

Traceback (most recent call last):
File "/.../agents_pg/.venv/lib/python3.11/site-packages/psutil/_psosx.py", line 346, in wrapper
return fun(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../agents_pg/.venv/lib/python3.11/site-packages/psutil/_psosx.py", line 503, in connections
rawlist = cext.proc_connections(self.pid, families, types)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted (originated from proc_pidinfo(PROC_PIDLISTFDS) 1/2)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/.../agents/examples/Muti_Agent/software_company/run_gradio.py", line 5, in
from gradio_base import WebUI, UIHelper, PORT, HOST, Client
File "/.../agents_pg/agents/examples/Muti_Agent/software_company/../../Gradio_Config/gradio_base.py", line 91, in
PORT = check_port(PORT)
^^^^^^^^^^^^^^^^
File "/.../agents_pg/agents/examples/Muti_Agent/software_company/../../Gradio_Config/gradio_base.py", line 75, in check_port
if is_port_in_use(port+i) == False:
^^^^^^^^^^^^^^^^^^^^^^
File "/.../agents_pg/agents/examples/Muti_Agent/software_company/../../Gradio_Config/gradio_base.py", line 64, in is_port_in_use
for conn in psutil.net_connections():
^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../agents_pg/.venv/lib/python3.11/site-packages/psutil/init.py", line 2163, in net_connections
return _psplatform.net_connections(kind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../agents_pg/.venv/lib/python3.11/site-packages/psutil/_psosx.py", line 248, in net_connections
cons = Process(pid).connections(kind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../agents_pg/.venv/lib/python3.11/site-packages/psutil/_psosx.py", line 353, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=89569)

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

1 participant