Code

Ticket #11149: trackback.txt

File trackback.txt, 29.3 KB (added by romankrv, 5 years ago)
Line 
1
2IOError at /users/a1/
3
4cannot identify image file
5
6Request Method:         POST
7Request URL:    http://127.0.0.1:8000/users/a1/
8Exception Type:         IOError
9Exception Value:       
10
11cannot identify image file
12
13Exception Location:     /usr/lib/python2.5/site-packages/PIL/Image.py in open, line 1917
14Python Executable:      /usr/bin/python
15Python Version:         2.5.4
16Python Path:    ['/home/r/PROJECTS/django/mysites/myprj/../myprj', '/home/r/PROJECTS/django/mysites/myprj', '/home/r/PROJECTS/django/mysites/myprj', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode', '/home/r/PROJECTS/django/mysites/myprj/apps', '/home/r/PROJECTS/django/mysites/myprj/../myprj/apps']
17Server time:    Втр, 19 Май 2009 19:47:41 +0300
18Traceback Switch to copy-and-paste view
19
20    * /usr/lib/python2.5/site-packages/django/core/handlers/base.py in get_response
21        85. # Apply view middleware
22        86. for middleware_method in self._view_middleware:
23        87. response = middleware_method(request, callback, callback_args, callback_kwargs)
24        88. if response:
25        89. return response
26        90.
27        91. try:
28        92. response = callback(request, *callback_args, **callback_kwargs) ...
29        93. except Exception, e:
30        94. # If the view raised an exception, run it through exception
31        95. # middleware, and if the exception middleware returns a
32        96. # response, use that. Otherwise, reraise the exception.
33        97. for middleware_method in self._exception_middleware:
34        98. response = middleware_method(request, e)
35      ▶ Local vars
36      Variable  Value
37      callback 
38      <function private_data at 0x9819064>
39      callback_args     
40      (u'a1',)
41      callback_kwargs   
42      {}
43      e         
44      IOError('cannot identify image file',)
45      exc_info 
46      (<type 'exceptions.IOError'>, IOError('cannot identify image file',), <traceback object at 0x98d7734>)
47      exceptions       
48      <module 'django.core.exceptions' from '/usr/lib/python2.5/site-packages/django/core/exceptions.py'>
49      middleware_method         
50      <bound method PermissionDeniedMiddleware.process_exception of <sphene.community.middleware.PermissionDeniedMiddleware object at 0x94a58ac>>
51      receivers         
52      [(<function _rollback_on_exception at 0x8e8f064>, None)]
53      request   
54      <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'type_forma': [u'upload'], u'description': [u'']}>, COOKIES:{'sessionid': '2859e570436c9644d275d3222b6f32ff', 'ui-tabs-3': '4'}, META:{'COLORTERM': 'gnome-terminal', 'CONTENT_LENGTH': '806582', 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------97986378021161201242139943020', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-xsq3O9EIAx,guid=53a931d10bf7f8c51ccb1ad34a1278d2', 'DESKTOP_SESSION': 'default.desktop', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'myprj.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'default.desktop', 'GDM_LANG': 'ru_RU.UTF-8', 'GDM_XSERVER_LOCATION': 'local', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_SOCKET': '/tmp/keyring-RXkGjd/socket', 'GPG_AGENT_INFO': '/tmp/gpg-43uqI8/S.gpg-agent:3473:1', 'GTK_MODULES': 'canberra-gtk-module', 'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/r/.gtkrc-1.2-gnome2', 'HISTCONTROL': 'ignoreboth', 'HOME': '/home/r', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru,en;q=0.7,en-us;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'ui-tabs-3=4; sessionid=2859e570436c9644d275d3222b6f32ff', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/users/a1/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10', 'LANG': 'ru_RU.UTF-8', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'r', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:', 'OLDPWD': '/home/r', 'ORBIT_SOCKETDIR': '/tmp/orbit-r', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/users/a1/', 'PWD': '/home/r/myprj', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.4', 'SESSION_MANAGER': 'local/krv:/tmp/.ICE-unix/3377', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SSH_AGENT_PID': '3472', 'SSH_AUTH_SOCK': '/tmp/keyring-RXkGjd/socket.ssh', 'TERM': 'xterm', 'TZ': 'Europe/Kiev', 'USER': 'r', 'USERNAME': 'r', 'WINDOWID': '23068726', 'WINDOWPATH': '7', 'XAUTHORITY': '/home/r/.Xauthority', 'XDG_DATA_DIRS': '/usr/local/share/:/usr/share/:/usr/share/gdm/', 'XDG_SESSION_COOKIE': '0c043d89b148b6880bffa0994a07fc70-1242724560.780693-566207087', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7dd00b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x960de64>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
55      resolver 
56      <RegexURLResolver myprj.urls ^/>
57      response 
58      None
59      self     
60      <django.core.handlers.wsgi.WSGIHandler object at 0x9498eec>
61      settings 
62      <django.conf.LazySettings object at 0x8cff1cc>
63      urlconf   
64      'myprj.urls'
65      urlresolvers     
66      <module 'django.core.urlresolvers' from '/usr/lib/python2.5/site-packages/django/core/urlresolvers.py'>
67    * /home/r/PROJECTS/django/mysites/myprj/../myprj/apps/registration/views.py in private_data
68        80. type_forma = request.POST.get('type_forma', 'nothing')
69        81. if type_forma == "upload":
70        82. if photos.count() < settings.LIMIT_UPLOAD_PHOTO:
71        83. form_photo = PhotomyprjForm({'userprofile': current_user}, request.FILES)
72        84. if form_photo.is_valid():
73        85. post = request.POST.copy()
74        86. post.update({'userprofile': current_user})
75        87. form_photo = PhotomyprjForm(post, request.FILES).save() ...
76        88. return HttpResponseRedirect(reverse('thanks', args=(username,)))
77        89. else:
78        90. return render_to_response('error.html', {'error': "Превышен лимит загрузки фото"})
79        91.
80        92. if type_forma == "delete":
81        93. for path in request.POST.getlist('list_photo'):
82      ▶ Local vars
83      Variable  Value
84      args     
85      (u'a1',)
86      current_user     
87      <UserProfile: GTH SDFGFH QWWERTT>
88      form_photo       
89      <apps.registration.forms.PhotomyprjForm object at 0x9689aac>
90      photos   
91      []
92      post     
93      <QueryDict: {u'type_forma': [u'upload'], u'description': [u''], u'userprofile': [<UserProfile: GTH SDFGFH QWWERTT>]}>
94      request   
95      <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'type_forma': [u'upload'], u'description': [u'']}>, COOKIES:{'sessionid': '2859e570436c9644d275d3222b6f32ff', 'ui-tabs-3': '4'}, META:{'COLORTERM': 'gnome-terminal', 'CONTENT_LENGTH': '806582', 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------97986378021161201242139943020', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-xsq3O9EIAx,guid=53a931d10bf7f8c51ccb1ad34a1278d2', 'DESKTOP_SESSION': 'default.desktop', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'myprj.settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GDMSESSION': 'default.desktop', 'GDM_LANG': 'ru_RU.UTF-8', 'GDM_XSERVER_LOCATION': 'local', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GNOME_KEYRING_SOCKET': '/tmp/keyring-RXkGjd/socket', 'GPG_AGENT_INFO': '/tmp/gpg-43uqI8/S.gpg-agent:3473:1', 'GTK_MODULES': 'canberra-gtk-module', 'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/r/.gtkrc-1.2-gnome2', 'HISTCONTROL': 'ignoreboth', 'HOME': '/home/r', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'ru,en;q=0.7,en-us;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'ui-tabs-3=4; sessionid=2859e570436c9644d275d3222b6f32ff', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/users/a1/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10', 'LANG': 'ru_RU.UTF-8', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'LOGNAME': 'r', 'LS_COLORS': 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:', 'OLDPWD': '/home/r', 'ORBIT_SOCKETDIR': '/tmp/orbit-r', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'PATH_INFO': u'/users/a1/', 'PWD': '/home/r/myprj', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.4', 'SESSION_MANAGER': 'local/krv:/tmp/.ICE-unix/3377', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SSH_AGENT_PID': '3472', 'SSH_AUTH_SOCK': '/tmp/keyring-RXkGjd/socket.ssh', 'TERM': 'xterm', 'TZ': 'Europe/Kiev', 'USER': 'r', 'USERNAME': 'r', 'WINDOWID': '23068726', 'WINDOWPATH': '7', 'XAUTHORITY': '/home/r/.Xauthority', 'XDG_DATA_DIRS': '/usr/local/share/:/usr/share/:/usr/share/gdm/', 'XDG_SESSION_COOKIE': '0c043d89b148b6880bffa0994a07fc70-1242724560.780693-566207087', '_': './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7dd00b0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x960de64>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
96      type_forma       
97      u'upload'
98      username 
99      u'a1'
100    * /usr/lib/python2.5/site-packages/django/forms/models.py in save
101       400. database. Returns ``instance``.
102       401. """
103       402. if self.instance.pk is None:
104       403. fail_message = 'created'
105       404. else:
106       405. fail_message = 'changed'
107       406. return save_instance(self, self.instance, self._meta.fields,
108       407. fail_message, commit, exclude=self._meta.exclude) ...
109       408.
110       409. save.alters_data = True
111       410.
112       411. class ModelForm(BaseModelForm):
113       412. __metaclass__ = ModelFormMetaclass
114 413.
115      ▶ Local vars
116      Variable  Value
117      commit   
118      True
119      fail_message     
120      'created'
121      self     
122      <apps.registration.forms.PhotomyprjForm object at 0x968fe8c>
123    * /usr/lib/python2.5/site-packages/django/forms/models.py in save_instance
124        58. # instead of allowing it and throwing an error.
125        59. if isinstance(f, models.OneToOneField) and cleaned_data[f.name] is None:
126        60. pass
127        61. else:
128        62. f.save_form_data(instance, cleaned_data[f.name])
129        63.
130        64. for f in file_field_list:
131        65. f.save_form_data(instance, cleaned_data[f.name]) ...
132        66.
133        67. # Wrap up the saving of m2m data as a function.
134        68. def save_m2m():
135        69. opts = instance._meta
136        70. cleaned_data = form.cleaned_data
137        71. for f in opts.many_to_many:
138      ▶ Local vars
139      Variable  Value
140      cleaned_data     
141      {'description': u'', 'photo': <InMemoryUploadedFile: P1010003.JPG (image/jpeg)>, 'userprofile': <UserProfile: GTH SDFGFH QWWERTT>}
142      commit   
143      True
144      exclude   
145      None
146      f         
147      <registration.fields.ThumbnailImageField object at 0x9341aac>
148      fail_message     
149      'created'
150      fields   
151      None
152      file_field_list   
153      [<registration.fields.ThumbnailImageField object at 0x9341aac>]
154      form     
155      <apps.registration.forms.PhotomyprjForm object at 0x968fe8c>
156      instance 
157      <Photomyprj: P1010003.JPG>
158      models   
159      <module 'django.db.models' from '/usr/lib/python2.5/site-packages/django/db/models/__init__.py'>
160      opts     
161      <Options for Photomyprj>
162    * /home/r/PROJECTS/django/mysites/myprj/apps/registration/fields.py in save_form_data
163         9. from math import atan, degrees
164        10. FONT = settings.MEDIA_ROOT + settings.FONT_NAME
165        11.
166        12.
167        13. class ThumbnailImageField(models.ImageField):
168        14. def save_form_data(self, instance, data):
169        15. if data and isinstance(data, UploadedFile):
170        16. im = Image.open(data).convert("RGB") ...
171        17. watermark = Image.new("RGBA", (im.size[0], im.size[1]))
172        18. draw = ImageDraw.ImageDraw(watermark, "RGBA")
173        19. size = 0
174        20. while True:
175        21. size += 1
176        22. nextfont = ImageFont.truetype(FONT, size)
177      ▶ Local vars
178      Variable  Value
179      data     
180      <InMemoryUploadedFile: P1010003.JPG (image/jpeg)>
181      instance 
182      <Photomyprj: P1010003.JPG>
183      self     
184      <registration.fields.ThumbnailImageField object at 0x9341aac>
185    * /usr/lib/python2.5/site-packages/PIL/Image.py in open
186      1910. factory, accept = OPEN[i]
187      1911. if not accept or accept(prefix):
188      1912. fp.seek(0)
189      1913. return factory(fp, filename)
190      1914. except (SyntaxError, IndexError, TypeError):
191      1915. pass
1921916.
193      1917. raise IOError("cannot identify image file") ...
194      1918.
195      1919. #
196      1920. # Image processing.
197      1921.
198      1922. ##
199      1923. # Creates a new image by interpolating between two input images, using
200      ▶ Local vars
201      Variable  Value
202      accept   
203      None
204      factory   
205      <class PIL.SpiderImagePlugin.SpiderImageFile at 0x98d623c>
206      filename 
207      ''
208      fp       
209      <InMemoryUploadedFile: P1010003.JPG (image/jpeg)>
210      i         
211      'SPIDER'
212      mode     
213      'r'
214      prefix   
215      ''
216
217Environment: Request Method: POST Request URL: http://127.0.0.1:8000/users/a1/ Django Version: 1.1 beta 1 SVN-10825 Python Version: 2.5.4 Installed Applications: ['django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.humanize', 'django.contrib.comments', 'django.contrib.sitemaps', 'djapian', 'apps.new', 'registration', 'find', 'apps.log', 'tinymce', 'apps.consult', 'filebrowser', 'template_utils', 'sphene.community', 'sphene.sphboard', 'sphene.sphwiki', 'sphene.sphsearchboard', 'cms'] Installed Middleware: ('sphene.community.middleware.ThreadLocals', 'sphene.community.middleware.GroupMiddleware', 'sphene.community.middleware.LastModified', 'sphene.community.middleware.PermissionDeniedMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.gzip.GZipMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "/home/r/PROJECTS/django/mysites/myprj/../myprj/apps/registration/views.py" in private_data 87. form_photo = PhotomyprjForm(post, request.FILES).save() File "/usr/lib/python2.5/site-packages/django/forms/models.py" in save 407. fail_message, commit, exclude=self._meta.exclude) File "/usr/lib/python2.5/site-packages/django/forms/models.py" in save_instance 65. f.save_form_data(instance, cleaned_data[f.name]) File "/home/r/PROJECTS/django/mysites/myprj/apps/registration/fields.py" in save_form_data 16. im = Image.open(data).convert("RGB") File "/usr/lib/python2.5/site-packages/PIL/Image.py" in open 1917. raise IOError("cannot identify image file") Exception Type: IOError at /users/a1/ Exception Value: cannot identify image file
218
219Request information
220GET
221
222No GET data
223POST
224Variable        Value
225type_forma     
226u'upload'
227description     
228u''
229FILES
230Variable        Value
231photo   
232<InMemoryUploadedFile: P1010003.JPG (image/jpeg)>
233COOKIES
234Variable        Value
235ui-tabs-3       
236'4'
237sessionid       
238'2859e570436c9644d275d3222b6f32ff'
239META
240Variable        Value
241COLORTERM       
242'gnome-terminal'
243CONTENT_LENGTH 
244'806582'
245CONTENT_TYPE   
246'multipart/form-data; boundary=---------------------------97986378021161201242139943020'
247DBUS_SESSION_BUS_ADDRESS       
248'unix:abstract=/tmp/dbus-xsq3O9EIAx,guid=53a931d10bf7f8c51ccb1ad34a1278d2'
249DESKTOP_SESSION         
250'default.desktop'
251DISPLAY         
252':0.0'
253DJANGO_SETTINGS_MODULE 
254'myprj.settings'
255GATEWAY_INTERFACE       
256'CGI/1.1'
257GDMSESSION     
258'default.desktop'
259GDM_LANG       
260'ru_RU.UTF-8'
261GDM_XSERVER_LOCATION   
262'local'
263GNOME_DESKTOP_SESSION_ID       
264'this-is-deprecated'
265GNOME_KEYRING_SOCKET   
266'/tmp/keyring-RXkGjd/socket'
267GPG_AGENT_INFO 
268'/tmp/gpg-43uqI8/S.gpg-agent:3473:1'
269GTK_MODULES     
270'canberra-gtk-module'
271GTK_RC_FILES   
272'/etc/gtk/gtkrc:/home/r/.gtkrc-1.2-gnome2'
273HISTCONTROL     
274'ignoreboth'
275HOME   
276'/home/r'
277HTTP_ACCEPT     
278'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
279HTTP_ACCEPT_CHARSET     
280'windows-1251,utf-8;q=0.7,*;q=0.7'
281HTTP_ACCEPT_ENCODING   
282'gzip,deflate'
283HTTP_ACCEPT_LANGUAGE   
284'ru,en;q=0.7,en-us;q=0.3'
285HTTP_CONNECTION         
286'keep-alive'
287HTTP_COOKIE     
288'ui-tabs-3=4; sessionid=2859e570436c9644d275d3222b6f32ff'
289HTTP_HOST       
290'127.0.0.1:8000'
291HTTP_KEEP_ALIVE         
292'300'
293HTTP_REFERER   
294'http://127.0.0.1:8000/users/a1/'
295HTTP_USER_AGENT         
296'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10'
297LANG   
298'ru_RU.UTF-8'
299LESSCLOSE       
300'/usr/bin/lesspipe %s %s'
301LESSOPEN       
302'| /usr/bin/lesspipe %s'
303LOGNAME         
304'r'
305LS_COLORS       
306'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:'
307OLDPWD 
308'/home/r'
309ORBIT_SOCKETDIR         
310'/tmp/orbit-r'
311PATH   
312'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
313PATH_INFO       
314u'/users/a1/'
315PWD     
316'/home/r/myprj'
317QUERY_STRING   
318''
319REMOTE_ADDR     
320'127.0.0.1'
321REMOTE_HOST     
322''
323REQUEST_METHOD 
324'POST'
325RUN_MAIN       
326'true'
327SCRIPT_NAME     
328u''
329SERVER_NAME     
330'localhost'
331SERVER_PORT     
332'8000'
333SERVER_PROTOCOL         
334'HTTP/1.1'
335SERVER_SOFTWARE         
336'WSGIServer/0.1 Python/2.5.4'
337SESSION_MANAGER         
338'local/krv:/tmp/.ICE-unix/3377'
339SHELL   
340'/bin/bash'
341SHLVL   
342'1'
343SSH_AGENT_PID   
344'3472'
345SSH_AUTH_SOCK   
346'/tmp/keyring-RXkGjd/socket.ssh'
347TERM   
348'xterm'
349TZ     
350'Europe/Kiev'
351USER   
352'r'
353USERNAME       
354'r'
355WINDOWID       
356'23068726'
357WINDOWPATH     
358'7'
359XAUTHORITY     
360'/home/r/.Xauthority'
361XDG_DATA_DIRS   
362'/usr/local/share/:/usr/share/:/usr/share/gdm/'
363XDG_SESSION_COOKIE     
364'0c043d89b148b6880bffa0994a07fc70-1242724560.780693-566207087'
365_       
366'./manage.py'
367wsgi.errors     
368<open file '<stderr>', mode 'w' at 0xb7dd00b0>
369wsgi.file_wrapper       
370<class 'django.core.servers.basehttp.FileWrapper'>
371wsgi.input     
372<socket._fileobject object at 0x960de64>
373wsgi.multiprocess       
374False
375wsgi.multithread       
376True
377wsgi.run_once   
378False
379wsgi.url_scheme         
380'http'
381wsgi.version   
382(1, 0)
383Settings
384Using settings module myprj.settings
385Setting         Value
386ABSOLUTE_URL_OVERRIDES 
387{}
388ADMINS 
389(('Roman Kalinichenko', 'romankrv@gmail.com'),)
390ADMIN_FOR       
391()
392ADMIN_MEDIA_PREFIX     
393'/media/admin/'
394ALLOWED_INCLUDE_ROOTS   
395()
396APPEND_SLASH   
397True
398AUTHENTICATION_BACKENDS         
399('backends.EmailTooBackend',)
400BANNED_IPS     
401()
402BASE_URL_FORUM 
403'127.0.0.1:8000'
404CACHE_BACKEND   
405'locmem://'
406CACHE_MIDDLEWARE_KEY_PREFIX     
407''
408CACHE_MIDDLEWARE_SECONDS       
409600
410CMS_DEFAULT_TEMPLATE   
411'cms/base.html'
412CMS_LANGUAGE_DEFAULT   
413'ru'
414CMS_LANGUAGE_REDIRECT   
415False
416CMS_SITE_TITLE 
417u'\u041f\u043e\u0440\u0442\u0430\u043b \u043d\u0430\u0442\u0430\u0440\u0438\u0443\u0441\u043e\u0432 \u041a\u0438\u0435\u0432\u0430'
418CMS_USE_TINYMCE         
419True
420COMMENTS_ALLOW_PROFANITIES     
421False
422COMMENTS_BANNED_USERS_GROUP     
423None
424COMMENTS_FIRST_FEW     
4250
426COMMENTS_MODERATORS_GROUP       
427None
428COMMENTS_SKETCHY_USERS_GROUP   
429None
430DATABASE_ENGINE         
431'mysql'
432DATABASE_HOST   
433''
434DATABASE_NAME   
435'krv_myprj_kiev_db'
436DATABASE_OPTIONS       
437{}
438DATABASE_PASSWORD       
439'********************'
440DATABASE_PORT   
441''
442DATABASE_USER   
443'root'
444DATETIME_FORMAT         
445'N j, Y, P'
446DATE_FORMAT     
447'N j, Y'
448DEBUG   
449True
450DEBUG_PROPAGATE_EXCEPTIONS     
451False
452DEFAULT_CHARSET         
453'utf-8'
454DEFAULT_CONTENT_TYPE   
455'text/html'
456DEFAULT_FILE_STORAGE   
457'django.core.files.storage.FileSystemStorage'
458DEFAULT_FROM_EMAIL     
459'romankrv@sat.poltava.ua'
460DEFAULT_INDEX_TABLESPACE       
461''
462DEFAULT_TABLESPACE     
463''
464DISALLOWED_USER_AGENTS 
465()
466DJAPIAN_DATABASE_PATH   
467'/home/r/PROJECTS/django/mysites/myprj/../myprjdjapian_db'
468EMAIL_HOST     
469'mail.sat.poltava.ua'
470EMAIL_HOST_PASSWORD     
471'********************'
472EMAIL_HOST_USER         
473'romankrv@sat.poltava.ua'
474EMAIL_PORT     
47525
476EMAIL_SUBJECT_PREFIX   
477'[Django] '
478EMAIL_USE_TLS   
479False
480FILEBROWSER_PATH_SERVER         
481'/home/r/PROJECTS/django/mysites/myprj/../myprj/media/uploads'
482FILEBROWSER_URL_FILEBROWSER_MEDIA       
483'/media//filebrowser/'
484FILEBROWSER_URL_WWW     
485'/media//uploads/'
486FILE_CHARSET   
487'utf-8'
488FILE_UPLOAD_HANDLERS   
489('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
490FILE_UPLOAD_MAX_MEMORY_SIZE     
4912621440
492FILE_UPLOAD_PERMISSIONS         
493None
494FILE_UPLOAD_TEMP_DIR   
495None
496FIRST_CATEGORY_NAME     
497'General'
498FIRST_CATEGORY_TITLE   
499u'\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u0443\u043c\u0430.'
500FIXTURE_DIRS   
501()
502FONT_NAME       
503'/fonts/Vera.ttf'
504FORCE_SCRIPT_NAME       
505None
506IGNORABLE_404_ENDS     
507('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
508IGNORABLE_404_STARTS   
509('/cgi-bin/', '/_vti_bin', '/_vti_inf')
510INSTALLED_APPS 
511['django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.humanize', 'django.contrib.comments', 'django.contrib.sitemaps', 'djapian', 'apps.new', 'registration', 'find', 'apps.log', 'tinymce', 'apps.consult', 'filebrowser', 'template_utils', 'sphene.community', 'sphene.sphboard', 'sphene.sphwiki', 'sphene.sphsearchboard', 'cms']
512INTERNAL_IPS   
513('127.0.0.1',)
514JING_PATH       
515'/usr/bin/jing'
516LANGUAGES       
517(('uk', 'Ukrainian'), ('ru', 'Russian'), ('en', 'English'))
518LANGUAGES_BIDI 
519('he', 'ar', 'fa')
520LANGUAGE_CODE   
521'ru'
522LANGUAGE_COOKIE_NAME   
523'django_language'
524LIMIT_UPLOAD_PHOTO     
5256
526LOCALE_PATHS   
527()
528LOGIN_REDIRECT_URL     
529'/accounts/profile/'
530LOGIN_URL       
531'/accounts/login/'
532LOGOUT_URL     
533'/accounts/logout/'
534MANAGERS       
535(('RomanKRV', 'romankrv@gmail.com'),)
536MEDIA_ROOT     
537'/home/r/PROJECTS/django/mysites/myprj/../myprj/media'
538MEDIA_URL       
539'/media/'
540MIDDLEWARE_CLASSES     
541('sphene.community.middleware.ThreadLocals', 'sphene.community.middleware.GroupMiddleware', 'sphene.community.middleware.LastModified', 'sphene.community.middleware.PermissionDeniedMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.gzip.GZipMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.doc.XViewMiddleware')
542MONTH_DAY_FORMAT       
543'F j'
544NAME_GROUP_FORUM       
545'public_forum'
546myprj_GROUP     
547'myprj'
548OVERRIDDEN_URL 
549(('kiev/myprj', <django.utils.functional.__proxy__ object at 0x8ccbbac>), ('rule-use', <django.utils.functional.__proxy__ object at 0x8ccbc2c>), ('department/justice/kiev', <django.utils.functional.__proxy__ object at 0x8ccbccc>), ('department/branch/myprj_chamber/kiev', <django.utils.functional.__proxy__ object at 0x8ccbd4c>), ('links', <django.utils.functional.__proxy__ object at 0x8ccbdac>), ('notaries/information', <django.utils.functional.__proxy__ object at 0x8ccbe2c>), ('forums', <django.utils.functional.__proxy__ object at 0x8ccbeac>), ('forums/faq', <django.utils.functional.__proxy__ object at 0x8ccbf2c>))
550PASSWORD_RESET_TIMEOUT_DAYS     
551'********************'
552PATH_TO_STAMP   
553'/home/r/project/django/mysites/myprj/media/images/stamp.png'
554PER_PAGE_WARRING       
55510
556PREPEND_WWW     
557False
558PROFANITIES_LIST       
559'********************'
560PROJECT_PATH   
561'/home/r/PROJECTS/django/mysites/myprj/../myprj'
562RECORDER_MODULE_TURN_ON         
563True
564ROOT_URLCONF   
565'myprj.urls'
566SECRET_KEY     
567'********************'
568SEND_BROKEN_LINK_EMAILS         
569False
570SERVER_EMAIL   
571'root@localhost'
572SESSION_COOKIE_AGE     
573864000
574SESSION_COOKIE_DOMAIN   
575None
576SESSION_COOKIE_NAME     
577'sessionid'
578SESSION_COOKIE_PATH     
579'/'
580SESSION_COOKIE_SECURE   
581False
582SESSION_ENGINE 
583'django.contrib.sessions.backends.db'
584SESSION_EXPIRE_AT_BROWSER_CLOSE         
585False
586SESSION_FILE_PATH       
587None
588SESSION_SAVE_EVERY_REQUEST     
589False
590SETTINGS_MODULE         
591'myprj.settings'
592SITE_ID         
5931
594SPH_SETTINGS   
595{'board_allow_attachments': True, 'board_attachments_upload_to': 'var/sphene/sphwiki/attachment/%Y/%m/%d', 'board_post_paging': 10, 'board_wysiwyg': True, 'community_jsincludes': ['/media/sphene/community/jquery-1.2.3.min.js', '/media/sphene/community/jquery.autocomplete.js'], 'community_styleincludes': ['/media/sphene/sphboard/styles/base.css'], 'sphsearchboard_post_index': '/home/r/PROJECTS/django/mysites/myprj/../myprj/var/cache/sct/postindex/'}
596TEMPLATE_CONTEXT_PROCESSORS     
597('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'context_processor.login_processor', 'context_processor.num_myprj_processor', 'context_processor.middle_name_myprj_processor', 'context_processor.current_site', 'context_processor.url_warrings', 'context_processor.text_from_settings_to_template', 'sphene.community.context_processors.navigation')
598TEMPLATE_DEBUG 
599True
600TEMPLATE_DIRS   
601('/home/r/PROJECTS/django/mysites/myprj/../myprj/templates', '/home/r/PROJECTS/django/mysites/myprj/../myprj/templates/admin')
602TEMPLATE_LOADERS       
603('sphene.community.groupaware_templateloader.load_template_source', 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
604TEMPLATE_STRING_IF_INVALID     
605''
606TEST_DATABASE_CHARSET   
607None
608TEST_DATABASE_COLLATION         
609None
610TEST_DATABASE_NAME     
611None
612TEST_RUNNER     
613'django.test.simple.run_tests'
614TEXT1   
615<django.utils.functional.__proxy__ object at 0x8ccbf6c>
616TEXT2   
617<django.utils.functional.__proxy__ object at 0x8ccbfcc>
618TEXT3   
619<django.utils.functional.__proxy__ object at 0x8ce2b8c>
620TEXT_WATER     
621'http://demo.portal.myprj.net'
622THUMBNAIL_SIZE_ORIG     
623(800, 600)
624THUMBNAIL_SIZE_SMALL   
625(100, 75)
626TIME_FORMAT     
627'P'
628TIME_ZONE       
629'Europe/Kiev'
630TINYMCE_COMPRESSOR     
631True
632TRANSACTIONS_MANAGED   
633False
634URL_VALIDATOR_USER_AGENT       
635u'Django/1.1 beta 1 SVN-10825 (http://www.djangoproject.com)'
636USE_ETAGS       
637False
638USE_I18N       
639True
640YEAR_MONTH_FORMAT       
641'F Y'