allenai / allentune

Hyperparameter Search for AllenNLP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests fail with versions of AllenNLP v0.9.1 onward

wfus opened this issue · comments

commented

Allentune fails to run due to a method being renamed in the most recent version of AllenNLP (v0.9.1+).

================================================================== ERRORS ==================================================================
________________________________________________ ERROR collecting tests/test_example_run.py ________________________________________________
ImportError while importing test module '/home/wfu/packages/allentune/tests/test_example_run.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_example_run.py:1: in <module>
    from allentune.modules import AllenNlpRunner, RayExecutor
allentune/modules/__init__.py:1: in <module>
    from allentune.modules.allennlp_runner import AllenNlpRunner
allentune/modules/allennlp_runner.py:14: in <module>
    from allennlp.common.util import import_modules_and_submodules
E   ImportError: cannot import name 'import_modules_and_submodules'