JohannesEbke / aws_list_all

List all your AWS resources, all regions, all services.
MIT License
413 stars 97 forks source link

ModuleNotFoundError: No module named 'resource' #35

Closed emeyedeejay closed 2 years ago

emeyedeejay commented 4 years ago

Newbie alert! Just getting into both AWS and Python.

Trying to run aws-list-all and I get the following error message. Python 3.8.2 Windows 10.

(aws-list-all) C:\Program Files (x86)\Python38-32\aws-list-all\Scripts>aws-list-all query --region eu-west-1 --service ec2
Traceback (most recent call last):
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Program Files (x86)\Python38-32\aws-list-all\Scripts\aws-list-all.exe\__main__.py", line 4, in <module>
  File "c:\program files (x86)\python38-32\aws-list-all\lib\site-packages\aws_list_all\__main__.py", line 5, in <module>
    from resource import getrlimit, setrlimit, RLIMIT_NOFILE
ModuleNotFoundError: No module named 'resource'
DamienSynthesis commented 4 years ago

Are you running the script on Windows, because resource is a Unix specific library for Python. https://docs.python.org/3/library/resource.html. Try running in Linux or under WSL.

FeiYoungP2P commented 2 years ago

What if the version of my system is windows8.1? It seems to be unable to install WSL. What should I do?

JohannesEbke commented 2 years ago

I've disabled this logic if it does not import, should be in v0.9.2