Skip to content

Commit

Permalink
add psutils to rpc dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed May 21, 2024
1 parent c993e85 commit a3330b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"protobuf==4.25.0",
"expiringdict",
"dill",
"psutil",
]

service_requires = [
Expand Down
3 changes: 2 additions & 1 deletion src/agentscope/server/servicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import json
from concurrent import futures
from loguru import logger
import psutil

try:
import dill
import psutil
import grpc
from grpc import ServicerContext
from google.protobuf.empty_pb2 import Empty
Expand All @@ -20,6 +20,7 @@
from agentscope.utils.tools import ImportErrorReporter

dill = ImportErrorReporter(import_error, "distribute")
psutil = ImportErrorReporter(import_error, "distribute")
grpc = ImportErrorReporter(import_error, "distribute")
Empty = ImportErrorReporter( # type: ignore[misc]
import_error,
Expand Down

0 comments on commit a3330b6

Please sign in to comment.