Error 551 in python

  • 184 Views
  • Last Post 18 January 2017
Pataco posted this 17 January 2017

I am getting this error:

Traceback (most recent call last):
  File "process.py", line 94, in <module>
    recognizeFile( sourceFile, targetFile, language, outputFormat ) 
  File "process.py", line 40, in recognizeFile
    task = processor.ProcessImage( filePath, settings )
  File "/home/pablo/abbyy/AbbyyOnlineSdk.py", line 53, in ProcessImage
    response = self.getOpener().open(request, bodyParams).read()
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 551: Unsupported image file format

when I execute this:

sudo python process.py -txt ./Page_08.tif ./output.txt

I have tested with other formats (-txt parameter) and without -h. Same output.

Any idea?

Oksana Serdyuk posted this 18 January 2017

I have sent our standard recommendations to your email. If they do not help, please let us know.

Close