studio-ousia / luke

LUKE -- Language Understanding with Knowledge-based Embeddings
Apache License 2.0
705 stars 102 forks source link

Problems installing LUKE and its dependencies #179

Open inigo-jauregi-rozetta opened 1 year ago

inigo-jauregi-rozetta commented 1 year ago

Hi!

Great work and thanks for making the code available.

I am trying to install LUKE following your instructions. Basically running poetry install.

Environment:

I get the following output:

Installing dependencies from lock file

Package operations: 206 installs, 18 updates, 2 removals

  • Removing dulwich (0.20.35)
  • Removing requests-toolbelt (0.9.1)
  • Downgrading attrs (23.1.0 -> 21.4.0)
  • Downgrading pyrsistent (0.19.3 -> 0.18.1)
  • Installing six (1.16.0)
  • Installing traitlets (5.1.1)
  • Installing entrypoints (0.4)
  • Installing fastjsonschema (2.15.3)
  • Downgrading jsonschema (4.17.3 -> 4.4.0)
  • Installing jupyter-core (4.9.2)
  • Installing nest-asyncio (1.5.5)
  • Installing parso (0.8.3)
  • Installing python-dateutil (2.8.2)
  • Installing pyzmq (22.3.0)
  • Installing tornado (6.1)
  • Installing wcwidth (0.2.5)
  • Installing appnope (0.1.3)
  • Installing backcall (0.2.0)
  • Downgrading cffi (1.15.1 -> 1.15.0)
  • Installing decorator (5.1.1)
  • Installing jedi (0.18.1)
  • Installing jupyter-client (7.2.2)
  • Installing markupsafe (2.1.1)
  • Installing matplotlib-inline (0.1.3)
  • Installing nbformat (5.3.0)
  • Installing pickleshare (0.7.5)
  • Installing prompt-toolkit (3.0.29)
  • Installing pyasn1 (0.4.8)
  • Installing pygments (2.11.2)
  • Installing pyparsing (3.0.7)
  • Installing soupsieve (2.3.2)
  • Installing webencodings (0.5.1)
  • Installing argon2-cffi-bindings (21.2.0)
  • Installing beautifulsoup4 (4.11.1)
  • Installing bleach (5.0.0)
  • Installing cachetools (5.0.0)
  • Downgrading certifi (2023.7.22 -> 2021.10.8)
  • Downgrading charset-normalizer (3.2.0 -> 2.0.12)
  • Installing debugpy (1.6.0)
  • Installing defusedxml (0.7.1)
  • Downgrading idna (3.4 -> 3.3)
  • Installing ipython (7.32.0)
  • Installing jinja2 (3.1.1)
  • Installing jupyterlab-pygments (0.2.0)
  • Installing mistune (0.8.4)
  • Downgrading more-itertools (10.1.0 -> 8.12.0)
  • Installing nbclient (0.5.13)
  • Downgrading packaging (23.1 -> 21.3)
  • Installing pandocfilters (1.5.0)
  • Installing protobuf (3.20.0)
  • Installing psutil (5.9.0)
  • Installing pyasn1-modules (0.2.8)
  • Installing rsa (4.8)
  • Installing tinycss2 (1.1.1)
  • Downgrading urllib3 (2.0.4 -> 1.26.9)
  • Installing argon2-cffi (21.3.0)
  • Installing google-auth (2.6.3)
  • Installing googleapis-common-protos (1.56.0)
  • Installing ipykernel (6.13.0)
  • Installing ipython-genutils (0.2.0)
  • Installing jaraco-context (4.1.1)
  • Installing jaraco-functools (3.5.0)
  • Installing jmespath (1.0.0)
  • Installing nbconvert (6.5.0)
  • Installing prometheus-client (0.14.1)
  • Installing pytz (2022.1)
  • Downgrading requests (2.31.0 -> 2.27.1)
  • Installing send2trash (1.8.0)
  • Installing terminado (0.13.3)
  • Installing botocore (1.24.36)
  • Installing catalogue (2.0.7)
  • Installing click (8.1.2)
  • Installing cymem (2.0.6)
  • Installing frozenlist (1.3.0)
  • Installing google-api-core (2.7.1)
  • Installing google-crc32c (1.3.0)
  • Downgrading jaraco-classes (3.3.0 -> 3.2.1)
  • Installing jaraco-text (3.7.0)
  • Installing multidict (6.0.2)
  • Installing murmurhash (1.0.6)
  • Installing notebook (6.4.10)
  • Installing numpy (1.21.5)
  • Installing smmap (5.0.0)
  • Installing tempora (5.0.1)
  • Installing typing-extensions (3.10.0.2)
  • Installing aiosignal (1.2.0)
  • Installing async-timeout (4.0.2)
  • Installing blis (0.7.7): Pending...
  • Installing chardet (4.0.0)
  • Installing chardet (4.0.0)
  • Installing blis (0.7.7): Installing...
  • Installing chardet (4.0.0)
  • Installing cheroot (8.6.0)
  • Installing cryptography (36.0.2): Installing...
  • Downgrading filelock (3.12.2 -> 3.6.0): Installing...
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Downgrading filelock (3.12.2 -> 3.6.0)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing google-resumable-media (2.3.2)
  • Installing jaraco-collections (3.5.1)
  • Installing joblib (1.1.0): Installing...
  • Installing joblib (1.1.0)
  • Installing jupyterlab-widgets (1.1.0)
  • Downgrading filelock (3.12.2 -> 3.6.0)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing google-resumable-media (2.3.2)
  • Installing jaraco-collections (3.5.1)
  • Installing joblib (1.1.0)
  • Installing jupyterlab-widgets (1.1.0)
  • Installing cryptography (36.0.2)
  • Downgrading filelock (3.12.2 -> 3.6.0)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing google-resumable-media (2.3.2)
  • Installing jaraco-collections (3.5.1)
  • Installing joblib (1.1.0)
  • Installing jupyterlab-widgets (1.1.0)
  • Installing chardet (4.0.0)
  • Installing cheroot (8.6.0)
  • Installing cryptography (36.0.2)
  • Downgrading filelock (3.12.2 -> 3.6.0)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing google-resumable-media (2.3.2)
  • Installing jaraco-collections (3.5.1)
  • Installing joblib (1.1.0)
  • Installing jupyterlab-widgets (1.1.0)
  • Installing blis (0.7.7)
  • Installing chardet (4.0.0)
  • Installing cheroot (8.6.0)
  • Installing cryptography (36.0.2)
  • Downgrading filelock (3.12.2 -> 3.6.0)
  • Installing gitdb (4.0.9)
  • Installing google-cloud-core (2.2.3)
  • Installing google-resumable-media (2.3.2)
  • Installing jaraco-collections (3.5.1)
  • Installing joblib (1.1.0)
  • Installing jupyterlab-widgets (1.1.0)
  • Installing lxml (4.8.0)
  • Installing oauthlib (3.2.0)
  • Installing portend (3.1.0)
  • Installing preshed (3.0.6)
  • Installing pydantic (1.8.2)
  • Installing pyyaml (6.0)
  • Installing qtpy (2.0.1)
  • Installing regex (2022.3.15)
  • Installing s3transfer (0.5.2)
  • Installing sgmllib3k (1.0.0)
  • Installing smart-open (5.2.1)
  • Installing srsly (2.4.2)
  • Installing tqdm (4.63.2)
  • Installing typer (0.4.1)
  • Installing wasabi (0.9.1)
  • Installing widgetsnbextension (3.6.0)
  • Installing yarl (1.7.2)
  • Installing zc-lockfile (2.0)
  • Downgrading zipp (3.16.2 -> 3.8.0)
  • Installing aiohttp (3.8.1): Installing...
  • Installing backports-csv (1.0.7)
  • Installing boto3 (1.21.36): Installing...
  • Installing boto3 (1.21.36)
  • Installing cherrypy (18.6.1): Installing...
  • Installing dill (0.3.4)
  • Installing docker-pycreds (0.4.0)
  • Installing feedparser (6.0.8)
  • Installing future (0.18.2): Installing...
  • Installing backports-csv (1.0.7)
  • Installing boto3 (1.21.36)
  • Installing cherrypy (18.6.1): Installing...
  • Installing dill (0.3.4)
  • Installing docker-pycreds (0.4.0)
  • Installing feedparser (6.0.8)
  • Installing future (0.18.2): Installing...
  • Installing aiohttp (3.8.1)
  • Installing backports-csv (1.0.7)
  • Installing boto3 (1.21.36)
  • Installing cherrypy (18.6.1): Installing...
  • Installing dill (0.3.4)
  • Installing docker-pycreds (0.4.0)
  • Installing feedparser (6.0.8)
  • Installing future (0.18.2): Installing...
  • Installing gitpython (3.1.27)
  • Installing google-cloud-storage (2.2.1)
  • Installing huggingface-hub (0.4.0)
  • Installing dill (0.3.4)
  • Installing docker-pycreds (0.4.0)
  • Installing feedparser (6.0.8)
  • Installing future (0.18.2): Installing...
  • Installing gitpython (3.1.27)
  • Installing google-cloud-storage (2.2.1)
  • Installing huggingface-hub (0.4.0)
  • Installing cherrypy (18.6.1)
  • Installing dill (0.3.4)
  • Installing docker-pycreds (0.4.0)
  • Installing feedparser (6.0.8)
  • Installing future (0.18.2): Installing...
  • Installing gitpython (3.1.27)
  • Installing google-cloud-storage (2.2.1)
  • Installing huggingface-hub (0.4.0)
  • Downgrading importlib-metadata (6.8.0 -> 4.11.3)
  • Installing iniconfig (1.1.1)
  • Installing ipywidgets (7.7.0)
  • Installing jupyter-console (6.4.3)
  • Installing langcodes (3.3.0)
  • Installing nltk (3.7): Installing...
  • Installing pathtools (0.1.2)
  • Installing pathy (0.6.1)
  • Installing gitpython (3.1.27)
  • Installing google-cloud-storage (2.2.1)
  • Installing huggingface-hub (0.4.0)
  • Downgrading importlib-metadata (6.8.0 -> 4.11.3)
  • Installing iniconfig (1.1.1)
  • Installing ipywidgets (7.7.0)
  • Installing jupyter-console (6.4.3)
  • Installing langcodes (3.3.0)
  • Installing nltk (3.7): Installing...
  • Installing pathtools (0.1.2)
  • Installing pathy (0.6.1)
  • Installing future (0.18.2)
  • Installing gitpython (3.1.27)
  • Installing google-cloud-storage (2.2.1)
  • Installing huggingface-hub (0.4.0)
  • Downgrading importlib-metadata (6.8.0 -> 4.11.3)
  • Installing iniconfig (1.1.1)
  • Installing ipywidgets (7.7.0)
  • Installing jupyter-console (6.4.3)
  • Installing langcodes (3.3.0)
  • Installing nltk (3.7): Installing...
  • Installing pathtools (0.1.2)
  • Installing pathy (0.6.1)
  • Installing pathtools (0.1.2)
  • Installing pathy (0.6.1)
  • Installing nltk (3.7)
  • Installing pathtools (0.1.2)
  • Installing pathy (0.6.1)
  • Installing pdfminer-six (20220319)
  • Installing pillow (9.1.0)
  • Installing pluggy (1.0.0)
  • Installing promise (2.3)
  • Installing py (1.11.0)
  • Installing python-docx (0.8.11)
  • Installing qtconsole (5.3.0)
  • Installing requests-oauthlib (1.3.1)
  • Installing sacremoses (0.0.49)
  • Installing scipy (1.7.3)
  • Installing sentry-sdk (1.5.8)
  • Installing setproctitle (1.2.2)
  • Installing shortuuid (1.0.8)
  • Installing spacy-legacy (3.0.9)
  • Installing spacy-loggers (1.0.2)
  • Installing thinc (8.0.15)
  • Installing threadpoolctl (3.1.0)
  • Installing tokenizers (0.10.3)
  • Installing torch (1.10.2)
  • Installing absl-py (1.0.0)
  • Installing base58 (2.1.1)
  • Installing cached-path (1.1.1)
  • Downgrading distlib (0.3.7 -> 0.3.4): Installing...
  • Installing fairscale (0.4.6): Installing...
  • Installing fsspec (2022.3.0)
  • Installing fsspec (2022.3.0)
  • Installing fairscale (0.4.6)
  • Installing fsspec (2022.3.0)
  • Installing google-auth-oauthlib (0.4.6)
  • Installing grpcio (1.45.0): Installing...
  • Installing fairscale (0.4.6)
  • Installing fsspec (2022.3.0)
  • Installing google-auth-oauthlib (0.4.6)
  • Installing grpcio (1.45.0): Installing...
  • Downgrading distlib (0.3.7 -> 0.3.4)
  • Installing fairscale (0.4.6)
  • Installing fsspec (2022.3.0)
  • Installing google-auth-oauthlib (0.4.6)
  • Installing grpcio (1.45.0): Installing...
  • Installing h5py (3.6.0): Installing...
  • Installing iso-639 (0.4.5)
  • Installing jsonnet (0.18.0)
  • Installing jupyter (1.0.0)
  • Installing iso-639 (0.4.5)
  • Installing jsonnet (0.18.0)
  • Installing jupyter (1.0.0)
  • Installing h5py (3.6.0)
  • Installing iso-639 (0.4.5)
  • Installing jsonnet (0.18.0)
  • Installing jupyter (1.0.0)
  • Installing lmdb (1.3.0)
  • Installing markdown (3.3.6)
  • Installing multiprocess (0.70.12.2)
  • Installing h5py (3.6.0)
  • Installing iso-639 (0.4.5)
  • Installing jsonnet (0.18.0)
  • Installing jupyter (1.0.0)
  • Installing lmdb (1.3.0)
  • Installing markdown (3.3.6)
  • Installing multiprocess (0.70.12.2)
  • Installing grpcio (1.45.0)
  • Installing h5py (3.6.0)
  • Installing iso-639 (0.4.5)
  • Installing jsonnet (0.18.0)
  • Installing jupyter (1.0.0)
  • Installing lmdb (1.3.0)
  • Installing markdown (3.3.6)
  • Installing multiprocess (0.70.12.2)
  • Installing munch (2.5.0)
  • Installing pandas (1.3.5)
  • Installing patternfork-nosql (3.6)
  • Downgrading platformdirs (3.10.0 -> 2.5.1)
  • Installing pyarrow (7.0.0)
  • Installing pytest (7.1.1)
  • Installing responses (0.18.0)
  • Installing scikit-learn (1.0.2)
  • Installing sentencepiece (0.1.96)
  • Installing spacy (3.2.3)
  • Installing tensorboard-data-server (0.6.1)
  • Installing tensorboard-plugin-wit (1.8.1)
  • Installing tensorboardx (2.5)
  • Installing termcolor (1.1.0)
  • Installing torchvision (0.11.3)
  • Installing transformers (4.13.0)
  • Installing wandb (0.12.13)
  • Installing werkzeug (2.1.1)
  • Installing xxhash (3.0.0)
  • Installing allennlp (2.9.2): Installing...
  • Installing astunparse (1.6.3)
  • Installing cfgv (3.3.1)
  • Installing checklist (0.0.11): Preparing...
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4): Installing...
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  • Installing astunparse (1.6.3)
  • Installing cfgv (3.3.1)
  • Installing checklist (0.0.11): Preparing...
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  • Installing allennlp (2.9.2)
  • Installing astunparse (1.6.3)
  • Installing cfgv (3.3.1)
  • Installing checklist (0.0.11): Preparing...
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  • Installing checklist (0.0.11): Failed
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  StopIteration
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  at ~/Desktop/Research_university/2023/Phuong_work/py399_luke/lib/python3.9/site-packages/virtualenv/run/plugin/discovery.py:22 in get_discover
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       18│     choices = sorted(choices, key=lambda a: 0 if a == "builtin" else 1)
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       19│     discovery_parser.add_argument(
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       20│         "--discovery",
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       21│         choices=choices,
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
    →  22│         default=next(iter(choices)),
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       23│         required=False,
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       24│         help="interpreter discovery method",
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       25│     )
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
       26│     options, _ = parser.parse_known_args(args)
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
The following error occurred when trying to handle this error:
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  RuntimeError
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  generator raised StopIteration
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  at /usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/contextlib.py:119 in __enter__
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      115│         # do not keep args and kwds alive unnecessarily
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      116│         # they are only needed for recreation, which is not possible anymore
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      117│         del self.args, self.kwds, self.func
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      118│         try:
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
    → 119│             return next(self.gen)
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      120│         except StopIteration:
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      121│             raise RuntimeError("generator didn't yield") from None
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      122│ 
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
      123│     def __exit__(self, typ, value, traceback):
  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)

  • Installing conllu (4.4.1)
  • Installing datasets (1.18.4)
  • Installing flatbuffers (2.0)
  • Installing ftfy (6.1.1)
  • Installing gast (0.5.3)
  • Installing google-pasta (0.2.0)
  • Installing identify (2.4.12)
  • Installing jieba (0.42.1)
  • Installing keras (2.8.0)
  • Installing keras-preprocessing (1.1.2)
  • Installing libclang (13.0.0)
  • Installing marisa-trie (0.7.7)
  • Installing mwparserfromhell (0.6.4)
  • Installing mypy-extensions (0.4.3)
  • Installing nodeenv (1.6.0)
  • Installing opt-einsum (3.3.0)
  • Installing pathspec (0.9.0)
  • Installing py-rouge (1.1)
  • Installing tensorboard (2.8.0)
  • Installing tensorflow-io-gcs-filesystem (0.24.0)
  • Installing tf-estimator-nightly (2.8.0.dev2021122109)
  • Installing toml (0.10.2)
  • Downgrading virtualenv (20.24.3 -> 20.14.0)
  • Installing word2number (1.1)
  • Installing wrapt (1.14.0)
