Shaunwei / RealChar

🎙️🤖Create, Customize and Talk to your AI Character/Companion in Realtime (All in One Codebase!). Have a natural seamless conversation with AI everywhere (mobile, web and terminal) using LLM OpenAI GPT3.5/4, Anthropic Claude2, Chroma Vector DB, Whisper Speech2Text, ElevenLabs Text2Speech🎙️🤖
https://RealChar.ai/
MIT License
5.94k stars 727 forks source link

python3.10 cli.py run-uvicorn error #487

Closed dappbujiujiu closed 9 months ago

dappbujiujiu commented 9 months ago

Running uvicorn server... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/uvicorn", line 8, in sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/main.py", line 416, in main run( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/main.py", line 587, in run server.run() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve config.load() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/config.py", line 467, in load self.loaded_app = import_from_string(self.app) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string raise exc from None File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/songchao/project/RealChar/realtime_ai_character/main.py", line 10, in from realtime_ai_character.audio.speech_to_text import get_speech_to_text File "/Users/songchao/project/RealChar/realtime_ai_character/audio/speech_to_text/init.py", line 3, in from realtime_ai_character.audio.speech_to_text.base import SpeechToText File "/Users/songchao/project/RealChar/realtime_ai_character/audio/speech_to_text/base.py", line 2, in from realtime_ai_character.utils import timed File "/Users/songchao/project/RealChar/realtime_ai_character/utils.py", line 6, in from langchain.schema import AIMessage, BaseMessage, HumanMessage, SystemMessage File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/schema/init.py", line 28, in from langchain.schema.output_parser import ( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/schema/output_parser.py", line 27, in from langchain.schema.runnable import RunnableConfig, RunnableSerializable File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/schema/runnable/init.py", line 1, in from langchain.schema.runnable._locals import GetLocalVar, PutLocalVar File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/schema/runnable/_locals.py", line 14, in from langchain.schema.runnable.base import Input, Output, RunnableSerializable File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/schema/runnable/base.py", line 72, in from langchain.utils.aiter import atee, py_anext File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/utils/init.py", line 17, in from langchain.utils.utils import ( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/utils/utils.py", line 10, in from packaging.version import parse ModuleNotFoundError: No module named 'packaging'

help me