langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
95.48k stars 15.5k forks source link

awadb and azure-ai-vision Version issue #6125

Closed lorenzom222 closed 1 year ago

lorenzom222 commented 1 year ago

System Info

Upon the poetry install -E all command, I'm unable to install awadb version or azure-ai-vision specified in pyproject.toml awadb = {version = "^0.3.2", optional = true} azure-ai-vision = {version = "^0.11.1b1", optional = true}

Package operations: 1 install, 1 update, 0 removals

  • Updating awadb (0.3.1 -> 0.3.2): Failed

  RuntimeError

  Unable to find installation candidates for awadb (0.3.2)

  at ~/opt/anaconda3/envs/langchain/lib/python3.9/site-packages/poetry/installation/chooser.py:76 in choose_for
       72│ 
       73│             links.append(link)
       74│ 
       75│         if not links:
    →  76│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       77│ 
       78│         # Get the best link
       79│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       80│ 

  • Installing azure-ai-vision (0.11.1b1): Failed

  RuntimeError

  Unable to find installation candidates for azure-ai-vision (0.11.1b1)

  at ~/opt/anaconda3/envs/langchain/lib/python3.9/site-packages/poetry/installation/chooser.py:76 in choose_for
       72│ 
       73│             links.append(link)
       74│ 
       75│         if not links:
    →  76│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       77│ 
       78│         # Get the best link
       79│         chosen = max(links, key=lambda link: self._sort_key(package, link))

However I was able to install the awadb 0.3.1 version.

Who can help?

No response

Information

Related Components

Reproduction

  1. Freshly install poetry via: curl -sSL https://install.python-poetry.org | python3 -. In Conda venv.
  2. After it's installation, Poetry (version 1.5.1), attemped poetry install -E all command
  3. Received errors

Expected behavior

After I installed Poetry, I tried to run poetry install -E all within the langchain directory, however I receive dependencies errors.

lnavarette commented 1 year ago

I'm getting the same, did you end up finding a solution? I've tried a few different versions of poetry, all the same error.

lorenzom222 commented 1 year ago

No, I haven't found any solution unfortunate :/

doliawu commented 1 year ago

I encounter the same issue on macOS, but not reproing on Windows WSL.

dosubot[bot] commented 1 year ago

Answer generated by a 🤖

Answer

I understand that you're encountering issues when trying to install the awadb and azure-ai-vision packages using Poetry. The error messages suggest that the specified versions of these packages cannot be found. Here's how we can potentially address this issue:

Firstly, it's possible that the versions specified in your pyproject.toml file do not exist. You can verify this by visiting the Python Package Index (PyPI) and searching for these packages. If the versions are not available, you'll need to update your pyproject.toml file with the correct versions. For instance, your file currently specifies awadb version as ^0.3.3 and azure-ai-vision as ^0.11.1b1. Please ensure these versions are indeed available on PyPI.

Secondly, there could be a network issue that's preventing Poetry from accessing PyPI. You can test your network connection by trying to install a different package or by visiting the PyPI website.

Thirdly, there might be an issue with your Poetry configuration or cache. You can try clearing your Poetry cache using the command poetry cache:clear pypi --all, and then attempt the installation again.

Lastly, the azure-ai-vision package might be sourced from a secondary source azure-sdk-dev. Please ensure that this source is accessible and that the specified version of the package is available there.

Please note that this is one potential solution based on the information provided. If you believe this is a bug that could impact other users and you've found a solution, we encourage you to make a pull request. If this solution doesn't align with your experience, it might be helpful to upgrade to the latest version of the packages or the tools you're using.

Sources


This response is meant to be useful, save you time, and share context. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

doliawu commented 1 year ago

It seems azure-ai-vision does not support macOS, as mentioned [here].(https://github.com/hwchase17/langchain/blob/560c4dfc98287da1bc0cfc1caebbe86d1e66a94d/docs/extras/modules/agents/toolkits/azure_cognitive_services.ipynb#L12)

dosubot[bot] commented 1 year ago

Hi, @lorenzom222! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

Based on my understanding, you were experiencing issues installing the awadb and azure-ai-vision packages specified in your pyproject.toml file using the poetry install -E all command. Other users have also encountered the same issue and there have been suggestions for potential solutions. These include verifying the availability of the specified package versions on PyPI, checking for network issues, clearing the Poetry cache, and ensuring accessibility of the azure-sdk-dev source.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.

Thank you for your understanding and cooperation!