Warning: The file chosen for install of grpcio 1.45.0 (grpcio-1.45.0-cp39-cp39-macosx_10_10_x86_64.whl) is yanked. Reason for being yanked: Segfaults

It the installation is not successful?

When I try to execute the zero-shot entity disambiguation evaluation (from the examples):

python examples/entity_disambiguation/evaluate.py --model-dir=model/luke_ed_large \
                                                                                         --dataset-dir=data/entity_disambiguation \
                                                                                         --titles-file=data/entity_disambiguation/enwiki_20181220_titles.txt \
                                                                                         --redirects-file=data/entity_disambiguation/enwiki_20181220_redirects.tsv \
                                                                                         --inference-mode=global \
                                                                                         --document-split-mode=per_mention

I get the following error:

Traceback (most recent call last):
  File "/Users/ijauregi/Desktop/Research_university/2023/Phuong_work/luke/examples/entity_disambiguation/evaluate.py", line 10, in <module>
    from luke.utils.entity_vocab import EntityVocab, MASK_TOKEN, PAD_TOKEN
ModuleNotFoundError: No module named 'luke'

Which indicates that the package and all its dependencies have not been successfully installed.

Am I missing something obvious? Do I need to use an specific version of Python or Poetry?

Thanks in advance for your help.

qbitsofalchemy commented 10 months ago

