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

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

Open
jayjani007 opened this issue Jun 17, 2022 · 3 comments
Open

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

jayjani007 opened this issue Jun 17, 2022 · 3 comments
Labels
investigate Needs further analysis

Comments

@jayjani007
Copy link

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

bcoles commented Jun 17, 2022

Which version of Python are you using?

@jayjani007
Copy link
Author

Hi
It’s Python 3.7.5

@smicallef
Copy link
Owner

smicallef commented Sep 22, 2022

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?

@smicallef smicallef added the investigate Needs further analysis label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Needs further analysis
Projects
None yet
Development

No branches or pull requests

3 participants