i am trying to import other modules in the agent.p...
# ask-ai
b
i am trying to import other modules in the agent.py file but i am unable to import the other modules (.venv) amansharma@test-MS-7D70:~/projects/voice_agent$ python3 -m teliphoney_agent_v2 start Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/amansharma/projects/voice_agent/teliphoney_agent_v2.py", line 26, in <module> from app.db_implementations.mongo_implementation import MongoDBClient ImportError: cannot import name 'MongoDBClient' from 'app.db_implementations.mongo_implementation' (/home/amansharma/projects/voice_agent/app/db_implementations/mongo_implementation.py)
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To get to the bottom of that ImportError with 'MongoDBClient', could you share a bit more info? • What's the exact error message you're seeing? • How are you currently importing 'MongoDBClient' in your code? • Are you working within a virtual environment? If yes, is it activated? • Which Python version and package versions (like pymongo) are you using? • Is this something new you're setting up, or did it used to work and just recently stopped? Sources: lerobot/configs/parser.py | livekit-agents/livekit/agents/resources/__init__.py