smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
13.28k stars 2.29k forks source link

OSError: Could not read wordlist file 'generic-usernames.txt' #1710

Open jayjani007 opened 2 years ago

jayjani007 commented 2 years ago

Hi, Getting this error while running the tool

Traceback (most recent call last):
  File "/root/Desktop/tools/spiderfoot/spiderfoot/helpers.py", line 370, in usernamesFromWordlists
    with resources.open_text('spiderfoot.dicts', f"{d}.txt", errors='ignore') as dict_file:
AttributeError: module 'resources' has no attribute 'open_text'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "sf.py", line 627, in <module>
    main()
  File "sf.py", line 64, in main
    '_genericusers': ",".join(SpiderFootHelpers.usernamesFromWordlists(['generic-usernames'])),
  File "/root/Desktop/tools/spiderfoot/spiderfoot/helpers.py", line 374, in usernamesFromWordlists
    raise IOError(f"Could not read wordlist file '{d}.txt'") from e
OSError: Could not read wordlist file 'generic-usernames.txt'
bcoles commented 2 years ago

Which version of Python are you using?

jayjani007 commented 2 years ago

Hi It’s Python 3.7.5

smicallef commented 2 years ago

Could you verify that the generic-usernames.txt file exists in your SpiderFoot installation folder, within spiderfoot/dicts and has permissions that would make it readable from your SpiderFoot process?