Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing the backend module on the sdist distribution #15

Closed
david-caro opened this issue Dec 9, 2016 · 3 comments

Comments

@david-caro
Copy link

commented Dec 9, 2016

It seem that the current release is missing the backend internal module, that makes the code break when installing it from pip (when using the source is ok).

For example:

[2016-12-09 11:05:41,383] ERROR in app: Failed to initialize entry point: inspire_cache = inspirehep.modules.cache.ext:INSPIRECache
Traceback (most recent call last):
  File "/virtualenv/bin/inspirehep", line 11, in <module>
    load_entry_point('Inspirehep', 'console_scripts', 'inspirehep')()
  File "/virtualenv/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/virtualenv/lib/python2.7/site-packages/flask/cli.py", line 345, in main
    return AppGroup.main(self, *args, **kwargs)
  File "/virtualenv/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/virtualenv/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/virtualenv/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/virtualenv/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/virtualenv/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/virtualenv/lib/python2.7/site-packages/flask/cli.py", line 228, in decorator
    with __ctx.ensure_object(ScriptInfo).load_app().app_context():
  File "/virtualenv/lib/python2.7/site-packages/flask/cli.py", line 201, in load_app
    rv = self.create_app(self)
  File "/virtualenv/lib/python2.7/site-packages/invenio_base/app.py", line 159, in create_cli_app
    app = create_app(debug=get_debug_flag())
  File "/virtualenv/lib/python2.7/site-packages/invenio_base/app.py", line 120, in _create_app
    modules=extensions,
  File "/virtualenv/lib/python2.7/site-packages/invenio_base/app.py", line 179, in app_loader
    modules=modules)
  File "/virtualenv/lib/python2.7/site-packages/invenio_base/app.py", line 230, in _loader
    init_func(ep.load())
  File "/virtualenv/lib/python2.7/site-packages/invenio_base/app.py", line 178, in <lambda>
    _loader(app, lambda ext: ext(app), entry_points=entry_points,
  File "/code/inspirehep/modules/cache/ext.py", line 37, in __init__
    self.init_app(app)
  File "/code/inspirehep/modules/cache/ext.py", line 41, in init_app
    self.cache = Cache(app)
  File "/virtualenv/lib/python2.7/site-packages/flask_caching/__init__.py", line 150, in __init__
    self.init_app(app, config)
  File "/virtualenv/lib/python2.7/site-packages/flask_caching/__init__.py", line 191, in init_app
    self._set_cache(app, config)
  File "/virtualenv/lib/python2.7/site-packages/flask_caching/__init__.py", line 196, in _set_cache
    from . import backends
ImportError: cannot import name backends

Cheers!

@david-caro

This comment has been minimized.

Copy link
Author

commented Dec 9, 2016

The list of installed packages in the virtualenv:

12:11 PM ~/.docker_data/tmp/virtualenv/lib/python2.7/site-packages/flask_caching 
dcaro@pcrcssis001$ pwd
/home/dcaro/.docker_data/tmp/virtualenv/lib/python2.7/site-packages/flask_caching
12:14 PM ~/.docker_data/tmp/virtualenv/lib/python2.7/site-packages/flask_caching 
dcaro@pcrcssis001$ tree
.
├── _compat.py
├── _compat.pyc
├── __init__.py
├── __init__.pyc
├── jinja2ext.py
└── jinja2ext.pyc

0 directories, 6 files
sh4nks added a commit that referenced this issue Dec 9, 2016
@sh4nks

This comment has been minimized.

Copy link
Owner

commented Dec 9, 2016

Should be fixed with 1.1.1. Could you try again?

@david-caro

This comment has been minimized.

Copy link
Author

commented Dec 9, 2016

It is 👍, thanks!!

@sh4nks sh4nks closed this Dec 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.