Git Product home page Git Product logo

Comments (9)

apohllo avatar apohllo commented on September 2, 2024

To my complete confusion, this is the last version that still works:

The only difference is the bump in version from rc3 to rc4.

from allentune.

apohllo avatar apohllo commented on September 2, 2024

I changed the testing procedure (I installing from local git repot now) and found out, that the 26e313b version still, works, but the next version doesn't:
allenai/allennlp@4a6023b

I will investigate the differences between these version.

from allentune.

apohllo avatar apohllo commented on September 2, 2024

Well, reverting that commit (4a6023b) makes the more recent version (592c65341891ccadec31a624c4e6f062e8455723 from 13th may) of allennlp work properly with allentune. It seems that the problem lays in that commit. Still, I have no idea why changing the logging infrastructure causes the error.

from allentune.

ofersabo avatar ofersabo commented on September 2, 2024

What latest version of allennlp is compatible with allentune? I'm talking about official releases of allennlp, i.e. not a source installation.

from allentune.

apohllo avatar apohllo commented on September 2, 2024

@ofersabo I haven't tried it but I suppose it should work with either v0.8.5 or v0.9.0 since these are the commits closest to the commit mentioned in the documentation.

from allentune.

ofersabo avatar ofersabo commented on September 2, 2024

@apohllo on my end the installation isn't functional even in 0.9.0 and. 0.8.5 versions.

I get these error messages:
============================= test session starts ==============================
platform linux -- Python 3.6.10, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /home/nlp//anaconda3/envs/tune/bin/python
cachedir: .pytest_cache
rootdir: /home/nlp/
/translation/mt_ex_2/allentune, inifile: pytest.ini
plugins: flaky-3.6.1, cov-2.10.0
collected 4 items / 1 error / 3 selected

==================================== ERRORS ====================================
__________________ ERROR collecting tests/test_example_run.py __________________
ImportError while importing test module '/home/nlp//translation/mt_ex_2/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
from allentune.modules import AllenNlpRunner, RayExecutor
allentune/modules/init.py:1: in
from allentune.modules.allennlp_runner import AllenNlpRunner
allentune/modules/allennlp_runner.py:14: in
from allennlp.common.util import import_module_and_submodules
E ImportError: cannot import name 'import_module_and_submodules'
=============================== warnings summary ===============================
/home/nlp/
/anaconda3/envs/tune/lib/python3.6/site-packages/plac_ext.py:6
/home/nlp/____/anaconda3/envs/tune/lib/python3.6/site-packages/plac_ext.py:6: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================== short test summary info ============================
ERROR tests/test_example_run.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 1 error in 5.73s ==========================

When I'm trying to run a test directly I get this error:

from allennlp.common.util import import_module_and_submodules
ImportError: cannot import name 'import_module_and_submodules'

these errors are in allennlp==0.9.0

from allentune.

apohllo avatar apohllo commented on September 2, 2024

I encountered the same error. As far as I remember, commenting out the line with the import fixed it.

from allentune.

ofersabo avatar ofersabo commented on September 2, 2024

OK thanks, so I have to install from source...

from allentune.

kernelmachine avatar kernelmachine commented on September 2, 2024

Hi all, sorry about the delay on this. This should be fixed by #12. Feel free to re-open if you're still having issues -- make sure you use allennlp 1.0.

from allentune.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.