-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi there, I'm running into an issue when I try to run this extension in an instance of Textgen Web UI that is itself inside docker.
text-generation-webui-text-generation-webui-1 | 19:53:51-422892 ERROR Failed to load the extension "Memoir".
text-generation-webui-text-generation-webui-1 | Traceback (most recent call last):
text-generation-webui-text-generation-webui-1 | File "/home/app/text-generation-webui/modules/extensions.py", line 37, in load_extensions
text-generation-webui-text-generation-webui-1 | extension = importlib.import_module(f"extensions.{name}.script")
text-generation-webui-text-generation-webui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
text-generation-webui-text-generation-webui-1 | File "/home/app/text-generation-webui/installer_files/env/lib/python3.11/importlib/__init__.py", line 126, in import_module
text-generation-webui-text-generation-webui-1 | return _bootstrap._gcd_import(name[level:], package, level)
text-generation-webui-text-generation-webui-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap_external>", line 940, in exec_module
text-generation-webui-text-generation-webui-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
text-generation-webui-text-generation-webui-1 | File "/home/app/text-generation-webui/extensions/Memoir/script.py", line 23, in <module>
text-generation-webui-text-generation-webui-1 | from python_on_whales import DockerClient
text-generation-webui-text-generation-webui-1 | ModuleNotFoundError: No module named 'python_on_whales'
As you can see, I made sure to manually install all the reqs in my dockerfile:
# BUILDER
FROM ubuntu:22.04
WORKDIR /builder
ARG TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX}"
ARG BUILD_EXTENSIONS="${BUILD_EXTENSIONS:-}"
ARG APP_UID="${APP_UID:-6972}"
ARG APP_GID="${APP_GID:-6972}"
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,rw \
apt update && \
apt install --no-install-recommends -y git vim build-essential python3-dev pip bash curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /home/app/
RUN git clone https://github.com/oobabooga/text-generation-webui.git
WORKDIR /home/app/text-generation-webui
RUN GPU_CHOICE=A USE_CUDA118=FALSE LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
COPY CMD_FLAGS.txt /home/app/text-generation-webui/
RUN pip install python_on_whales textblob validators qdrant_client sentence_transformers
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
WORKDIR /home/app/text-generation-webui
# set umask to ensure group read / write at runtime
CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh --listen
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels