Git Product home page Git Product logo

Comments (3)

dosubot avatar dosubot commented on July 17, 2024 2

To resolve the version incompatibility issue between llama-index and llama-index-core when running poetry lock, you need to ensure that the dependencies specified in both pyproject.toml files are compatible with each other. Here is a step-by-step approach:

  1. Check the llama-index dependencies: Ensure that the dependencies in llama-index do not conflict with those in llama-index-core.

  2. Align the versions: Make sure that the versions of shared dependencies are aligned between llama-index and llama-index-core.

  3. Update pyproject.toml: Modify the pyproject.toml file of llama-index to match the versions specified in llama-index-core.

Here is an example of how you might update the pyproject.toml file for llama-index:

[tool.poetry.dependencies]
SQLAlchemy = {extras = ["asyncio"], version = ">=1.4.49"}
dataclasses-json = "*"
deprecated = ">=1.2.9.3"
fsspec = ">=2023.5.0"
httpx = "*"
nest-asyncio = "^1.5.8"
nltk = "^3.8.1"
numpy = "<2.0.0"  # Pin until we adapt to Numpy v2
openai = ">=1.1.0"
pandas = "*"
python = ">=3.8.1,<4.0"
tenacity = ">=8.2.0,!=8.4.0,<9.0.0"  # Avoid 8.4.0 which lacks tenacity.asyncio
tiktoken = ">=0.3.3"
typing-extensions = ">=4.5.0"
typing-inspect = ">=0.8.0"
requests = ">=2.31.0"  # Pin to avoid CVE-2023-32681 in requests 2.3 to 2.30
aiohttp = "^3.8.6"
networkx = ">=3.0"
dirtyjson = "^1.0.8"
tqdm = "^4.66.1"
pillow = ">=9.0.0"
PyYAML = ">=6.0.1"
llama-cloud = "^0.0.6"
wrapt = "*"
llama-index-core = "^0.10.0"  # Ensure this matches the version in llama-index-core

By ensuring that the dependencies and their versions are consistent across both llama-index and llama-index-core, you should be able to resolve the version incompatibility issue when running poetry lock [1][2].

To continue talking to Dosu, mention @dosu.

from llama_index.

yisding avatar yisding commented on July 17, 2024

Obviously if I remove llama-index-core from pyproject.toml poetry will be happy, but it'll refuse to install the latest bugfix release of core.

from llama_index.

logan-markewich avatar logan-markewich commented on July 17, 2024

yea, llama-index is tied to specific releases of core to help with upgrades and downgrades at the llama-index level. The tradeoff here is what you've run into.

There will be a new release probably tomorrow, and then you'll get the latest version :)

from llama_index.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.