Same here. I ran into issues with installing and setting up on this kind of cloud node: uname -a -m -p -i returns Linux dragonr-0 5.4.254-170.358.amzn2.x86_64 #1 SMP Wed Sep 6 21:10:58 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Installing dependencies from lock file

Package operations: 74 installs, 4 updates, 0 removals

  • Installing tokenizers (0.10.3): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

Then, further down:

  running build_rust
  error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

  at ~/dragonv/lib/python3.10/site-packages/poetry/installation/chef.py:166 in _prepare
      162│ 
      163│                 error = ChefBuildError("\n\n".join(message_parts))
      164│ 
      165│             if error is not None:
    → 166│                 raise error from None
      167│ 
      168│             return path
      169│ 
      170│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with tokenizers (0.10.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "tokenizers (==0.10.3)"'.

  • Downgrading torch (2.1.0+cu118 -> 1.10.2): Failed

  RuntimeError

  Unable to find installation candidates for torch (1.10.2)

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

Cannot install torch.

(luke-py3.10) (base) jovyan@dragonr-0:luke_node$ 

I tried upgrading pip and the alternate way to install pytorch in the first part of the README, but but when I try this command, I get the errors above and i'm blocked: `(luke-py3.10) (base):luke$ poetry install --extras "pretraining opennlp"