Skip to content

Installation forte-wrapper errors and missing pyyaml dependency from requirements.txt #26

@ltfschoen

Description

@ltfschoen

I tried following the setup instructions here https://github.com/petuum/composing_information_system/blob/main/QA.md#preparation

The issues I encountered were as follows:

  1. When I ran pip install -r requirements.txt it gave the following error:
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.7/137.7 MB 759.4 kB/s eta 0:00:00
ERROR: Cannot install -r requirements.txt (line 4) and forte 0.3.0.dev2 (from git+https://****@github.com/asyml/forte.git#egg=forte) because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested forte 0.3.0.dev2 (from git+https://****@github.com/asyml/forte.git#egg=forte)
    forte-nltk 0.0.3 depends on forte==0.2.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
WARNING: You are using pip version 22.0.4; however, version 22.3 is available.
You should consider upgrading via the '/Users/cuttlefish/.pyenv/versions/3.7.13/bin/python3.7 -m pip install --upgrade pip' command.

So to fix that I had to clone the forte-wrappers repo https://github.com/asyml/forte-wrappers, then switch to pyenv local 3.7.13, then install the dependencies from source with

pip install src/nltk src/elastic src/allennlp src/spacy

I also updated requirements.txt with the textforte==0.2.0 and ran pip install -r requirements.txt again

  1. I also got an error when installing dependencies ModuleNotFoundError: No module named 'yaml' which I resolved by updating requirements.txt with pyyaml>=6.0 by running pip install pyyaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions