You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.
File "C:\Python311\Lib\site-packages\starlette\routing.py", line 693, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "C:\Python311\Lib\contextlib.py", line 204, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\langgraph_api\lifespan.py", line 30, in lifespan
await collect_graphs_from_env(True)
File "C:\Python311\Lib\site-packages\langgraph_api\graph.py", line 257, in collect_graphs_from_env
graph = await run_in_executor(None, _graph_from_spec, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\langchain_core\runnables\config.py", line 588, in run_in_executor
return await asyncio.get_running_loop().run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\langchain_core\runnables\config.py", line 579, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\langgraph_api\graph.py", line 295, in _graph_from_spec
modspec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "D:\projects\forexdropoff\react-agent\./src/react_agent/graph.py", line 14, in<module>
from react_agent.configuration import Configuration
ModuleNotFoundError: No module named 'react_agent'
Could not import python module for graph:
GraphSpec(id='agent', path='./src/react_agent/graph.py', module=None, variable='graph', config=None)
This error likely means you haven't installed your project and its dependencies yet. Before running the server, install your project:If you are using requirements.txt:python -m pip install -r requirements.txtIf you are using pyproject.toml or setuptools:python -m pip install -e .Make sure to run this command from your project's root directory (where your setup.py or pyproject.toml is located)
[uvicorn.error] api_variant=local_dev
2025-01-19T02:33:06.962480Z [error ] Application startup failed. Exiting. [uvicorn.error] api_variant=local_dev
Description
I am trying to run the template on the local server.
Despite following the docs the same error is triggering. I have tried to fix the packages but have not been able to go around.
System Info
System Information
OS: Windows
OS Version: 10.0.22631
Python Version: 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to run the template on the local server.
Despite following the docs the same error is triggering. I have tried to fix the packages but have not been able to go around.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: