TaskWeaver icon indicating copy to clipboard operation
TaskWeaver copied to clipboard

Docker

Open eternal8080 opened this issue 1 year ago • 1 comments

I input a prompt to write code for me,and occured the following error:

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

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')).

├─► [thought] ProgramApe will develop a Python function to remove duplicate elements from a sorted array in-place, ensuring that no element appears │ more than twice. The function will use O(1) extra space and will be tested with the provided examples. ├─► [reply_type] python ├─► [reply_content] def removeDuplicates(nums):\n if len(nums) <= 2:\n return len(nums)\n i = 2\n for j in range(2, len(nums)):\n │ if nums[j] != nums[i - 2]:\n nums[i] = nums[j]\n i += 1\n return i, nums[:i]\n\n# Test Example 1\nnums1 = [1, 1, │ 1, 2, 2, 3]\nlength1, modified_nums1 = removeDuplicates(nums1)\n\n# Test Example 2\nnums2 = [0, 0, 1, 1, 1, 1, 2, 3, 3]\nlength2, modified_nums2 = │ removeDuplicates(nums2)\n\nlength1, modified_nums1, length2, modified_nums2 ├─► [verification] NONE ├─► [code_error] No code verification is performed. ^CError: Interrupted by userer] executing code <=💡=>
how to fix thses problems? Is it because that I do not have a docker?

eternal8080 avatar Mar 14 '25 10:03 eternal8080

I experienced this when i'm running taskweaver as a library inside a container. After changing execution mode in config to local, it worked.

  "execution_service.kernel_mode": "local"

AmaliMatharaarachchi avatar May 05 '25 11:05 AmaliMatharaarachchi