Error running ./manage.py runserver with Mayen EDMS project

31 views
Skip to first unread message

Dominik Cabrerizo

unread,
Feb 1, 2014, 6:59:26 AM2/1/14
to django...@googlegroups.com
Hi all!

I am trying to install Mayan EDMS on Debian Wheezy on a Cubietruck (armhf).
I try to insall according to the instructions on http://mayan.readthedocs.org/en/latest/intro/installation.html
Everything works fine until I run:
./manage.py runserver
Then I get an error and can't continue. Can anyone help me solve this problem? I am a newbie in Python/Django...

I just posted the question but received an error message. If the question appears twice I am sorry!

Thanks!
 Dominik

Here is the error output:

Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/core/management/base.py", line 209, in execute
    translation.activate('en-us')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 100, in activate
    return _trans.activate(language)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 202, in activate
    _active.value = translation(language)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/registration/__init__.py", line 22, in <module>
    RegistrationSingleton.objects.get()
  File "/home/cubie/webapps/mayan/mayan/apps/common/models.py", line 12, in get
    instance, created = self.model.objects.get_or_create(lock_id=SINGLETON_LOCK_ID, **kwargs)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/manager.py", line 135, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/query.py", line 378, in get_or_create
    return self.get(**lookup), False
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/query.py", line 341, in get
    clone = self.filter(*args, **kwargs)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/query.py", line 550, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/query.py", line 568, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1194, in add_q
    can_reuse=used_aliases, force_having=force_having)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1069, in add_filter
    negate=negate, process_extras=process_extras)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1248, in setup_joins
    field, model, direct, m2m = opts.get_field_by_name(name)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/options.py", line 307, in get_field_by_name
    cache = self.init_name_map()
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/options.py", line 337, in init_name_map
    for f, model in self.get_all_related_m2m_objects_with_model():
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/options.py", line 414, in get_all_related_m2m_objects_with_model
    cache = self._fill_related_many_to_many_cache()
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/options.py", line 428, in _fill_related_many_to_many_cache
    for klass in get_models():
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/loading.py", line 167, in get_models
    self._populate()
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/loading.py", line 61, in _populate
    self.load_app(app_name, True)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
    models = import_module('.models', app_name)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/dynamic_search/models.py", line 18, in <module>
    class RecentSearch(models.Model):
  File "/home/cubie/webapps/mayan/mayan/apps/dynamic_search/models.py", line 22, in RecentSearch
    user = models.ForeignKey(User, verbose_name=_(u'user'), editable=False)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/checkouts/__init__.py", line 9, in <module>
    from documents.models import Document
  File "/home/cubie/webapps/mayan/mayan/apps/documents/__init__.py", line 18, in <module>
    from .models import (Document, DocumentPage,
  File "/home/cubie/webapps/mayan/mayan/apps/documents/models.py", line 619, in <module>
    class DocumentPageTransformation(models.Model):
  File "/home/cubie/webapps/mayan/mayan/apps/documents/models.py", line 626, in DocumentPageTransformation
    transformation = models.CharField(choices=get_available_transformations_choices(), max_length=128, verbose_name=_(u'transformation'))
  File "/home/cubie/webapps/mayan/mayan/apps/converter/api.py", line 132, in get_available_transformations_choices
    transformation_template = u'%s %s' % (TRANSFORMATION_CHOICES[transformation]['label'], u','.join(['<%s>' % argument['name'] if argument['required'] else '[%s]' % argument['name'] for argument in TRANSFORMATION_CHOICES[transformation]['arguments']]))
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 206, in __unicode_cast
    return self.__func(*self.__args, **self.__kw)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/sources/__init__.py", line 13, in <module>
    from .models import (WebForm, StagingFolder, SourceTransformation,
  File "/home/cubie/webapps/mayan/mayan/apps/sources/models.py", line 17, in <module>
    from document_indexing.api import update_indexes
  File "/home/cubie/webapps/mayan/mayan/apps/document_indexing/__init__.py", line 13, in <module>
    from .models import (Index, IndexTemplateNode, IndexInstanceNode)
  File "/home/cubie/webapps/mayan/mayan/apps/document_indexing/models.py", line 14, in <module>
    available_indexing_functions_string = (_(u'Available functions: %s') % u','.join([u'%s()' % name for name, function in AVAILABLE_INDEXING_FUNCTIONS.items()])) if AVAILABLE_INDEXING_FUNCTIONS else u''
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 227, in __mod__
    return unicode(self) % rhs
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 206, in __unicode_cast
    return self.__func(*self.__args, **self.__kw)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/ocr/__init__.py", line 21, in <module>
    from .models import DocumentQueue, QueueTransformation
  File "/home/cubie/webapps/mayan/mayan/apps/ocr/models.py", line 103, in <module>
    class QueueTransformation(models.Model):
  File "/home/cubie/webapps/mayan/mayan/apps/ocr/models.py", line 112, in QueueTransformation
    transformation = models.CharField(choices=get_available_transformations_choices(), max_length=128, verbose_name=_(u'transformation'))
  File "/home/cubie/webapps/mayan/mayan/apps/converter/api.py", line 132, in get_available_transformations_choices
    transformation_template = u'%s %s' % (TRANSFORMATION_CHOICES[transformation]['label'], u','.join(['<%s>' % argument['name'] if argument['required'] else '[%s]' % argument['name'] for argument in TRANSFORMATION_CHOICES[transformation]['arguments']]))
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 206, in __unicode_cast
    return self.__func(*self.__args, **self.__kw)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/linking/__init__.py", line 12, in <module>
    from .models import SmartLink, SmartLinkCondition
  File "/home/cubie/webapps/mayan/mayan/apps/linking/models.py", line 6, in <module>
    from .managers import SmartLinkManager
  File "/home/cubie/webapps/mayan/mayan/apps/linking/managers.py", line 6, in <module>
    from metadata.classes import MetadataClass
  File "/home/cubie/webapps/mayan/mayan/apps/metadata/__init__.py", line 13, in <module>
    from .models import MetadataType, MetadataSet
  File "/home/cubie/webapps/mayan/mayan/apps/metadata/models.py", line 11, in <module>
    available_models_string = (_(u' Available models: %s') % u','.join([name for name, model in AVAILABLE_MODELS.items()])) if AVAILABLE_MODELS else u''
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 227, in __mod__
    return unicode(self) % rhs
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/functional.py", line 206, in __unicode_cast
    return self.__func(*self.__args, **self.__kw)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/folders/__init__.py", line 12, in <module>
    from .models import Folder
  File "/home/cubie/webapps/mayan/mayan/apps/folders/models.py", line 10, in <module>
    class Folder(models.Model):
  File "/home/cubie/webapps/mayan/mayan/apps/folders/models.py", line 11, in Folder
    title = models.CharField(max_length=128, verbose_name=_(u'title'), db_index=True)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 81, in ugettext
    return _trans.ugettext(message)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 286, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 276, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
    app = import_module(appname)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/app_registry/__init__.py", line 23, in <module>
    register_apps()
  File "/home/cubie/webapps/mayan/mayan/apps/app_registry/__init__.py", line 16, in register_apps
    App.register(app_name)
  File "/home/cubie/webapps/mayan/mayan/apps/app_registry/models.py", line 24, in register
    app_module = import_module(app_name)
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/cubie/webapps/mayan/mayan/apps/installation/__init__.py", line 67, in <module>
    check_first_run()
  File "/home/cubie/webapps/mayan/local/lib/python2.7/site-packages/django/db/transaction.py", line 217, in inner
    res = func(*args, **kwargs)
  File "/home/cubie/webapps/mayan/mayan/apps/installation/__init__.py", line 37, in check_first_run
    details.submit()
  File "/home/cubie/webapps/mayan/mayan/apps/installation/models.py", line 163, in submit
    self.set_properties()
  File "/home/cubie/webapps/mayan/mayan/apps/installation/models.py", line 147, in set_properties
    self.git_properties()
  File "/home/cubie/webapps/mayan/mayan/apps/installation/models.py", line 117, in git_properties
    namespace.add_property(Property('is_git_repo', _(u'Running from a Git repository'), False))
  File "/home/cubie/webapps/mayan/mayan/apps/installation/classes.py", line 47, in add_property
    prop = Property(*args, **kwargs)
TypeError: __init__() takes at least 4 arguments (2 given)


Reply all
Reply to author
Forward
0 new messages