GoogleCodeArchives / hotot

Automatically exported from code.google.com/p/hotot
0 stars 0 forks source link

Image Upload Extension #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try uploading an image using the "Upload Image" extension, I see 
"Uploading..." for a second or so and then nothing. I'm running from the hg.

OS: Arch Linux
WM: Openbox

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 483, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/hotot/agent.py", line 480, in request
    result = _post(url, params, headers, files, additions)
  File "/usr/lib/python2.7/site-packages/hotot/agent.py", line 542, in _post
    ret = urlopen(request).read()
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 392, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 410, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 370, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1186, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1155, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 941, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 975, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 937, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 795, in _send_output
    msg += message_body
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 243: 
invalid start byte

Original issue reported on code.google.com by garrett....@gmail.com on 23 Feb 2011 at 8:36

GoogleCodeExporter commented 9 years ago
It seems Hotot doesn't work well in python 2.7

You can use python 2.6 to run Hotot temporarily。

Original comment by 5h3l...@gmail.com on 26 Feb 2011 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by 5h3l...@gmail.com on 11 Jun 2011 at 2:57

GoogleCodeExporter commented 9 years ago
Should I permanently use python 2.6 for this?

Original comment by garrett....@gmail.com on 11 Jun 2011 at 3:08

GoogleCodeExporter commented 9 years ago
I have same problem with Python 2.7 on Fedora 16.

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/hotot/agent.py", line 201, in request
    result = _post(url, params, headers, files, additions)
  File "/usr/lib/python2.7/site-packages/hotot/agent.py", line 261, in _post
    ret = urlopen(request, timeout=req_timeout).read()
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1199, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1168, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 955, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 989, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 809, in _send_output
    msg += message_body
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 378: 
invalid start byte

Original comment by gotenc...@gmail.com on 2 Dec 2011 at 1:21

GoogleCodeExporter commented 9 years ago
I also have that problem with python-2.7.2.

Original comment by reload.k...@gmail.com on 11 Feb 2012 at 12:23

GoogleCodeExporter commented 9 years ago
Same issues on both Ubuntu/Mint (with Hotot ppa) and Fedora 16. Python is at 
version 2.7.2 I believe, Hotot is at version 0.9.7

Original comment by gmanue...@gmail.com on 28 Feb 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Using hotot from ubuntu 12.04 - having the same problem - anyone got any fixes 
yet?

Original comment by Snigepi...@gmail.com on 11 Nov 2012 at 12:38