-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting typeerror object of type 'NoneType' has no len() #267
Comments
Do you have |
yes i have it. i have downloaded the en-default.pyrnn.gz file from link & pasted it as it is as am using it on windows. do i need to extract it ? |
No, it's a Windows issue, I think
returns
in Windows. Can you confirm that, i.e. try python -c "import sysconfig;print(sysconfig.get_config_var('datarootdir'))" |
yes it returns none. what does that mean? |
so what do i need to do? is it a bug? how can i fix this? |
It's a bug, please merge #268 locally and see if the issue goes away:
I'll try it the next time I have access to a Windows machine. (If you want to just get up and running, comment out https://github.com/tmbdev/ocropy/blob/master/ocrolib/common.py#L624-L625 until #268 is resolved) |
There exist different Python binaries for Windows. It looks like the official Python releases for Windows neither use cmake nor autotools for building, so those binaries do not know |
@kba nope its not working though. i am looking for an OCR engine other than tesseract with good accuracy as its bit urgent. can you please suggest any alternative to ocropy if possible to get the things done for a while. |
@CruzzRazor, which error do you get now (with the code fix suggested by @kba)? And why does Tesseract not fit your needs? |
@stweil this is what i am getting now
|
@CruzzRazor, If you are using Windows 10, you could try running Ocropy on bash for windows 10.
|
@CruzzRazor This looks like a new issue. Can you open another issue if this persist? |
i am trying to ./runtest i am getting error saying
please help.
The text was updated successfully, but these errors were encountered: