bihealth / sodar-core

SODAR Core: A Django-based framework for building scientific data management web apps
MIT License
9 stars 1 forks source link

Django server/tests fails to start with latest sodar core. #161

Closed mikkonie closed 2 years ago

mikkonie commented 5 years ago

In GitLab by @stolpeo on Mar 5, 2019, 08:01

VarFish webserver won't start / tests fail to setup environment for VarFish with the latest sodar core master dev. This is the stack trace:

  File "manage.py", line 29, in <module>
    execute_from_command_line(sys.argv)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/commands/test.py", line 29, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/commands/test.py", line 62, in handle
    failures = test_runner.run_tests(test_labels)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/test/runner.py", line 601, in run_tests
    old_config = self.setup_databases()
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/test/runner.py", line 546, in setup_databases
    self.parallel, **kwargs
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/test/utils.py", line 187, in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/db/backends/base/creation.py", line 69, in create_test_db
    run_syncdb=True,
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
    return command.execute(*args, **defaults)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 227, in handle
    self.verbosity, self.interactive, connection.alias, apps=post_migrate_apps, plan=plan,
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/core/management/sql.py", line 53, in emit_post_migrate_signal
    **kwargs
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 193, in send
    for receiver in self._live_receivers(sender)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/site-packages/django/dispatch/dispatcher.py", line 193, in <listcomp>
    for receiver in self._live_receivers(sender)
  File "/home/ostolpe/dev/varfish-web/src/django-plugins/djangoplugins/management/__init__.py", line 21, in sync_plugins
    SyncPlugins(False, verbosity).all()
  File "/home/ostolpe/dev/varfish-web/src/django-plugins/djangoplugins/management/commands/syncplugins.py", line 43, in __init__
    load_plugins()
  File "/home/ostolpe/dev/varfish-web/src/django-plugins/djangoplugins/utils.py", line 66, in load_plugins
    import_module('%s.plugins' % app)
  File "/vol/local/data/miniconda3/envs/varfish-web/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ostolpe/dev/varfish-web/src/django-sodar-core/adminalerts/plugins.py", line 9, in <module>
    from .urls import urlpatterns
  File "/home/ostolpe/dev/varfish-web/src/django-sodar-core/adminalerts/urls.py", line 3, in <module>
    from . import views
  File "/home/ostolpe/dev/varfish-web/src/django-sodar-core/adminalerts/views.py", line 15, in <module>
    from projectroles.views import (
  File "/home/ostolpe/dev/varfish-web/src/django-sodar-core/projectroles/views.py", line 62, in <module>
    from .forms import (
  File "/home/ostolpe/dev/varfish-web/src/django-sodar-core/projectroles/forms.py", line 58, in <module>
    class UserAutocompleteWidget(autocomplete.ModelSelect2):
AttributeError: module 'dal.autocomplete' has no attribute 'ModelSelect2'
mikkonie commented 5 years ago

In GitLab by @stolpeo on Mar 5, 2019, 08:20

I switched to release 0.4.4 now, that works. I wasn't aware that I was still using dev branch to setup my environment.

mikkonie commented 5 years ago

This is because you have not installed the updated requirements of the dev branch.

Unless there is a good reason, it is strongly recommended to only include a tagged master branch release of SODAR Core into your projects. If not, keeping up with updated requirements, breaking changes etc. is purely up to you :)

Closing the issue.

mikkonie commented 5 years ago

closed