[GH-ISSUE #315] Error Instances #246

Closed
opened 2026-02-27 16:38:34 +03:00 by kerem · 8 comments
Owner

Originally created by @ajolote on GitHub (May 22, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/315

Hy

Sorry for my english

I've installed webvirtmgr, great project, but when i try to access to instances page de next error shows

UnboundLocalError at /instances/1/

local variable 'get_instances' referenced before assignment

Request Method: GET
Request URL: http://172.16.1.5:8000/instances/1/
Django Version: 1.6.5
Exception Type: UnboundLocalError
Exception Value:

local variable 'get_instances' referenced before assignment

Exception Location: /var/www/webvirtmgr/instance/views.py in instances, line 382
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path:

['/var/www/webvirtmgr',
'/usr/lib64/python26.zip',
'/usr/lib64/python2.6',
'/usr/lib64/python2.6/plat-linux2',
'/usr/lib64/python2.6/lib-tk',
'/usr/lib64/python2.6/lib-old',
'/usr/lib64/python2.6/lib-dynload',
'/usr/lib64/python2.6/site-packages',
'/usr/lib64/python2.6/site-packages/gtk-2.0',
'/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info']

Server time: Jue, 22 May 2014 23:22:41 +0300

can anyone help with this

Thanks

Originally created by @ajolote on GitHub (May 22, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/315 Hy Sorry for my english I've installed webvirtmgr, great project, but when i try to access to instances page de next error shows UnboundLocalError at /instances/1/ local variable 'get_instances' referenced before assignment Request Method: GET Request URL: http://172.16.1.5:8000/instances/1/ Django Version: 1.6.5 Exception Type: UnboundLocalError Exception Value: local variable 'get_instances' referenced before assignment Exception Location: /var/www/webvirtmgr/instance/views.py in instances, line 382 Python Executable: /usr/bin/python Python Version: 2.6.6 Python Path: ['/var/www/webvirtmgr', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info'] Server time: Jue, 22 May 2014 23:22:41 +0300 can anyone help with this Thanks
kerem closed this issue 2026-02-27 16:38:35 +03:00
Author
Owner

@retspen commented on GitHub (May 23, 2014):

Do you read https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr ?

<!-- gh-comment-id:44009428 --> @retspen commented on GitHub (May 23, 2014): Do you read https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr ?
Author
Owner

@ajolote commented on GitHub (May 23, 2014):

Hello

Thanks for the anwer

Yes i follow the instructions on that page, actually a can´t access to server until a run ./manage.py runserver 172.16.1.5:8000 in my server, after that a login and when click on instances the problem apears.

I've change debug to true so i get de page with the problem

Thanks

<!-- gh-comment-id:44011404 --> @ajolote commented on GitHub (May 23, 2014): Hello Thanks for the anwer Yes i follow the instructions on that page, actually a can´t access to server until a run ./manage.py runserver 172.16.1.5:8000 in my server, after that a login and when click on instances the problem apears. I've change debug to true so i get de page with the problem Thanks
Author
Owner

@retspen commented on GitHub (May 23, 2014):

How can you install django-1.6.5? If you follow instruction django installed only 1.5.5

<!-- gh-comment-id:44011797 --> @retspen commented on GitHub (May 23, 2014): How can you install django-1.6.5? If you follow instruction django installed only 1.5.5
Author
Owner

@ajolote commented on GitHub (May 23, 2014):

Sorry i forgot metioned, my sistem is centos 6.5 X86_64, the default version of djando is 1.4 so i updated to latest 1.6.5, the django version could be the problem??

<!-- gh-comment-id:44012324 --> @ajolote commented on GitHub (May 23, 2014): Sorry i forgot metioned, my sistem is centos 6.5 X86_64, the default version of djando is 1.4 so i updated to latest 1.6.5, the django version could be the problem??
Author
Owner

@retspen commented on GitHub (May 23, 2014):

No, but when you do that:

$ sudo python-pip install -r requirements.txt

you can't install Django-1.4. And check libvirt-python:

$ python
>>> import libvirt
>>> libvirt.getVersion()
<!-- gh-comment-id:44013115 --> @retspen commented on GitHub (May 23, 2014): No, but when you do that: ``` $ sudo python-pip install -r requirements.txt ``` you can't install Django-1.4. And check libvirt-python: ``` $ python >>> import libvirt >>> libvirt.getVersion() ```
Author
Owner

@ajolote commented on GitHub (May 23, 2014):

mm when i run then command get this Cannot fetch index base URL https://pypi.python.org/simple/ so i installed everything manually

i supose the error is because the sistem is behind a proxy squid

<!-- gh-comment-id:44018476 --> @ajolote commented on GitHub (May 23, 2014): mm when i run then command get this Cannot fetch index base URL https://pypi.python.org/simple/ so i installed everything manually i supose the error is because the sistem is behind a proxy squid
Author
Owner

@retspen commented on GitHub (May 23, 2014):

Did you install libvirt-python ?

<!-- gh-comment-id:44048782 --> @retspen commented on GitHub (May 23, 2014): Did you install libvirt-python ?
Author
Owner

@retspen commented on GitHub (May 26, 2014):

Fix - 66c59b68f6

<!-- gh-comment-id:44161467 --> @retspen commented on GitHub (May 26, 2014): Fix - 66c59b68f61d36a2c2f1172dc33bb03a2c16e6af
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#246
No description provided.