Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup using the langgraph studio #10

Open
linux-devil opened this issue Jan 6, 2025 · 2 comments
Open

Unable to setup using the langgraph studio #10

linux-devil opened this issue Jan 6, 2025 · 2 comments

Comments

@linux-devil
Copy link

langgraph-api-1 has been recreated
 Container memory-template-c608941b2d062dacf17b750d610afd16725668ff41777cb37248440a3a3dc536-langgraph-api-1  Recreated
        ⦿ Watch enabled
Attaching to langgraph-api-1, langgraph-postgres-1, langgraph-redis-1
langgraph-api-1       | LANGSMITH_LANGGRAPH_DESKTOP is set. Running uvicorn with --reload flag...
langgraph-api-1       | LANGSMITH_LANGGRAPH_DESKTOP is set. Running uvicorn with --reload flag...
langgraph-api-1       | info | Will watch for changes in these directories: ['/Users/harshit/workspace/memory-template']
langgraph-api-1       | info | Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
langgraph-api-1       | info | Started reloader process [1] using StatReload
langgraph-api-1       | info | Will watch for changes in these directories: ['/Users/harshit/workspace/memory-template']
langgraph-api-1       | info | Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
langgraph-api-1       | info | Started reloader process [1] using StatReload
langgraph-api-1       | info | Using auth of type=noop
langgraph-api-1       | info | Started server process [9]
langgraph-api-1       | info | Waiting for application startup.
langgraph-api-1       | warning | No license key found, running in test mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment.
langgraph-api-1       | info | Using auth of type=noop
langgraph-api-1       | info | Started server process [9]
langgraph-api-1       | info | Waiting for application startup.
langgraph-api-1       | warning | No license key found, running in test mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment.
langgraph-api-1       | info | HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK"
langgraph-api-1       | warning | /api/langgraph_api/graph.py:470: LangChainBetaWarning: The function `init_embeddings` is in beta. It is actively being worked on, so the API may change.

langgraph-api-1       | info | HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK"
langgraph-api-1       | warning | /api/langgraph_api/graph.py:470: LangChainBetaWarning: The function `init_embeddings` is in beta. It is actively being worked on, so the API may change.

langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] ERROR:  extension "vector" is not available
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] DETAIL:  Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory.
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] HINT:  The extension must first be installed on the system where PostgreSQL is running.
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] STATEMENT:  
langgraph-postgres-1  | 	CREATE EXTENSION IF NOT EXISTS vector;
langgraph-postgres-1  | 	
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] ERROR:  extension "vector" is not available
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] DETAIL:  Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory.
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] HINT:  The extension must first be installed on the system where PostgreSQL is running.
langgraph-postgres-1  | 2025-01-06 11:59:29.794 UTC [1868] STATEMENT:  
langgraph-postgres-1  | 	CREATE EXTENSION IF NOT EXISTS vector;
langgraph-postgres-1  | 	
langgraph-api-1       | info | Setting up vector index
langgraph-api-1       | error | Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 693, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/api/langgraph_api/lifespan.py", line 29, in lifespan
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/database.py", line 149, in start_pool
    await migrate_vector_index()
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/database.py", line 138, in migrate_vector_index
    await lg_store.setup_vector_index(store)
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/store.py", line 94, in setup_vector_index
    await cur.execute(sql)
  File "/usr/local/lib/python3.11/site-packages/psycopg/cursor_async.py", line 97, in execute
    raise ex.with_traceback(None)
psycopg.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.

langgraph-api-1       | error | Application startup failed. Exiting.
langgraph-api-1       | info | Setting up vector index
langgraph-api-1       | error | Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 693, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/api/langgraph_api/lifespan.py", line 29, in lifespan
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/database.py", line 149, in start_pool
    await migrate_vector_index()
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/database.py", line 138, in migrate_vector_index
    await lg_store.setup_vector_index(store)
  File "/usr/local/lib/python3.11/site-packages/langgraph_storage/store.py", line 94, in setup_vector_index
    await cur.execute(sql)
  File "/usr/local/lib/python3.11/site-packages/psycopg/cursor_async.py", line 97, in execute
    raise ex.with_traceback(None)
psycopg.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.

langgraph-api-1       | error | Application startup failed. Exiting.

I tried reinstalling the postgresql , but still the same issue

@linux-devil
Copy link
Author

some issue while running this on mac , however , it worked on ubuntu

@tioans
Copy link

tioans commented Jan 16, 2025

Same issue on mac. @linux-devil, were you able to find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants