[GH-ISSUE #103] Server Error 500 - Creating New VM #87

Closed
opened 2026-02-27 16:01:01 +03:00 by kerem · 1 comment
Owner

Originally created by @sframe on GitHub (Aug 13, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/103

Am looking forward to using this program, but I keep getting an error when creating a new VM. Tested using runserver and Gunicorn.

Any advice would be much appreciated.

Request Method:     POST
Request URL:    http://192.168.1.131:8000/newvm/1/
Django Version:     1.4.5
Exception Type:     TypeError
Exception Value:    

argument of type 'NoneType' is not iterable

Exception Location:     /usr/local/etc/webvirtmgr/newvm/views.py in newvm, line 89
Python Executable:  /usr/bin/python
Python Version:     2.7.3
Python Path:    

['/usr/local/etc/webvirtmgr',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/local/etc/webvirtmgr/webvirtmgr']

Server time:    Wed, 14 Aug 2013 00:25:33 +0300

Environment:


Request Method: POST
Request URL: http://192.168.1.131:8000/newvm/1/

Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'vds')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/etc/webvirtmgr/newvm/views.py" in newvm
  89.                 if vname in all_vm:

Exception Type: TypeError at /newvm/1/
Exception Value: argument of type 'NoneType' is not iterable

Originally created by @sframe on GitHub (Aug 13, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/103 Am looking forward to using this program, but I keep getting an error when creating a new VM. Tested using runserver and Gunicorn. Any advice would be much appreciated. ``` Request Method: POST Request URL: http://192.168.1.131:8000/newvm/1/ Django Version: 1.4.5 Exception Type: TypeError Exception Value: argument of type 'NoneType' is not iterable Exception Location: /usr/local/etc/webvirtmgr/newvm/views.py in newvm, line 89 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/usr/local/etc/webvirtmgr', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/local/etc/webvirtmgr/webvirtmgr'] Server time: Wed, 14 Aug 2013 00:25:33 +0300 ``` ``` python Environment: Request Method: POST Request URL: http://192.168.1.131:8000/newvm/1/ Django Version: 1.4.5 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'vds') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/etc/webvirtmgr/newvm/views.py" in newvm 89. if vname in all_vm: Exception Type: TypeError at /newvm/1/ Exception Value: argument of type 'NoneType' is not iterable ```
kerem closed this issue 2026-02-27 16:01:01 +03:00
Author
Owner

@sframe commented on GitHub (Aug 13, 2013):

Ah, I see it has already been fixed! Issue #102

Nevermind ^_^

<!-- gh-comment-id:22600274 --> @sframe commented on GitHub (Aug 13, 2013): Ah, I see it has already been fixed! Issue #102 Nevermind ^_^
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#87
No description provided.