Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build error #101

Open
sudoshi opened this issue Nov 29, 2023 · 6 comments
Open

Failed to build error #101

sudoshi opened this issue Nov 29, 2023 · 6 comments

Comments

@sudoshi
Copy link

sudoshi commented Nov 29, 2023

failed to solve: process "/bin/sh -c pip install --upgrade -r requirements.txt" did not complete successfully: exit code: 1

On Linux Mint

Please see attach file for the output of docker compose --profile linux up

genai-stack failed to build error.txt

@sudoshi
Copy link
Author

sudoshi commented Nov 30, 2023

In short, here is how/when it fails:

`237.9 Successfully built sentence_transformers wikipedia neo4j lit
238.8 Installing collected packages: sentencepiece, pytz, mpmath, lit, cmake, zipp, watchdog, validators, urllib3, tzlocal, tzdata, tqdm, tornado, toolz, toml, threadpoolctl, sympy, soupsieve, smmap, six, scipy, safetensors, rpds-py, regex, python-dotenv, PyPDF2, pygments, pyarrow, protobuf, Pillow, nvidia-nvtx-cu11, nvidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, networkx, neo4j, mdurl, MarkupSafe, joblib, jmespath, h11, fsspec, filelock, click, cachetools, blinker, uvicorn, starlette, scikit-learn, referencing, python-dateutil, nvidia-cusolver-cu11, nvidia-cudnn-cu11, nltk, markdown-it-py, jinja2, importlib-metadata, gitdb, beautifulsoup4, wikipedia, tiktoken, rich, pydeck, pandas, openai, jsonschema-specifications, huggingface-hub, gitpython, fastapi, botocore, tokenizers, sse-starlette, s3transfer, jsonschema, transformers, boto3, altair, streamlit, triton, torch, torchvision, sentence_transformers
240.1 Attempting uninstall: urllib3
240.1 Found existing installation: urllib3 2.1.0
240.1 Uninstalling urllib3-2.1.0:
240.1 ERROR: Could not install packages due to an OSError: [Errno 22] Invalid argument: 'licenses'
240.1
240.1 WARNING: Ignoring invalid distribution ~rllib3 (/usr/local/lib/python3.11/site-packages)
240.1 WARNING: Ignoring invalid distribution ~rllib3 (/usr/local/lib/python3.11/site-packages)
240.2 WARNING: Ignoring invalid distribution ~rllib3 (/usr/local/lib/python3.11/site-packages)
240.2
240.2 [notice] A new release of pip is available: 23.2.1 -> 23.3.1
240.2 [notice] To update, run: pip install --upgrade pip

failed to solve: process "/bin/sh -c pip install --upgrade -r requirements.txt" did not complete successfully: exit code: 1
`

@sudoshi
Copy link
Author

sudoshi commented Nov 30, 2023

I just tried on my Mac (Ventura 13.6) and it worked flawlessly on first run. Now the api refuse to come up no matter which model I chose:
Screenshot 2023-11-30 at 2 51 14 AM

@morrowbord
Copy link

morrowbord commented Dec 11, 2023

i have some issue to buil docker containerin win11+docker, please help) :

32.15 ldconfig: File /lib/x86_64-linux-gnu/libperl.so.5.36.0 is empty, not checked.
32.15 ldconfig: File /lib/x86_64-linux-gnu/libapr-1.so.0.7.2 is empty, not checked.
32.18 Processing triggers for sgml-base (1.31) ...
32.20 Setting up polkitd (122-3) ...
32.23 Creating group 'polkitd' with GID 996.
32.23 Creating user 'polkitd' (polkit) with UID 996 and GID 996.
32.28 invoke-rc.d: could not determine current runlevel
32.28 invoke-rc.d: policy-rc.d denied execution of reload.
32.41 start-stop-daemon: unable to stat /usr/libexec/polkitd (No such file or directory)
32.41 Setting up packagekit (1.2.6-5) ...
32.46 invoke-rc.d: could not determine current runlevel
32.46 invoke-rc.d: policy-rc.d denied execution of force-reload.
32.47 Failed to open connection to "system" message bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
32.60 Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.
32.61 Setting up packagekit-tools (1.2.6-5) ...
32.63 Processing triggers for dbus (1.14.10-1~deb12u1) ...
32.66 Errors were encountered while processing:
32.66 python3-pkg-resources
32.66 python3-jwt
32.66 python3-lazr.uri
32.66 python3-six
32.66 python3-oauthlib
32.66 python3-pyparsing
32.66 python3-wadllib
32.66 python3-gi
32.66 python3-httplib2
32.66 python3-lazr.restfulclient
32.66 python3-blinker
32.66 python3-dbus
32.66 python3-distro
32.66 python3-apt
32.66 software-properties-common
32.66 python3-software-properties
32.66 python3-cryptography
32.67 E: Sub-process /usr/bin/dpkg returned an error code (1)

failed to solve: process "/bin/sh -c apt-get update && apt-get install -y build-essential curl software-properties-common && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Screenshot 2023-12-11 133846

@matthieuml
Copy link
Contributor

i have some issue to buil docker containerin win11+docker, please help) :

32.15 ldconfig: File /lib/x86_64-linux-gnu/libperl.so.5.36.0 is empty, not checked.

32.15 ldconfig: File /lib/x86_64-linux-gnu/libapr-1.so.0.7.2 is empty, not checked.
32.18 Processing triggers for sgml-base (1.31) ...
32.20 Setting up polkitd (122-3) ...
32.23 Creating group 'polkitd' with GID 996.
32.23 Creating user 'polkitd' (polkit) with UID 996 and GID 996.
32.28 invoke-rc.d: could not determine current runlevel
32.28 invoke-rc.d: policy-rc.d denied execution of reload.
32.41 start-stop-daemon: unable to stat /usr/libexec/polkitd (No such file or directory)
32.41 Setting up packagekit (1.2.6-5) ...
32.46 invoke-rc.d: could not determine current runlevel
32.46 invoke-rc.d: policy-rc.d denied execution of force-reload.
32.47 Failed to open connection to "system" message bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
32.60 Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.
32.61 Setting up packagekit-tools (1.2.6-5) ...
32.63 Processing triggers for dbus (1.14.10-1~deb12u1) ...
32.66 Errors were encountered while processing:
32.66 python3-pkg-resources
32.66 python3-jwt
32.66 python3-lazr.uri
32.66 python3-six
32.66 python3-oauthlib
32.66 python3-pyparsing
32.66 python3-wadllib
32.66 python3-gi
32.66 python3-httplib2
32.66 python3-lazr.restfulclient
32.66 python3-blinker
32.66 python3-dbus
32.66 python3-distro
32.66 python3-apt
32.66 software-properties-common
32.66 python3-software-properties
32.66 python3-cryptography
32.67 E: Sub-process /usr/bin/dpkg returned an error code (1)

failed to solve: process "/bin/sh -c apt-get update && apt-get install -y build-essential curl software-properties-common && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

There was the same error in #100. The issue came from using Docker inside of Snap, if you install the Docker CLI it should work.

@hemangjoshi37a
Copy link

same error : #116

@mingwu2333
Copy link

I tried specifying the pip mirror source, and it finally worked:
RUN pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants