microsoft / TaskWeaver

A code-first agent framework for seamlessly planning and executing data analytics tasks.
https://microsoft.github.io/TaskWeaver/
MIT License
5.19k stars 661 forks source link

Gemini API error #270

Closed sangeet000007 closed 5 months ago

sangeet000007 commented 5 months ago

i am using gemini pro api and taskweaver in google colab i get the following error

File "/content/TaskWeaver/taskweaver/ces/environment.py", line 145, in init raise docker.errors.DockerException(f"Failed to connect to Docker daemon: {e}. ") docker.errors.DockerException: Failed to connect to Docker daemon: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')).

i put api json file in correct directory and i have checked api with curl its working

liqul commented 5 months ago

We have switched to running code inside docker container by default. It seems that you haven't install docker on your machine. So, please either install docker or switch to the local mode. Check this document https://microsoft.github.io/TaskWeaver/docs/advanced/code_execution

sangeet000007 commented 5 months ago

i am using google colab and i have not installed docker and i cant find how to switch to local mode so kindly provide the instruction to set local mode

liqul commented 5 months ago

set "execution_service.kernel_mode"="local" in your config file

sangeet000007 commented 5 months ago

set in project/taskweaver_config.json issue resolved

sangeet000007 commented 5 months ago

.