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

FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/Subgrab' #12

Closed
ialqwaiz opened this issue Jun 3, 2020 · 4 comments

Comments

@ialqwaiz
Copy link

ialqwaiz commented Jun 3, 2020

`
root@omvpi:/media# subgrab
Traceback (most recent call last):
File "/usr/local/bin/subgrab", line 5, in
from subgrab.cli import main
File "/usr/local/lib/python3.8/site-packages/subgrab/cli.py", line 23, in
os.mkdir(log_directory)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/Subgrab'

`

@RafayGhafoor
Copy link
Owner

Please try doing this:

mkdir -p /root/.local/share && subgrab

@ialqwaiz
Copy link
Author

ialqwaiz commented Jun 6, 2020

Please try doing this:

mkdir -p /root/.local/share && subgrab

It works after manually creating the directories... the code cannot create these directories for some reason..

@RafayGhafoor
Copy link
Owner

RafayGhafoor commented Jun 6, 2020

@ialqwaiz, change line 23 of
"/usr/local/lib/python3.8/site-packages/subgrab/cli.py"
to this:
os.makedirs(log_directory, exist_ok=True)

P.s. the new release will have the fix.

@ialqwaiz
Copy link
Author

ialqwaiz commented Jun 7, 2020

@ialqwaiz, change line 23 of
"/usr/local/lib/python3.8/site-packages/subgrab/cli.py"
to this:
os.makedirs(log_directory, exist_ok=True)

P.s. the new release will have the fix.

this works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants