Petar Vukovic
Explore posts from serversInitialiaztion client in python
I added .env file in which are db_url,api_key.But when i in main.py initialize client i got File "C:\Users\pvukovic\Desktop\AI_projects\ChatDocko_demo\backend\main.py", line 7, in <module>
xata = XataClient(api_key=api_key, db_url=DB_URL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pvukovic\AppData\Local\miniconda3\envs\chatdocky\Lib\site-packages\xata\client.py", line 111, in init
) = self._get_workspace_id()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pvukovic\AppData\Local\miniconda3\envs\chatdocky\Lib\site-packages\xata\client.py", line 241, in _get_workspace_id
raise Exception(
Exception: No workspace ID found. Searched in
XATA_WORKSPACE_ID
env, ~/.config/xata/key
, and C:\Users\pvukovic\Desktop\AI_projects\ChatDocko_demo\backend\.env
.Can you give me steps to connect my schema project from xata with python in vs code?2 replies