Skip to content
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

Windows compatibility #17

Open
MartinThoma opened this issue Dec 23, 2014 · 11 comments
Open

Windows compatibility #17

MartinThoma opened this issue Dec 23, 2014 · 11 comments

Comments

@MartinThoma
Copy link
Owner

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

@thesunlover
Copy link
Contributor

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
Copy link
Owner Author

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
Copy link
Contributor

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
Copy link
Owner Author

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
Copy link
Contributor

:) 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
Copy link
Owner Author

MartinThoma commented Apr 8, 2015 via email

@thesunlover
Copy link
Contributor

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

@thesunlover
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

retsyo commented Aug 24, 2020

yes, I met the problem stated by thesunlover

@MartinThoma
Copy link
Owner Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants