IOError: Not a gzipped file ./models/uw3unlv.pyrnn.gz

320 views
Skip to first unread message

Jacob Reese

unread,
Jan 6, 2014, 5:25:29 PM1/6/14
to ocr...@googlegroups.com
I can't seem to get this file to work correctly. Is there another mirror somewhere?

# loading object ./models/uw3unlv.pyrnn.gz
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-rpred", line 84, in <module>
    network = ocrolib.load_object(args.model,verbose=1)
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/common.py", line 437, in load_object
    return unpickler.load()
  File "/usr/lib/python2.7/gzip.py", line 256, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 291, in _read
    self._read_gzip_header()
  File "/usr/lib/python2.7/gzip.py", line 185, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

Adnan Ul Hasan

unread,
Jan 8, 2014, 4:26:23 AM1/8/14
to ocr...@googlegroups.com
Check your installation. These models are downloaded during installations. Did you run the following command while installing:
python setup.py download_models?

Jacob Reese

unread,
Jan 12, 2014, 9:31:16 AM1/12/14
to ocr...@googlegroups.com
I have run that.
I finally got it to download a good copy.  Took about a week worth of clearing out the downloaded files and redownloading them.
Message has been deleted

izzedine hamed

unread,
Apr 3, 2014, 3:29:48 AM4/3/14
to ocr...@googlegroups.com
Where i can find a good copy

m00tpoint

unread,
May 6, 2014, 1:07:48 PM5/6/14
to ocr...@googlegroups.com
All,

The server that is hosting these files is simply not responding at this point. The TCP handshake completes on port 80, but the download script's curl process receives 0 bytes of data. I've tried repeatedly for a few days now. The script indicates the following files are needed:

en-mixed-3.ngraphs.gz
en-space.model.gz
frakant.pyrnn.gz
en-mixed.lineest.gz
en-uw3-linerel-2.cmodel.gz
fraktur.pyrnn.gz
en-mixed-round1.lineest.gz
en-uw3unlv-perchar.cmodel.gz
gradient.lineest.gz

Can someone PLEASE give me copies of these files? Email me at doctorcisco _at_   yahoo . I'd also suggest the files be downloadable on the googlecode page.

TIA,
m00t

m00tpoint

unread,
May 7, 2014, 2:35:35 PM5/7/14
to ocr...@googlegroups.com
I have uploaded an altered setup.py file to bug #395 (http://code.google.com/p/ocropus/issues/detail?id=395) to get the model data from an alternative server.
Reply all
Reply to author
Forward
0 new messages