MartinThoma / hwrt

A toolset for handwriting recognition
MIT License
69 stars 17 forks source link

Windows compatibility #17

Open MartinThoma opened 9 years ago

MartinThoma commented 9 years ago

Check if hwrt works on Windows machines. What are the exact error messages?

thesunlover commented 9 years ago

Hello, Martin I just met your hwrtool I work on my notebook I have 8GB RAM. I started getting some errors. I wish to work on the project with you as much as I am able. During download.py execution I got MemoryError when calling is_file_consistent() The file would need to be read in chunks in my opinion.

MartinThoma commented 9 years ago

Hello Iskren,

Thanks for your feedback!

Could you please paste the error message? I don't use Windows, so testing is a bit difficult for me.

thesunlover commented 9 years ago

Of course, sure.

Traceback (most recent call last): File "hwrt\download.py", line 58, in main() File "hwrt\download.py", line 43, in main while not is_file_consistent(local_path_file, dataset['md5']) and i < 3: File "hwrt\download.py", line 21, in is_file_consistent hashlib.md5(open(local_path_file, 'rb').read()).hexdigest() == md5_hash MemoryError

MartinThoma commented 9 years ago

Thank you :-)

I guess the solution is http://stackoverflow.com/a/1131238/562769 I'll try that tomorrow (I can get access to windows computers at university).

thesunlover commented 9 years ago

:) YES

just a note: http://stackoverflow.com/a/1131255/3345926 this one is better i can apply it and make a pull request (PR) for you, if you dont mind, because I saw this is your Phd project

MartinThoma commented 9 years ago

Oh, no, this is not my PhD project. It was a project for my bachelors thesis and I will continue working on it in my masters thesis.

Feel free to add the pull request.

thesunlover commented 9 years ago

can we add somewhere in the documentation that there are already some precompiled libs here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#h5py

thesunlover commented 9 years ago

clarification on previous message http://www.lfd.uci.edu/~gohlke/pythonlibs/6icuform/h5py-2.4.0-cp27-none-win32.whl h5py Cythoning has some problems

thesunlover commented 9 years ago

The following error is raised when I start the server:

Traceback (most recent call last): File "hwrt\serve.py", line 295, in main(args.port) File "hwrt\serve.py", line 281, in main output_semantics) = utils.load_model(model_file) File "C:\Python27\lib\site-packages\hwrt\utils.py", line 492, in load_model model = nntoolkit.utils.get_model(model_file) File "C:\Python27\lib\site-packages\nntoolkit\utils.py", line 132, in get_model shutil.rmtree(tarfolder) File "C:\Python27\lib\shutil.py", line 252, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "C:\Python27\lib\shutil.py", line 250, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\users\ceco\appdata\local\temp\tmpsmcbqr\W2.hdf5'

retsyo commented 4 years ago

yes, I met the problem stated by thesunlover

MartinThoma commented 4 years ago

I can confirm, but sadly don't have the time to fix this. This is the reason why I put it on INACTIVE (to be honest, I also forgot this PR)