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

Getting FileNotFoundError #2

Open
HeshamHBK opened this issue Nov 25, 2022 · 4 comments
Open

Getting FileNotFoundError #2

HeshamHBK opened this issue Nov 25, 2022 · 4 comments

Comments

@HeshamHBK
Copy link

Hi guys,

I did all the steps for installation but I still get the following error:

Traceback (most recent call last):
File "autossrf.py", line 11, in
os.chdir(currentPath)
FileNotFoundError: [Errno 2] No such file or directory: ''

Please help!

@Th0h0
Copy link
Owner

Th0h0 commented Nov 25, 2022

currentPath consists of autossrf.py's path. It's quite weird that it's not recognized.
Could you paste the full error? No such file or directory: "...."?

@HeshamHBK
Copy link
Author

HeshamHBK commented Dec 14, 2022

what a wrote above is the full error.

I Typed: python3 autossrf.py -h
OUTPUT:

Traceback (most recent call last):
File "autossrf.py", line 11, in
os.chdir(currentPath)
FileNotFoundError: [Errno 2] No such file or directory: ''

@fernstedt
Copy link

Its been 6 months,

still the same error

@rbcrack
Copy link

rbcrack commented Sep 25, 2023

If you still have problem, do this

#execPath = os.getcwd() #currentPath = os.path.dirname(__file__) #os.chdir(currentPath)

rpelace it with this

`execPath = os.getcwd()
currentPath = os.path.dirname(file) if file else None

if currentPath:
os.chdir(currentPath)`

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

No branches or pull requests

4 participants