On 14.08.15 09:43, Audun Bjørkøy wrote:
to our experience, this happens if you have the latest version of pip (7) when 
installing Invenio. Ensure you have the latest version of pip 6 with the 
following command before running pip install: pip install -U pip==6.1.1

We are finalising a blogpost on installing Invenio 2.0.5  these days and will 
publish it to our website soon.

Thanks, the blog article at http://blog.tind.io/installing-invenio-2-part-1 got me a long way!

Unfortunately my problems are not over yet. Inveniomanage complains loudly at the database creation step (see below). If I ignore the error and continue, the next steps apparently work but I'm not sure that the running Invenio instance I obtain in the end is well configured.

Besides the commands described in the blog article, I have cloned the demo site files from Github and added recommended tasks to the bibsched queue:

$ bibindex -f50000 -s5m
$ bibreformat -oHB -s5m
$ webcoll -v0 -s5m
$ bibrank -f50000 -s5m
$ bibsort -s5m

Yet my Invenio instance doesn't show any collections that I could browse, only a search field that apparently never finds any records (although the MySQL indeed contains at least document titles from the demo site). Is this expected with Invenio 2? Did inveniomanage create an incomplete database? Am I missing an important detail?

Thanks in advance for any help or pointers!

-----------------------------

(invenio)invenio@invenio2:~/.virtualenvs/invenio$ inveniomanage database create
>>> Going to create tables...
Test connection...       [OK]
Test UTF-8 support...    [OK]
>>> Creating 544 tables ... [################################# ] 83% 0:00:00.251636 >>> Modifing table structure... >>> Creating 544 tables ... [########################################] 100% 0:00:00 >>> Everything has been created successfully. >>> Creating 2 storage engines ... [########################################] 100% 0:00:00 >>> Everything has been created successfully.
>>> There are 17 tables to be loaded.
>>> Going to reset CFG_SITE_ADMIN_EMAIL...
You may want to restart Apache now.
>>> CFG_SITE_ADMIN_EMAIL reset successfully.
Added default demo site settings.
Compiled firewall like role definitions.
2015-08-19 20:58:49 --> Task #1 submitted.
2015-08-19 20:58:51 --> Task #1 started.
2015-08-19 20:58:51 --> Atlantis Institute of Fictive Science / reclist cache update 2015-08-19 20:58:51 --> Atlantis Institute of Fictive Science / webpage cache update
2015-08-19 20:58:51 --> Task #1 finished. [DONE]
2015-08-19 20:58:53 --> Task #2 submitted.
2015-08-19 20:58:56 --> Task #2 started.
2015-08-19 20:58:56 --> bibsort starting..
2015-08-19 20:58:56 --> Reading config data from: /home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/legacy/bibsort/bibsort.cfg
2015-08-19 20:58:56 --> bibsort exiting..
2015-08-19 20:58:56 --> Task #2 finished. [DONE]
Traceback (most recent call last):
File "/home/invenio/.virtualenvs/invenio/bin/inveniomanage", line 9, in <module> load_entry_point('invenio==2.0.5', 'console_scripts', 'inveniomanage')() File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/base/manage.py", line 103, in main
    manager.run()
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/ext/script/__init__.py", line 176, in __call__
    post_command.send(sender, args=args, **kwargs)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/upgrader/__init__.py", line 82, in populate_existing_upgrades
    map(iu.register_success, iu.get_upgrades())
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/upgrader/engine.py", line 406, in get_upgrades
    plugins = self._load_upgrades(remove_applied=remove_applied)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/upgrader/engine.py", line 381, in _load_upgrades
    'upgrades', registry_namespace=self.packages
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/flask_registry/registries/modulediscovery.py", line 254, in __init__
    self.discover(app=app)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/flask_registry/registries/modulediscovery.py", line 175, in discover
    self._discover_module(pkg)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/ext/registry/__init__.py", line 53, in _discover_module
    self._handle_importerror(e, import_str, m)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/flask_registry/registries/modulediscovery.py", line 206, in _handle_importerror
    sys.exc_info()[2]
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/ext/registry/__init__.py", line 49, in _discover_module
    module = import_string(m, silent=self.silent)
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/werkzeug/utils.py", line 437, in import_string
    sys.exc_info()[2])
File "/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/werkzeug/utils.py", line 430, in import_string
    raise ImportError(e)
ImportError: import_string() failed for 'invenio.modules.accounts.upgrades.accounts_2014_11_07_usergroup_name_column_unique'. 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' found in '/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/__init__.pyc'. - 'invenio.modules' found in '/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/__init__.pyc'. - 'invenio.modules.accounts' found in '/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/accounts/__init__.pyc'. - 'invenio.modules.accounts.upgrades' found in '/home/invenio/.virtualenvs/invenio/local/lib/python2.7/site-packages/invenio/modules/accounts/upgrades/__init__.pyc'. - 'invenio.modules.accounts.upgrades.accounts_2014_11_07_usergroup_name_column_unique' not found.

Original exception:

ImportError: 'module' object has no attribute 'accounts_2014_11_07_usergroup_name_column_unique'

--
Alain Borel
EPFL Bibliothèque
Rolex Learning Center
Station 20
CH-1015  LAUSANNE (SUISSE)
Téléphone:      +41 (0)21 693.98.01
Téléfax:        +41 (0)21 693.51.00

Reply via email to