[GH-ISSUE #212] error 500 in /info/inst/cpu/<id>/<name>/ #163

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

Originally created by @bsavelev on GitHub (Jan 28, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/212

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/var/www/webvirtmgr/instance/views.py", line 251, in cpuusage
    datasets.append(int(cpu_usage['cpu']))

TypeError: 'int' object has no attribute '__getitem__'
Originally created by @bsavelev on GitHub (Jan 28, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/212 ``` Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/var/www/webvirtmgr/instance/views.py", line 251, in cpuusage datasets.append(int(cpu_usage['cpu'])) TypeError: 'int' object has no attribute '__getitem__' ```
kerem closed this issue 2026-02-27 16:38:13 +03:00
Author
Owner

@retspen commented on GitHub (Jan 29, 2014):

Libvirt version ?

<!-- gh-comment-id:33585017 --> @retspen commented on GitHub (Jan 29, 2014): Libvirt version ?
Author
Owner

@bsavelev commented on GitHub (Jan 29, 2014):

libvirtd --version
libvirtd (libvirt) 0.9.12

<!-- gh-comment-id:33590064 --> @bsavelev commented on GitHub (Jan 29, 2014): libvirtd --version libvirtd (libvirt) 0.9.12
Author
Owner

@bsavelev commented on GitHub (Jan 30, 2014):

utr with gunicorn

<!-- gh-comment-id:33661579 --> @bsavelev commented on GitHub (Jan 30, 2014): utr with gunicorn
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#163
No description provided.