question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install dependency on `allennlp.tools` failing.

See original GitHub issue

Hi, apologies if I am the only one having this error – surprised not to see anyone else report it.

It seem that installing from pip3 I run into an error on import t5 because of from allennlp.tools import squad_eval in metrics.py https://github.com/google-research/text-to-text-transfer-transformer/blob/master/t5/evaluation/metrics.py

Installing allennlp directly does appears to create this error, actually. As in their repo (at least the one via pip install allennlp – the allennlp.tools is no longer built that way. It seems perhaps, they changed and broke your dependency?

Unfortunately, as far as I can tell allennlp does not do release versions. Not sure which checkpoint breaks this.

Apologies if this is my mistake. Will try rebuilding allennlp from an old commit and see if this works again. Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
adarobcommented, Feb 29, 2020

allennlp==0.9.0 should work

1reaction
craffelcommented, Feb 24, 2020

We can pull the code in but we’d have to put it in a separate third_party directory (like https://github.com/brain-research/realistic-ssl-evaluation/tree/master/third_party/vat) which is annoying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AllenNLP v2.10.1
NOTICE: The AllenNLP library is now in maintenance mode. That means we are no longer adding new features or upgrading dependencies.
Read more >
allennlp - PyPI
Installing the library and dependencies is simple using pip . pip install allennlp. To install the optional dependencies, such as checklist , run...
Read more >
AllenNLP PyTorch Model - Model Zoo
Installing the library and dependencies is simple using pip . pip install allennlp. That's it! You're now ready to build and train AllenNLP...
Read more >
TextAttack & AllenNLP - Read the Docs
!pip install allennlp allennlp_models > /dev/null ... (0.3.3) Requirement already satisfied: language-tool-python in /usr/local/lib/python3.7/dist-packages ...
Read more >
README.md · detectron-refactor · mirrors / allenai / allennlp · GitCode
If you want to use allennlp train and config files to specify experiments, ... Installing the library and dependencies is simple using pip...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found