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

poetry going in an infinite loop in installing spacy #1944

Open
shashj123 opened this issue May 22, 2024 · 2 comments
Open

poetry going in an infinite loop in installing spacy #1944

shashj123 opened this issue May 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shashj123
Copy link

Describe the bug
Poetry installs several version of spacy

Browser and Version

  • Browser [e.g. chrome, safari]
  • Version [e.g. 22] 1.0.0.a0034
Copy link

dosubot bot commented May 22, 2024

It looks like you're experiencing an issue where Poetry goes into an infinite loop while trying to install the spacy package. Here are some steps to help diagnose and resolve the issue:

  1. Check for Dependency Conflicts:
    Ensure there are no conflicting dependencies in your pyproject.toml file. You might want to add spacy explicitly and check for any version conflicts.

    [tool.poetry.dependencies]
    python = ">=3.10,<3.12"
    spacy = "^3.0.0"  # Add the specific version of spacy you need
  2. Update Poetry:
    Make sure you are using the latest version of Poetry.

    poetry self update
  3. Clear Poetry Cache:
    Clear the Poetry cache to ensure no corrupted or outdated packages are causing the issue.

    poetry cache clear --all pypi
  4. Verbose Output:
    Run the Poetry install command with verbose output to get more details on what might be causing the loop.

    poetry install -vvv
  5. Check for Custom Scripts or Configurations:
    Review any custom scripts or configurations in the pyproject.toml file that might affect package installations.

    [tool.poetry.scripts]
    langflow-base = "langflow.__main__:main"
  6. Dockerfile Considerations:
    If you are using Docker, ensure that the Dockerfile is correctly set up to handle Poetry installations. Here is an example from the langflow repository:

    FROM python:3.10-slim
    
    WORKDIR /app
    
    # Install Poetry
    RUN apt-get update && apt-get install gcc g++ curl build-essential postgresql-server-dev-all -y
    RUN curl -sSL https://install.python-poetry.org | python3 -
    # Add Poetry to PATH
    ENV PATH="${PATH}:/root/.local/bin"
    # Copy the pyproject.toml and poetry.lock files
    COPY poetry.lock pyproject.toml ./
    # Copy the rest of the application codes
    COPY ./ ./
    
    # Install dependencies
    RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
    
    CMD ["uvicorn", "--factory", "langflow.main:create_app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "debug", "--loop", "asyncio"]

If the issue persists, please provide more details about your pyproject.toml file and any specific error messages you are encountering. This will help in diagnosing the problem more accurately.

Details

Sources


About Dosu
This response is meant to be useful and save you time. 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.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label May 22, 2024
@shashj123
Copy link
Author

I was just installing the pre release, it was working fine until now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant