opengpts
opengpts copied to clipboard
Errors Galore: ModuleNotFoundError: No module named 'langchain_google_vertexai
I manually installed the software to setup to run. My Environment pythong 3.10 MAC OS Sanoma 14.3 There were no errors on pip install -r requirements.txt Followed the instructions as given . cd backend pip install -r requirements.txt langchain serve --port=8100
INFO: Will watch for changes in these directories: ['/Users/randolphhill/govbotics/opengpt/newtest/opengpts/backend']
INFO: Uvicorn running on http://127.0.0.1:8100 (Press CTRL+C to quit)
INFO: Started reloader process [14149] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/local/Cellar/[email protected]/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/Cellar/[email protected]/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/Cellar/[email protected]/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/Users/randolphhill/govbotics/opengpt/newtest/opengpts/.venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/Cellar/[email protected]/3.10.13_2/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 "
same issue with conda, Python 3.11.7, on a up to date Mac.
How to fix ? Do I need to update to 3.11.7 ?
I was able to pip install that one... but then the next error came No module named 'langchain_community.agent_toolkits.connery'
and this one I get an error when trying to install via pip: Could not find a version that satisfies the requirement langchain_community.agent_toolkits.connery
What is the best course of action?
I was able to get past both... for the 2nd one i mentioned, had to upgrade to latest "langchain_community" pkg.