benman1 / generative_ai_with_langchain

Build large language model (LLM) apps with Python, ChatGPT and other models. This is the companion repository for the book on generative AI with LangChain.
https://amzn.to/43PuIkQ
MIT License
600 stars 242 forks source link

can't build docker image #24

Closed 234quix closed 6 months ago

234quix commented 8 months ago

My setup is: laptop: Apple M1 Pro OS: Ventura 13.4.1 (c) Docker engine: v20.10.24

when I run the docker build command I get the following:

docker build -t langchain_ai . [+] Building 32.4s (11/12) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 74B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/continuumio/miniconda3:latest 0.8s => [1/8] FROM docker.io/continuumio/miniconda3:latest@sha256:5ee0ed861bce8f67acb0a3e8a416891781db54302d93bf20a3c6301d7683d7b9 0.0s => [internal] load build context 0.0s => => transferring context: 844B 0.0s => CACHED [2/8] RUN apt-get update && apt-get install -y wget build-essential && rm -rf /var/lib/apt/lists/* 0.0s => CACHED [3/8] RUN conda update -n base -c defaults conda -y && conda --version 0.0s => CACHED [4/8] COPY langchain_ai.yaml . 0.0s => CACHED [5/8] COPY notebooks ./notebooks 0.0s => CACHED [6/8] RUN python -m pip install --upgrade pip && conda clean -a && python -m pip cache purge 0.0s => ERROR [7/8] RUN conda env update --name base --file langchain_ai.yaml -vv 31.4s

[7/8] RUN conda env update --name base --file langchain_ai.yaml -vv:

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(324): Using libmamba solver

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(325): Conda version: 24.1.0

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(326): Mamba version: 1.5.3

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(327): Target prefix: '/opt/conda'

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(328): Command: ['/opt/conda/bin/conda', 'env', 'update', '--name', 'base', '--file', 'langchain_ai.yaml', '-vv']

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(329): Specs to add: IndexedSet([MatchSpec("bzip2=1.0.8"), MatchSpec("ca-certificates"), MatchSpec("libffi=3.4.4"), MatchSpec("ncurses=6.4"), MatchSpec("openssl"), MatchSpec("pandoc=2.12"), MatchSpec("pip=23.1.2"), MatchSpec("python=3.10.12"), MatchSpec("readline=8.2"), MatchSpec("sqlite=3.41.2"), MatchSpec("tk=8.6.12"), MatchSpec("tzdata=2023c"), MatchSpec("xz=5.4.2"), MatchSpec("zlib=1.2.13")])

11 0.397 INFO conda.conda_libmamba_solver.solver:_log_info(330): Specs to remove: frozenset()

11 0.605 Channels:

11 0.605 - defaults

11 0.605 Platform: linux-aarch64

11 0.605 Collecting package metadata (repodata.json): ...working... INFO conda.gateways.repodata.jlap.fetch:download_and_hash(262): Download 0 bytes {'User-Agent': 'conda/24.1.0 requests/2.31.0 CPython/3.11.5 Linux/5.15.49-linuxkit debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '/', 'Connection': 'keep-alive'}

11 0.954 INFO conda.gateways.repodata.jlap.fetch:request_url_jlap_state(408): Apply 0 patches f7b312ec41b2498c… → f7b312ec41b2498c…

11 1.294 INFO conda.gateways.repodata.jlap.fetch:download_and_hash(262): Download 2372338 bytes {'User-Agent': 'conda/24.1.0 requests/2.31.0 CPython/3.11.5 Linux/5.15.49-linuxkit debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '/', 'Connection': 'keep-alive'}

11 1.295 INFO conda.gateways.repodata.jlap.fetch:request_url_jlap_state(408): Apply 0 patches 27e5d510959fdde4… → 27e5d510959fdde4…

11 1.500 INFO conda.gateways.repodata.jlap.fetch:download_and_hash(262): Download 702836 bytes {'User-Agent': 'conda/24.1.0 requests/2.31.0 CPython/3.11.5 Linux/5.15.49-linuxkit debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '/', 'Connection': 'keep-alive'}

11 1.501 INFO conda.gateways.repodata.jlap.fetch:request_url_jlap_state(408): Apply 0 patches fd8b79f5ace4c7c7… → fd8b79f5ace4c7c7…

11 2.334 INFO conda.gateways.repodata.jlap.fetch:download_and_hash(262): Download 2050706 bytes {'User-Agent': 'conda/24.1.0 requests/2.31.0 CPython/3.11.5 Linux/5.15.49-linuxkit debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '/', 'Connection': 'keep-alive'}

11 2.334 INFO conda.gateways.repodata.jlap.fetch:request_url_jlap_state(408): Apply 0 patches c25462d7872987b0… → c25462d7872987b0…

11 2.893 done

11 2.893 Solving environment: ...working... done

11 2.997 INFO conda.core.link:init(210): initializing UnlinkLinkTransaction with

11 2.997 target_prefix: /opt/conda

11 2.997 unlink_precs:

11 2.997 defaults/linux-aarch64::conda-libmamba-solver-23.11.1-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-24.1.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::requests-2.31.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::urllib3-1.26.18-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-package-handling-2.2.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::pyopenssl-23.2.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-package-streaming-0.9.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-content-trust-0.2.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::zstandard-0.19.0-py311h998d150_0

11 2.997 defaults/linux-aarch64::cryptography-41.0.3-py311h5077475_0

11 2.997 defaults/linux-aarch64::pip-23.3-py311hd43f75c_0

11 2.997 defaults/noarch::jsonpatch-1.32-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::cffi-1.15.1-py311h998d150_3

11 2.997 defaults/linux-aarch64::wheel-0.41.2-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::truststore-0.8.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::tqdm-4.65.0-py311h2163289_0

11 2.997 defaults/linux-aarch64::setuptools-68.0.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::ruamel.yaml-0.17.21-py311h998d150_0

11 2.997 defaults/linux-aarch64::pysocks-1.7.1-py311hd43f75c_0

11 2.997 defaults/noarch::pycparser-2.21-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::pycosat-0.6.6-py311h998d150_0

11 2.997 defaults/linux-aarch64::pluggy-1.0.0-py311hd43f75c_1

11 2.997 defaults/linux-aarch64::platformdirs-3.10.0-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::packaging-23.1-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::libmambapy-1.5.3-py311hd82f176_0

11 2.997 defaults/noarch::jsonpointer-2.1-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::idna-3.4-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::distro-1.8.0-py311hd43f75c_0

11 2.997 defaults/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::certifi-2023.11.17-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::brotli-python-1.0.9-py311h419075a_7

11 2.997 defaults/linux-aarch64::boltons-23.0.0-py311hd43f75c_0

11 2.997 defaults/noarch::archspec-0.2.1-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::menuinst-2.0.2-py311hd43f75c_0

11 2.997 defaults/linux-aarch64::libmamba-1.5.3-h78dbd8a_0

11 2.997 defaults/linux-aarch64::python-3.11.5-h4bb2201_0

11 2.997 link_precs:

11 2.997 defaults/linux-aarch64::pandoc-2.12-hd43f75c_3

11 2.997 defaults/linux-aarch64::python-3.10.12-h4bb2201_0

11 2.997 defaults/linux-aarch64::libmamba-1.5.6-h78dbd8a_0

11 2.997 defaults/linux-aarch64::menuinst-2.0.2-py310hd43f75c_0

11 2.997 defaults/noarch::archspec-0.2.1-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::boltons-23.0.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::brotli-python-1.0.9-py310h419075a_7

11 2.997 defaults/linux-aarch64::certifi-2023.11.17-py310hd43f75c_0

11 2.997 defaults/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::distro-1.8.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::idna-3.4-py310hd43f75c_0

11 2.997 defaults/noarch::jsonpointer-2.1-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::libmambapy-1.5.6-py310hd82f176_0

11 2.997 defaults/linux-aarch64::packaging-23.1-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::platformdirs-3.10.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::pluggy-1.0.0-py310hd43f75c_1

11 2.997 defaults/linux-aarch64::pycosat-0.6.6-py310h998d150_0

11 2.997 defaults/noarch::pycparser-2.21-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::pysocks-1.7.1-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::ruamel.yaml.clib-0.2.6-py310h998d150_1

11 2.997 defaults/linux-aarch64::setuptools-68.2.2-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::tqdm-4.65.0-py310ha5ee653_0

11 2.997 defaults/linux-aarch64::truststore-0.8.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::wheel-0.41.2-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::cffi-1.16.0-py310h998d150_0

11 2.997 defaults/noarch::jsonpatch-1.32-pyhd3eb1b0_0

11 2.997 defaults/linux-aarch64::pip-23.1.2-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::ruamel.yaml-0.17.21-py310h998d150_0

11 2.997 defaults/linux-aarch64::cryptography-41.0.7-py310h5077475_0

11 2.997 defaults/linux-aarch64::zstandard-0.19.0-py310h998d150_0

11 2.997 defaults/linux-aarch64::conda-content-trust-0.2.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-package-streaming-0.9.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::pyopenssl-23.2.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-package-handling-2.2.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::urllib3-1.26.18-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::requests-2.31.0-py310hd43f75c_0

11 2.997 defaults/linux-aarch64::conda-24.1.0-py310hd43f75c_0

11 2.997 defaults/noarch::conda-libmamba-solver-24.1.0-pyhd3eb1b0_0

11 2.997

11 9.188

11 9.188 Downloading and Extracting Packages: ...working... done

11 9.188 Preparing transaction: ...working... done

11 9.299 Verifying transaction: ...working... done

11 9.663 Executing transaction: ...working... INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::conda-libmamba-solver-23.11.1-py311hd43f75c_0 <===

11 9.664 prefix=/opt/conda

11 9.664

11 9.684 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::conda-24.1.0-py311hd43f75c_0 <===

11 9.684 prefix=/opt/conda

11 9.684

11 10.01 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::requests-2.31.0-py311hd43f75c_0 <===

11 10.01 prefix=/opt/conda

11 10.01

11 10.04 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::urllib3-1.26.18-py311hd43f75c_0 <===

11 10.04 prefix=/opt/conda

11 10.04

11 10.09 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::conda-package-handling-2.2.0-py311hd43f75c_0 <===

11 10.09 prefix=/opt/conda

11 10.09

11 10.11 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::pyopenssl-23.2.0-py311hd43f75c_0 <===

11 10.11 prefix=/opt/conda

11 10.11

11 10.13 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::conda-package-streaming-0.9.0-py311hd43f75c_0 <===

11 10.13 prefix=/opt/conda

11 10.13

11 10.15 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::conda-content-trust-0.2.0-py311hd43f75c_0 <===

11 10.15 prefix=/opt/conda

11 10.15

11 10.18 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::zstandard-0.19.0-py311h998d150_0 <===

11 10.18 prefix=/opt/conda

11 10.18

11 10.19 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::cryptography-41.0.3-py311h5077475_0 <===

11 10.19 prefix=/opt/conda

11 10.19

11 10.32 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::pip-23.3-py311hd43f75c_0 <===

11 10.32 prefix=/opt/conda

11 10.32

11 11.00 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/noarch::jsonpatch-1.32-pyhd3eb1b0_0 <===

11 11.00 prefix=/opt/conda

11 11.00

11 11.01 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::cffi-1.15.1-py311h998d150_3 <===

11 11.01 prefix=/opt/conda

11 11.01

11 11.04 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::wheel-0.41.2-py311hd43f75c_0 <===

11 11.04 prefix=/opt/conda

11 11.04

11 11.09 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::truststore-0.8.0-py311hd43f75c_0 <===

11 11.09 prefix=/opt/conda

11 11.09

11 11.10 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::tqdm-4.65.0-py311h2163289_0 <===

11 11.10 prefix=/opt/conda

11 11.10

11 11.16 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::setuptools-68.0.0-py311hd43f75c_0 <===

11 11.16 prefix=/opt/conda

11 11.16

11 11.45 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::ruamel.yaml-0.17.21-py311h998d150_0 <===

11 11.45 prefix=/opt/conda

11 11.45

11 11.49 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::pysocks-1.7.1-py311hd43f75c_0 <===

11 11.49 prefix=/opt/conda

11 11.49

11 11.51 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/noarch::pycparser-2.21-pyhd3eb1b0_0 <===

11 11.51 prefix=/opt/conda

11 11.51

11 11.54 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::pycosat-0.6.6-py311h998d150_0 <===

11 11.54 prefix=/opt/conda

11 11.54

11 11.55 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::pluggy-1.0.0-py311hd43f75c_1 <===

11 11.55 prefix=/opt/conda

11 11.55

11 11.56 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::platformdirs-3.10.0-py311hd43f75c_0 <===

11 11.56 prefix=/opt/conda

11 11.56

11 11.58 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::packaging-23.1-py311hd43f75c_0 <===

11 11.58 prefix=/opt/conda

11 11.58

11 11.60 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::libmambapy-1.5.3-py311hd82f176_0 <===

11 11.60 prefix=/opt/conda

11 11.60

11 11.61 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/noarch::jsonpointer-2.1-pyhd3eb1b0_0 <===

11 11.61 prefix=/opt/conda

11 11.61

11 11.62 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::idna-3.4-py311hd43f75c_0 <===

11 11.62 prefix=/opt/conda

11 11.62

11 11.63 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::distro-1.8.0-py311hd43f75c_0 <===

11 11.63 prefix=/opt/conda

11 11.63

11 11.64 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0 <===

11 11.64 prefix=/opt/conda

11 11.64

11 11.66 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::certifi-2023.11.17-py311hd43f75c_0 <===

11 11.66 prefix=/opt/conda

11 11.66

11 11.67 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::brotli-python-1.0.9-py311h419075a_7 <===

11 11.67 prefix=/opt/conda

11 11.67

11 11.68 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::boltons-23.0.0-py311hd43f75c_0 <===

11 11.68 prefix=/opt/conda

11 11.68

11 11.73 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/noarch::archspec-0.2.1-pyhd3eb1b0_0 <===

11 11.73 prefix=/opt/conda

11 11.73

11 11.77 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::menuinst-2.0.2-py311hd43f75c_0 <===

11 11.77 prefix=/opt/conda

11 11.77

11 11.81 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::libmamba-1.5.3-h78dbd8a_0 <===

11 11.81 prefix=/opt/conda

11 11.81

11 11.89 INFO conda.core.link:_execute_actions(991): ===> UNLINKING PACKAGE: defaults/linux-aarch64::python-3.11.5-h4bb2201_0 <===

11 11.89 prefix=/opt/conda

11 11.89

11 13.41 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pandoc-2.12-hd43f75c_3 <===

11 13.41 prefix=/opt/conda

11 13.41 source=/opt/conda/pkgs/pandoc-2.12-hd43f75c_3

11 13.41

11 13.41 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::python-3.10.12-h4bb2201_0 <===

11 13.41 prefix=/opt/conda

11 13.41 source=/opt/conda/pkgs/python-3.10.12-h4bb2201_0

11 13.41

11 13.48 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::libmamba-1.5.6-h78dbd8a_0 <===

11 13.48 prefix=/opt/conda

11 13.48 source=/opt/conda/pkgs/libmamba-1.5.6-h78dbd8a_0

11 13.48

11 13.49 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::menuinst-2.0.2-py310hd43f75c_0 <===

11 13.49 prefix=/opt/conda

11 13.49 source=/opt/conda/pkgs/menuinst-2.0.2-py310hd43f75c_0

11 13.49

11 13.49 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::archspec-0.2.1-pyhd3eb1b0_0 <===

11 13.49 prefix=/opt/conda

11 13.49 source=/opt/conda/pkgs/archspec-0.2.1-pyhd3eb1b0_0

11 13.49

11 13.49 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::boltons-23.0.0-py310hd43f75c_0 <===

11 13.49 prefix=/opt/conda

11 13.49 source=/opt/conda/pkgs/boltons-23.0.0-py310hd43f75c_0

11 13.49

11 13.49 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::brotli-python-1.0.9-py310h419075a_7 <===

11 13.49 prefix=/opt/conda

11 13.49 source=/opt/conda/pkgs/brotli-python-1.0.9-py310h419075a_7

11 13.49

11 13.49 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::certifi-2023.11.17-py310hd43f75c_0 <===

11 13.49 prefix=/opt/conda

11 13.49 source=/opt/conda/pkgs/certifi-2023.11.17-py310hd43f75c_0

11 13.49

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::charset-normalizer-2.0.4-pyhd3eb1b0_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/charset-normalizer-2.0.4-pyhd3eb1b0_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::distro-1.8.0-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/distro-1.8.0-py310hd43f75c_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::idna-3.4-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/idna-3.4-py310hd43f75c_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::jsonpointer-2.1-pyhd3eb1b0_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/jsonpointer-2.1-pyhd3eb1b0_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::libmambapy-1.5.6-py310hd82f176_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/libmambapy-1.5.6-py310hd82f176_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::packaging-23.1-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/packaging-23.1-py310hd43f75c_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::platformdirs-3.10.0-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/platformdirs-3.10.0-py310hd43f75c_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pluggy-1.0.0-py310hd43f75c_1 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/pluggy-1.0.0-py310hd43f75c_1

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pycosat-0.6.6-py310h998d150_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/pycosat-0.6.6-py310h998d150_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pycparser-2.21-pyhd3eb1b0_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/pycparser-2.21-pyhd3eb1b0_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pysocks-1.7.1-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/pysocks-1.7.1-py310hd43f75c_0

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::ruamel.yaml.clib-0.2.6-py310h998d150_1 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/ruamel.yaml.clib-0.2.6-py310h998d150_1

11 13.50

11 13.50 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::setuptools-68.2.2-py310hd43f75c_0 <===

11 13.50 prefix=/opt/conda

11 13.50 source=/opt/conda/pkgs/setuptools-68.2.2-py310hd43f75c_0

11 13.50

11 13.52 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::tqdm-4.65.0-py310ha5ee653_0 <===

11 13.52 prefix=/opt/conda

11 13.52 source=/opt/conda/pkgs/tqdm-4.65.0-py310ha5ee653_0

11 13.52

11 13.53 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::truststore-0.8.0-py310hd43f75c_0 <===

11 13.53 prefix=/opt/conda

11 13.53 source=/opt/conda/pkgs/truststore-0.8.0-py310hd43f75c_0

11 13.53

11 13.53 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::wheel-0.41.2-py310hd43f75c_0 <===

11 13.53 prefix=/opt/conda

11 13.53 source=/opt/conda/pkgs/wheel-0.41.2-py310hd43f75c_0

11 13.53

11 13.53 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::cffi-1.16.0-py310h998d150_0 <===

11 13.53 prefix=/opt/conda

11 13.53 source=/opt/conda/pkgs/cffi-1.16.0-py310h998d150_0

11 13.53

11 13.53 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::jsonpatch-1.32-pyhd3eb1b0_0 <===

11 13.53 prefix=/opt/conda

11 13.53 source=/opt/conda/pkgs/jsonpatch-1.32-pyhd3eb1b0_0

11 13.53

11 13.53 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pip-23.1.2-py310hd43f75c_0 <===

11 13.53 prefix=/opt/conda

11 13.53 source=/opt/conda/pkgs/pip-23.1.2-py310hd43f75c_0

11 13.53

11 13.57 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::ruamel.yaml-0.17.21-py310h998d150_0 <===

11 13.57 prefix=/opt/conda

11 13.57 source=/opt/conda/pkgs/ruamel.yaml-0.17.21-py310h998d150_0

11 13.57

11 13.57 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::cryptography-41.0.7-py310h5077475_0 <===

11 13.57 prefix=/opt/conda

11 13.57 source=/opt/conda/pkgs/cryptography-41.0.7-py310h5077475_0

11 13.57

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::zstandard-0.19.0-py310h998d150_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/zstandard-0.19.0-py310h998d150_0

11 13.58

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::conda-content-trust-0.2.0-py310hd43f75c_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/conda-content-trust-0.2.0-py310hd43f75c_0

11 13.58

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::conda-package-streaming-0.9.0-py310hd43f75c_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/conda-package-streaming-0.9.0-py310hd43f75c_0

11 13.58

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::pyopenssl-23.2.0-py310hd43f75c_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/pyopenssl-23.2.0-py310hd43f75c_0

11 13.58

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::conda-package-handling-2.2.0-py310hd43f75c_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/conda-package-handling-2.2.0-py310hd43f75c_0

11 13.58

11 13.58 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::urllib3-1.26.18-py310hd43f75c_0 <===

11 13.58 prefix=/opt/conda

11 13.58 source=/opt/conda/pkgs/urllib3-1.26.18-py310hd43f75c_0

11 13.58

11 13.59 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::requests-2.31.0-py310hd43f75c_0 <===

11 13.59 prefix=/opt/conda

11 13.59 source=/opt/conda/pkgs/requests-2.31.0-py310hd43f75c_0

11 13.59

11 13.59 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::conda-24.1.0-py310hd43f75c_0 <===

11 13.59 prefix=/opt/conda

11 13.59 source=/opt/conda/pkgs/conda-24.1.0-py310hd43f75c_0

11 13.59

11 13.61 INFO conda.core.link:_execute_actions(998): ===> LINKING PACKAGE: defaults::conda-libmamba-solver-24.1.0-pyhd3eb1b0_0 <===

11 13.61 prefix=/opt/conda

11 13.61 source=/opt/conda/pkgs/conda-libmamba-solver-24.1.0-pyhd3eb1b0_0

11 13.61

11 14.10 done

11 14.73 Installing pip dependencies: ...working... Pip subprocess error:

11 31.03 ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5

11 31.03 ERROR: Could not find a version that satisfies the requirement gpt4all>=1.0.6 (from versions: 0.1.5, 0.1.6, 0.1.7)

11 31.03 ERROR: No matching distribution found for gpt4all>=1.0.6

11 31.03 WARNING: There was an error checking the latest version of pip.

11 31.03

11 31.03 Ran pip subprocess with arguments:

11 31.03 ['/opt/conda/bin/python', '-m', 'pip', 'install', '-U', '-r', '/condaenv.01sd0l8d.requirements.txt', '--exists-action=b']

11 31.03 Pip subprocess output:

11 31.03 Collecting setuptools==67.8.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 1))

11 31.03 Downloading setuptools-67.8.0-py3-none-any.whl (1.1 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 3.0 MB/s eta 0:00:00

11 31.03 Collecting wheel==0.38.4 (from -r /condaenv.01sd0l8d.requirements.txt (line 2))

11 31.03 Downloading wheel-0.38.4-py3-none-any.whl (36 kB)

11 31.03 Collecting jupyter>=1.0.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 3))

11 31.03 Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)

11 31.03 Collecting jupyterlab (from -r /condaenv.01sd0l8d.requirements.txt (line 4))

11 31.03 Downloading jupyterlab-4.0.12-py3-none-any.whl (9.2 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 7.1 MB/s eta 0:00:00

11 31.03 Collecting langchain[docarray]==0.0.284 (from -r /condaenv.01sd0l8d.requirements.txt (line 5))

11 31.03 Downloading langchain-0.0.284-py3-none-any.whl (1.7 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.4 MB/s eta 0:00:00

11 31.03 Collecting langchain_experimental (from -r /condaenv.01sd0l8d.requirements.txt (line 6))

11 31.03 Downloading langchain_experimental-0.0.50-py3-none-any.whl (166 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.8/166.8 kB 6.7 MB/s eta 0:00:00

11 31.03 Collecting langsmith>=0.0.65 (from -r /condaenv.01sd0l8d.requirements.txt (line 7))

11 31.03 Downloading langsmith-0.0.86-py3-none-any.whl (54 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.4/54.4 kB 4.6 MB/s eta 0:00:00

11 31.03 Collecting huggingface_hub>=0.14.1 (from -r /condaenv.01sd0l8d.requirements.txt (line 8))

11 31.03 Downloading huggingface_hub-0.20.3-py3-none-any.whl (330 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 330.1/330.1 kB 5.4 MB/s eta 0:00:00

11 31.03 Collecting openai==0.28.1 (from -r /condaenv.01sd0l8d.requirements.txt (line 9))

11 31.03 Downloading openai-0.28.1-py3-none-any.whl (76 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.0/77.0 kB 3.5 MB/s eta 0:00:00

11 31.03 Collecting google-cloud-aiplatform>=1.26.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 10))

11 31.03 Downloading google_cloud_aiplatform-1.40.0-py2.py3-none-any.whl (3.4 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 6.7 MB/s eta 0:00:00

11 31.03 Collecting replicate (from -r /condaenv.01sd0l8d.requirements.txt (line 11))

11 31.03 Downloading replicate-0.23.1-py3-none-any.whl (36 kB)

11 31.03 Collecting google-generativeai (from -r /condaenv.01sd0l8d.requirements.txt (line 12))

11 31.03 Downloading google_generativeai-0.3.2-py3-none-any.whl (146 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 146.9/146.9 kB 8.6 MB/s eta 0:00:00

11 31.03 Collecting ruff==0.0.278 (from -r /condaenv.01sd0l8d.requirements.txt (line 13))

11 31.03 Downloading ruff-0.0.278-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 5.9 MB/s eta 0:00:00

11 31.03 Collecting pypdf>=3.12.2 (from -r /condaenv.01sd0l8d.requirements.txt (line 14))

11 31.03 Downloading pypdf-4.0.1-py3-none-any.whl (283 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 284.0/284.0 kB 4.6 MB/s eta 0:00:00

11 31.03 Collecting tiktoken>=0.4.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 15))

11 31.03 Downloading tiktoken-0.5.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 4.8 MB/s eta 0:00:00

11 31.03 Collecting duckduckgo_search>=3.8.4 (from -r /condaenv.01sd0l8d.requirements.txt (line 16))

11 31.03 Downloading duckduckgo_search-4.4-py3-none-any.whl (20 kB)

11 31.03 Collecting streamlit>=1.24.1 (from -r /condaenv.01sd0l8d.requirements.txt (line 17))

11 31.03 Downloading streamlit-1.31.0-py2.py3-none-any.whl (8.4 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/8.4 MB 4.1 MB/s eta 0:00:00

11 31.03 Collecting arxiv>=1.4.8 (from -r /condaenv.01sd0l8d.requirements.txt (line 18))

11 31.03 Downloading arxiv-2.1.0-py3-none-any.whl (11 kB)

11 31.03 Collecting wikipedia>=1.4.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 19))

11 31.03 Downloading wikipedia-1.4.0.tar.gz (27 kB)

11 31.03 Preparing metadata (setup.py): started

11 31.03 Preparing metadata (setup.py): finished with status 'done'

11 31.03 Collecting wolframalpha>=5.0.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 20))

11 31.03 Downloading wolframalpha-5.0.0-py3-none-any.whl (7.5 kB)

11 31.03 Collecting unstructured>=0.8.1 (from -r /condaenv.01sd0l8d.requirements.txt (line 21))

11 31.03 Downloading unstructured-0.12.3-py3-none-any.whl (1.8 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 5.4 MB/s eta 0:00:00

11 31.03 Collecting sentence_transformers>=2.2.2 (from -r /condaenv.01sd0l8d.requirements.txt (line 22))

11 31.03 Downloading sentence_transformers-2.3.1-py3-none-any.whl (132 kB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.8/132.8 kB 4.4 MB/s eta 0:00:00

11 31.03 Collecting gradio>=3.38.0 (from -r /condaenv.01sd0l8d.requirements.txt (line 23))

11 31.03 Downloading gradio-4.16.0-py3-none-any.whl (16.7 MB)

11 31.03 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 3.3 MB/s eta 0:00:00

11 31.03

11 31.03 failed

11 31.03

11 31.03 CondaEnvException: Pip failed

11 31.03


executor failed running [/bin/sh -c conda env update --name base --file langchain_ai.yaml -vv]: exit code: 1

I tried commenting out the gpt4all install in the langchain_ai.yaml file but I am still getting errors:

stack_trace2.log

benman1 commented 8 months ago

Hi @234quix! Thanks for reporting and thanks for providing the logs. The second log seems totally strange to me - does conda fail while downloading jinja2, why?

Anyway, I've pushed a new version of the Dockerfile that relies on pip rather than conda. I found the log much easier to understand. I had to make a few tweaks, please see the comments if interested.

As a final note, I found that, on MacOS, the port on my laptop was different to the port in Docker. Once I started the container in Docker Desktop, the port mapping was clearly indicated and I found the notebook server in my browser at the indicated port, for me http://localhost:32769/tree.

Please let me know if this works for you.