NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
204 stars 41 forks source link

Travis build fails due to boto / google_compute_engine import error #222

Closed osma closed 5 years ago

osma commented 5 years ago

The latest Travis builds fail with an error like this:

../../../virtualenv/python3.5.6/lib/python3.5/site-packages/gensim/__init__.py:5: in <module>
    from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils  # noqa:F401
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/gensim/parsing/__init__.py:4: in <module>
    from .preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2,  # noqa:F401
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/gensim/parsing/preprocessing.py:40: in <module>
    from gensim import utils
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/gensim/utils.py:45: in <module>
    from smart_open import smart_open
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/smart_open/__init__.py:1: in <module>
    from .smart_open_lib import *
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/smart_open/smart_open_lib.py:45: in <module>
    from boto.compat import BytesIO, urlsplit, six
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/boto/__init__.py:1216: in <module>
    boto.plugin.load_plugins(config)
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/boto/plugin.py:93: in load_plugins
    _import_module(file)
../../../virtualenv/python3.5.6/lib/python3.5/site-packages/boto/plugin.py:75: in _import_module
    return imp.load_module(name, file, filename, data)
../../../virtualenv/python3.5.6/lib/python3.5/imp.py:235: in load_module
    return load_source(name, filename, file)
../../../virtualenv/python3.5.6/lib/python3.5/imp.py:172: in load_source
    module = _load(spec)
/usr/lib/python2.7/dist-packages/google_compute_engine/boto/compute_auth.py:19: in <module>
    from google_compute_engine import logger
E   ImportError: No module named 'google_compute_engine'
The command "pytest --cov=./" exited with 4.

This seems to be due to this travis issue

osma commented 5 years ago

This was fixed in https://github.com/NatLibFi/Annif/commit/ed9651b047fb723b0188de1f5f50984cc99c76e1 although there was an unrelated bug #223 that still caused a build failure. Both issues are now fixed.