sisl / mechamodlearn

Structured framework for learning mechanical systems in PyTorch
https://arxiv.org/abs/1902.08705
MIT License
24 stars 5 forks source link

module 'resource' not available in windows #1

Closed jongwoolee127 closed 5 years ago

jongwoolee127 commented 5 years ago

Hi, Thank you for the great work and impressive paper. I tried to run the example code as in readme.md, but an error message occurred that,

no module named 'resource'

After googling a bit I found that

  1. 'resource' is not available in Windows OS (I'm using Windows 10)

Also by examining the code I found that

  1. It seems it only checks peak memory usage in my computer, log the value and treat it as one of the metric, so I just commented them out in the code,
  2. Runs perfectly. :D

Still, I am quite new in python and in this field so I wonder whether you have any idea to edit/modify the code so that any windows user would not encounter this problem.

Thanks!

rejuvyesh commented 5 years ago

Should be fixed now. Sorry, didn't test on Windows.

jongwoolee127 commented 5 years ago

Thanks a lot!

jongwoolee127 commented 5 years ago

Thanks a lot!

2019년 4월 15일 (월) 오후 5:47, Jayesh K. Gupta notifications@github.com님이 작성:

Should be fixed now. Sorry, didn't test on Windows.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sisl/mechamodlearn/issues/1#issuecomment-483431242, or mute the thread https://github.com/notifications/unsubscribe-auth/AJrpgwy39RGA2ZZyQTaywwDNvR02bK7kks5vhPN8gaJpZM4crWHW .

--

Jongwoo Lee


Ph.D. Candidate,

Newman Laboratory for biomechanics and human rehabilitation,

Department of Mechanical Engineering, Massachusetts Institute of Technology (MIT)

77 Massachusetts Avenue, Rm 3-143, Cambridge, MA 02139, USA


M) +1-617-645-0039

E-mail) britain88@gmail.com, jw127@mit.edu,