WebvirtManager - KVM Virtualisierung

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
amw
Beiträge: 6
Registriert: 30.12.2012 19:51:17

WebvirtManager - KVM Virtualisierung

Beitrag von amw » 31.12.2012 12:54:40

Guten Morgen,

ich habe eine dringende Frage und zwar versuche ich WebvirtManager auf Debian Linux 6.0.6 AMD64 zu Installieren. Leider bleibt er immer beim Aufruf von

Code: Alles auswählen

manage.py syncdb
mit dieser Ausgabe stehen:

Code: Alles auswählen

root@vm-host:/webvirtmgr# ./manage.py syncdb
Traceback (most recent call last):
  File "./manage.py", line 14, in <module>
    execute_manager(settings)
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 219, in execute
    self.validate()
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/pymodules/python2.6/django/core/management/validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 146, in get_app_errors
    self._populate()
  File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 61, in _populate
    self.load_app(app_name, True)
  File "/usr/lib/pymodules/python2.6/django/db/models/loading.py", line 76, in load_app
    app_module = import_module(app_name)
  File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module
    __import__(name)
ImportError: No module named staticfiles
Als Webframework wird hier DJANGO benutzt bei Python Version 2.6 .
Das Python Script soll nachher über libvirtd auf KVM/QEMU zugreifen.

Ich habe in der Readme gelesen das der Manager auf Ubuntu 12.04 laufen sollte, Daher dachte ich das er das dann auf Debian auch sollte.

Vielen Dank im vorraus für eure Vorschläge

Boity
Beiträge: 799
Registriert: 15.05.2009 13:59:19

Re: WebvirtManager - KVM Virtualisierung

Beitrag von Boity » 31.12.2012 13:51:22

Hast du schon mal davor den Interpreter ausgeführt? (python manage.py syncdb)

Ansonsten welche Django Version,alternativ 2.7er Python Version austesten. (Ubuntu 12.04 läuft zusätzlich mit 3.2er Python Version, so viel ich weiss)


Gruß

amw
Beiträge: 6
Registriert: 30.12.2012 19:51:17

Re: WebvirtManager - KVM Virtualisierung

Beitrag von amw » 31.12.2012 14:00:33

Das muss ich noch testen ich habe aber zur Sicherheit schon mal Python 3.2 kompiliert und Installiert, damit geht es leider auch nicht.
Dort kommen halt ein paar weniger Fehlermeldungen. Ich werde das ganze System testweise nochmal neu aufsetzen. Und dann nur die Aktuellsten kompilierten Python Versionen installieren. Und das dann nochmal probieren.

Aber was bedeuten die Fehlermeldungen denn im Detail?
Habe mir schon das Galileo Openbook über Python durchgesehen aber dort wird auch nichts in dem Zusammenhang mit Django behandelt.

Auf der Django Webseite könnte ich auch mal nachsehen...

mtheiss
Beiträge: 154
Registriert: 01.04.2005 22:07:26
Lizenz eigener Beiträge: MIT Lizenz

Re: WebvirtManager - KVM Virtualisierung

Beitrag von mtheiss » 31.12.2012 16:31:31

Hallo,

es müsste an der Djangoversion liegen. in der Version von http://packages.debian.org/squeeze-back ... hon-django sind auch die contribs von staticfiles mit dabei.

Gruss
Martin

amw
Beiträge: 6
Registriert: 30.12.2012 19:51:17

Re: WebvirtManager - KVM Virtualisierung

Beitrag von amw » 31.12.2012 17:18:18

Es hat sich gebessert der befehl läuft durch, scheint aber immer noch ein bisschen Zickig zu sein:

Code: Alles auswählen

./manage.py syncdb
/usr/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
  "use STATIC_URL instead.", DeprecationWarning)
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table polls_host

You just installed Django's auth system, which means you don't have any superusers defined.

Antworten