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

Conda and docker setups both fail #40

Closed dwschulze closed 3 months ago

dwschulze commented 5 months ago

Docker build gives this error:

docker build -t langchain_ai .
...
Collecting lanarky==0.7.16 (from -r requirements.txt (line 27))
  Downloading lanarky-0.7.16-py3-none-any.whl.metadata (6.7 kB)
ERROR: Ignored the following versions that require a different python version: 0.12.0 Requires-Python >=3.9.0,<3.12; 0.12.2 Requires-Python >=3.9.0,<3.12; 0.12.3 Requires-Python >=3.9.0,<3.12; 0.12.4 Requires-Python >=3.9.0,<3.12; 0.12.5 Requires-Python >=3.9.0,<3.12; 0.12.6 Requires-Python >=3.9.0,<3.12; 0.13.0 Requires-Python <3.12,>=3.9.0; 0.13.1 Requires-Python <3.12,>=3.9.0; 0.13.2 Requires-Python <3.12,>=3.9.0; 0.13.3 Requires-Python <3.12,>=3.9.0; 0.13.4 Requires-Python <3.12,>=3.9.0; 0.55.2 Requires-Python <3.5; 0.8.0 Requires-Python >=3.9,<3.12; 0.8.1 Requires-Python >=3.9,<3.12; 0.8.2 Requires-Python >=3.9,<3.12; 0.8.3 Requires-Python >=3.9,<3.12; 0.8.4 Requires-Python >=3.9,<3.12; 0.8.5 Requires-Python >=3.9,<3.12; 0.8.6 Requires-Python <3.12,>=3.9
ERROR: Could not find a version that satisfies the requirement ray>=2.6.3 (from versions: none)
ERROR: No matching distribution found for ray>=2.6.3
The command '/bin/sh -c pip install --prefer-binary --no-cache-dir -r requirements.txt' returned a non-zero code: 1

Conda setup hangs when installing pip dependencies:

(base) $ conda env create --file langchain_ai.yaml 
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages:

Preparing transaction: done                                                                                                        
Verifying transaction: done                                                                                                        
Executing transaction: done                                                                                                        
Installing pip dependencies:  (wait cursor spins)
m42e commented 4 months ago

Change the Dockerfile to not use latest but 23.9.0-0 You could also try 23.10.0-1

benman1 commented 3 months ago

Thanks, @m42e! Sorry, @dwschulze that it took so long - life gets in the way sometimes. f2726f0c0771fb499eb583ac48eed4b8da027e6b