Changes don't apply retroactively to old versions. To get the fix, you need 
to check out a more recent version.

It might be nice to have a 0.6.1. maintenance release including such bug 
fixes, but we haven't bothered. The current repository tip should work 
reasonably well.

Tom

On Tuesday, November 13, 2012 2:19:57 PM UTC+1, Bernd Fallert wrote:
>
>
>
> Am Mittwoch, 5. September 2012 01:59:36 UTC+2 schrieb Tom:
>>
>> 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.
>>
> But its not transfered to the repository. So if i checked the 0.6-Version 
> out the error is still there.  
>
> Bernd
>
>>
>> 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/-/7eoOkUWdiRYJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to