Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Cannot load demosite #82

Open
kaplun opened this issue Sep 17, 2015 · 1 comment
Open

Cannot load demosite #82

kaplun opened this issue Sep 17, 2015 · 1 comment
Milestone

Comments

@kaplun
Copy link
Contributor

kaplun commented Sep 17, 2015

Demosite loading is currently failing with:

$ inveniomanage records create -t marcxml < invenio/testsuite/data/demo_record_marc_data.xml
[...]
ImportError: import_string() failed for 'invenio_demosite.base.recordext.functions.sync_authors'. Possible reasons are:

- missing __init__.py in a package;
- package or module path not included in sys.path;
- duplicated package or module name taking precedence in sys.path;
- missing module, class, function or variable;

Debugged import:

- 'invenio_demosite' found in '/home/skaplun/.virtualenvs/invenio/src/invenio-demosite/invenio_demosite/__init__.pyc'.
- 'invenio_demosite.base' found in '/home/skaplun/.virtualenvs/invenio/src/invenio-demosite/invenio_demosite/base/__init__.pyc'.
- 'invenio_demosite.base.recordext' found in '/home/skaplun/.virtualenvs/invenio/src/invenio-demosite/invenio_demosite/base/recordext/__init__.py'.
- 'invenio_demosite.base.recordext.functions' found in '/home/skaplun/.virtualenvs/invenio/src/invenio-demosite/invenio_demosite/base/recordext/functions/__init__.py'.
- 'invenio_demosite.base.recordext.functions.sync_authors' not found.

Original exception:

ImportError: 'module' object has no attribute 'sync_authors'
@jirikuncar jirikuncar added this to the v2.2.0 milestone Sep 17, 2015
@greut
Copy link
Contributor

greut commented Oct 19, 2015

@kaplun you'll get a better exception message if you try from a repl to:

>>> import invenio_demosite.base.recordext.functions.sync_authors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants