'_fileobject' object has no attribute 'seek'

2009-08-17 Thread Jinal Jhaveri

Has anyone seen this error before?


Error - type 'exceptions.AttributeError': '_fileobject' object has
no attribute 'seek'
URL: http://xx.xxx.xxx.x/images/receive_upload
File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
exceptions/errormiddleware.py', line 137 in __call__
 app_iter = self.application(environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/
wsgiapp.py', line 314 in __call__
 return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Routes-1.10.1-py2.5.egg/routes/
middleware.py', line 62 in __call__
 elif is_form_post(environ) and '_method' in req.POST:
File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
wsgiwrappers.py', line 213 in POST
 params = self._POST()
File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
wsgiwrappers.py', line 195 in _POST
 return parse_formvars(self.environ, include_get_vars=False)
File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
request.py', line 174 in parse_formvars
 keep_blank_values=1)
File '/usr/lib64/python2.5/cgi.py', line 534 in __init__
 self.read_multi(environ, keep_blank_values, strict_parsing)
File '/usr/lib64/python2.5/cgi.py', line 657 in read_multi
 headers = rfc822.Message(self.fp)
File '/usr/lib64/python2.5/rfc822.py', line 104 in __init__
 self.readheaders()
File '/usr/lib64/python2.5/rfc822.py', line 188 in readheaders
 self.fp.seek(startofline)
File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
httpserver.py', line 481 in seek
 self.file.seek(place)
AttributeError: '_fileobject' object has no attribute 'seek'

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: '_fileobject' object has no attribute 'seek'

2009-08-17 Thread Philip Jenvey


On Aug 17, 2009, at 10:40 AM, Jinal Jhaveri wrote:


 File '/usr/lib64/python2.5/rfc822.py', line 188 in readheaders
 self.fp.seek(startofline)
 File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
 httpserver.py', line 481 in seek
 self.file.seek(place)
 AttributeError: '_fileobject' object has no attribute 'seek'

The latest version of Paste has a fix relating to this httpserver seek  
method which might solve this.

--
Philip Jenvey


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: '_fileobject' object has no attribute 'seek'

2009-08-17 Thread Jinal Jhaveri

Thanks Philip,

I updated it to 1.7.2 and haven't seen the error yet, so hopefully
this is fixed.

On Aug 17, 11:26 am, Philip Jenvey pjen...@underboss.org wrote:
 On Aug 17, 2009, at 10:40 AM, Jinal Jhaveri wrote:



  File '/usr/lib64/python2.5/rfc822.py', line 188 in readheaders
  self.fp.seek(startofline)
  File '/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/
  httpserver.py', line 481 in seek
  self.file.seek(place)
  AttributeError: '_fileobject' object has no attribute 'seek'

 The latest version of Paste has a fix relating to this httpserver seek  
 method which might solve this.

 --
 Philip Jenvey
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---