simple-faster-rcnn-pytorch icon indicating copy to clipboard operation
simple-faster-rcnn-pytorch copied to clipboard

No module resource?

Open menzec opened this issue 5 years ago • 5 comments

My environment is python3.6.4 on win7. Import resource error happened after I installed module resource using pip.Meanwhile Jsonform jsonschema Jsonsir... has been insatlled. It seems that resource become rsrc .When I used this "import resource as rsrc " ,I got a error "module 'rsrc' has no attribute 'getrlimit' " So what is resource module?How to install it ? Please help me.

menzec avatar Mar 29 '19 11:03 menzec

Resource is a Unix specific package. See: https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource

Williamongh avatar Apr 17 '19 11:04 Williamongh

Have you solved this problem? I dont know what to do about the solution above

huxin-eric avatar May 18 '20 09:05 huxin-eric

I am facing similar issue on Windows 10. How can I install resource package in WIndows? Using the command pip install resource says requirements satisfied. But still import resource not working.

07Agarg avatar Oct 05 '20 07:10 07Agarg

just comment following on win10 import resource rlimit = resource.getrlimit(resource.RLIMIT_NOFILE) resource.setrlimit(resource.RLIMIT_NOFILE, (20480, rlimit[1]))

yaodix avatar Oct 31 '20 05:10 yaodix

I am facing similar issue on Windows 10. How can I install resource package in WIndows? Using the command pip install resource says requirements satisfied. But still import resource not working. Have you solved the problem?

aaawrong avatar Dec 05 '21 06:12 aaawrong