>
> If I got it correctly this is because root (or other user) can not open
> (gtk) window under "zdeno" login. Solution is to add following lines[1] to
> setup.py before line 'from ocrolib import default':
>
> import matplotlib
> matplotlib.use('Agg')
>
I think this makes some of the debugging features fail. Some of the
scripts have workarounds that use Agg only if there is no DISPLAY variable
set. If you submit a bug report, I can try to make that usage more
consistent.
>
> './run-test' produced this error (openSUSE and Mandriva):
> ...
> File "/usr/local/lib/python2.7/site-packages/ocrolib/morph.py", line 50,
> in r_dilation
> return filters.maximum_filter(image,size,origin=origin)
> NameError: global name 'filters' is not defined
>
> I fixed it by adding "from scipy.ndimage import filters" to
> ocrolib/morph.py.
>
I think that's fixed.
This is strange, because all files are installed into /usr in Mandriva (in
> openSUSE it is installed to /usr/local), but ./run-test expect files in
> /usr/local... I created symlink as workaround. Then ./run-test works ok on
> Mandriva.
>
> I hope this help somebody. And I would suggest to add some kind of
> integrity check for downloaded models ;-)
>
I don't know how to get information about a platform's preferred install
paths back to OCRopus so that it can find its files. That's why, right
now, there are hardcoded default install paths, plus an option to override
them via environment variables. If you know how to do this better, please
let me know.
Tom
--
You received this message because you are subscribed to the Google Groups
"ocropus" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/ocropus/-/kta9V81hNhQJ.
For more options, visit https://groups.google.com/groups/opt_out.