-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
make install success.
claude code cli is ok.
make start please help.
$ make start
uvicorn claude_code_api.main:app --host 0.0.0.0 --port 8000 --reload --reload-exclude="*.db*" --reload-exclude="*.log"
INFO: Will watch for changes in these directories: ['/Users/apple/Downloads/n8n/claude-code-api']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [10178] using WatchFiles
INFO: Started server process [10180]
INFO: Waiting for application startup.
ERROR: Traceback (most recent call last):
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/fastapi/routing.py", line 134, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/fastapi/routing.py", line 134, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/fastapi/routing.py", line 134, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/fastapi/routing.py", line 134, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/claude_code_api/main.py", line 57, in lifespan
await create_tables()
File "/Users/apple/Downloads/n8n/claude-code-api/claude_code_api/core/database.py", line 120, in create_tables
async with engine.begin() as conn:
File "/opt/homebrew/Cellar/[email protected]/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/engine.py", line 1066, in begin
async with conn:
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/base.py", line 121, in __aenter__
return await self.start(is_ctxmanager=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/engine.py", line 274, in start
await greenlet_spawn(self.sync_engine.connect)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/sqlalchemy/util/concurrency.py", line 99, in greenlet_spawn
_not_implemented()
File "/Users/apple/Downloads/n8n/claude-code-api/myenv/lib/python3.11/site-packages/sqlalchemy/util/concurrency.py", line 79, in _not_implemented
raise ValueError(
ValueError: the greenlet library is required to use this function. No module named 'greenlet'
ERROR: Application startup failed. Exiting.
Metadata
Metadata
Assignees
Labels
No labels