Whoosh Indexer Fails

david.hoffman's Avatar

david.hoffman

22 Apr, 2015 09:14 PM

I have installed rhodecode-tools under a virtual-environment.

My ~/.rhoderc file is:

[instance:enterprise-1]
api_host = http://51.19.186.212:5000
api_key = *** REDACTED ***
repo_dir = /opt/rhodecode/repos

When I attempt to run

. ~/venv/bin/activate
rhodecode-index --instance-name=enterprise-1

I get the following error:

(venv)rhodecode@CDLISBPRC01:~> rhodecode-index --instance-name=enterprise-1
Traceback (most recent call last):
  File "/opt/rhodecode/venv/bin/rhodecode-index", line 9, in <module>
    load_entry_point('rhodecode-tools==1.0.0', 'console_scripts', 'rhodecode-index')()
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 589, in main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 506, in make_conte                                                                                  xt
    self.parse_args(ctx, args)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 767, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/cli.py"                                                                                  , line 31, in _patch_handle_parse_result
    return _old_handle_parse_result(self, ctx, opts, args)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 1252, in handle_pa                                                                                  rse_result
    self.callback, ctx, self, value)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 53, in invoke_para                                                                                  m_callback
    return callback(ctx, param, value)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/cli.py"                                                                                  , line 121, in cli_callback
    ctx = click_ctx.ensure_object(context.Context)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/click-3.3-py2.6.egg/click/core.py", line 329, in ensure_obj                                                                                  ect
    self.obj = rv = object_type()
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/context                                                                                  .py", line 267, in __init__
    setup_logging(echo=self.echo)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/log.py"                                                                                  , line 48, in wrapper
    return f(*args, **kwargs)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/log.py"                                                                                  , line 62, in setup_logging
    cli_handler = CLIHandler(echo=echo)
  File "/opt/rhodecode/venv/lib/python2.6/site-packages/rhodecode_tools-1.0.0-py2.6.egg/rhodecode_tools/lib/log.py"                                                                                  , line 34, in __init__
    super(CLIHandler, self).__init__(*args, **kwargs)
TypeError: super() argument 1 must be type, not classobj
  1. Support Staff 1 Posted by Marcin Kuzminsk... on 22 Apr, 2015 09:27 PM

    Marcin Kuzminski's Avatar

    Hi,

    Do you have python2.7 by any chance installed on your system ?

    RhodeCode tools are not compatible with python2.6 which reached EOL in in October 2013.

  2. 2 Posted by david.hoffman on 23 Apr, 2015 02:01 PM

    david.hoffman's Avatar

    That was it. Installed python 2.7 following http://stackoverflow.com/questions/10940296/installing-python-2-7-o... and then reinstalled my venv using /bin/sh -c '/opt/python2.7/bin/python2.7 /opt/rhodecode/bits/virtualenv-12.1.1/virtualenv.py --python /opt/python2.7/bin/python2.7 --no-site-packages /opt/rhodecode/venv'

    Thank you (You can make this public if you want in case others have the same problem)

  3. Support Staff 3 Posted by Marcin Kuzminsk... on 23 Apr, 2015 02:03 PM

    Marcin Kuzminski's Avatar

    Great,

    Making this public now. We'll also put info in the docs about it so it's no surprise in for the user.

  4. david.hoffman closed this discussion on 07 May, 2015 04:48 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Nov, 2017 03:02 PM
21 Nov, 2017 06:38 PM
03 Oct, 2017 08:26 PM
03 Oct, 2017 05:48 PM
28 Sep, 2017 05:55 PM