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

两个模块载入有问题, #5

Open
Walkman1W opened this issue Oct 23, 2024 · 1 comment
Open

两个模块载入有问题, #5

Walkman1W opened this issue Oct 23, 2024 · 1 comment

Comments

@Walkman1W
Copy link

模块载入有问题:
main.py
from agora_realtime_ai_api.rtc import RtcEngine, RtcOptions
找不到 agora_realtime_ai_api

agent.py
from agora.rtc.rtc_connection import RTCConnection, RTCConnInfo
from attr import dataclass

from agora_realtime_ai_api.rtc import Channel, ChatMessage, RtcEngine, RtcOptions
找不到 agora , agora_realtime_ai_api

运行:python -m realtime_agent.main server

报错:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Code\OpenAI\openai-realtime-python\realtime_agent\main.py", line 13, in
from .agent import InferenceConfig, RealtimeKitAgent
File "C:\Code\OpenAI\openai-realtime-python\realtime_agent\agent.py", line 8, in
from agora.rtc.rtc_connection import RTCConnection, RTCConnInfo
ModuleNotFoundError: No module named 'agora.rtc.rtc_connection'

image
image
image
image

@plutoless
Copy link
Contributor

have you tried install depdencies in requirements.txt?

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

2 participants