ykdojo / kaguya

A ChatGPT plugin that allows you to load and edit your local files in a controlled way, as well as run any Python, JavaScript, and bash script.
http://kaguya.ai/
MIT License
1.2k stars 191 forks source link

ERROR: failed to solve: executor failed running #43

Open Ctrl-Alt-Rage opened 12 months ago

Ctrl-Alt-Rage commented 12 months ago

I've been trying to run this and for the life of me I cannot figure out a fix. I'm positive I'm overlooking something.

This is the output when I run the docker.sh:

0.72 Setting up python3.9-minimal (3.9.2-1) ...
30.79 Traceback (most recent call last):
30.79   File "/usr/lib/python3.9/py_compile.py", line 215, in <module>
30.79     sys.exit(main())
30.79   File "/usr/lib/python3.9/py_compile.py", line 207, in main
30.79     compile(filename, doraise=True)
30.79   File "/usr/lib/python3.9/py_compile.py", line 172, in compile
30.79     importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)
30.79   File "<frozen importlib._bootstrap_external>", line 126, in _write_atomic
30.79 PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.9/__pycache__/__future__.cpython-39.pyc.139771950211344'
30.79 dpkg: error processing package python3.9-minimal (--configure):
30.79  installed python3.9-minimal package post-installation script subprocess returned error exit status 1
30.80 Errors were encountered while processing:
30.80  python3.9-minimal
30.85 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
ERROR: failed to solve: executor failed running [/bin/sh -c apt-get update &&     apt-get install -y wget gnupg &&     wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&     echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list &&     apt-get update &&     apt-get install -y     python3 python3-pip git curl build-essential gfortran ffmpeg firefox-esr unzip     google-chrome-stable &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*]: exit code: 100
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.

It seemed to keep hanging and erroring out at:

=> [ 6/16] RUN apt-get update && apt-get install -y python3 python3-pip git curl build-essential gfortran && apt-get clean && rm -rf /var/lib/apt/lists/*

Any ideas on what could be going on?

Ctrl-Alt-Rage commented 12 months ago

I ended up trying to run it on Windows and got a similar error.

I ended up putting in:

RUN npm cache clean --force

Right before the npm install so it looks like this:

# Install Node.js dependencies
RUN npm cache clean --force
RUN npm install

This seems to be working now. I'm on step 12/16.