-
Notifications
You must be signed in to change notification settings - Fork 2
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
python2: can't open file 'blocksync.py': [Errno 2] No such file or directory #3
Comments
Thanks for reporting the issue. The error is related to the remote component not finding |
if i re-include python2 in the command, i get no such file or directory. i'm on ubuntu 22.04 what's your distro ? ps:
sorry, that's an copy/past error from older buffer |
|
i come across https://stackoverflow.com/questions/9935151/popen-error-errno-2-no-such-file-or-directory-when-calling-shell-function and added shell=True to
that fixed the problem
the question is, why it behaves different on your system |
"shell=True obviously opens a shell but, less obviously, it also sets all the environment variables (such as PATH) -"
|
"The FileNotFoundError happens because - in the absence of shell=True - Python tries to find an executable whose file name is the entire string you are passing in. You need to add shell=True to get the shell to parse and execute the string, or figure out how to rearticulate this command line to avoid requiring a shell." i guess there must have been some change in python2 that makes it behave differently, or there may be differnt security settings on your machine |
I am also using Ubuntu 22.04 and I can confirm the issue is related to path indeed: when removing I would like to avoid Thanks. |
works find for me now. thanks for fixing !
|
btw, i'm getting the error below and could workaround it by removing "python2" from the command
before
after
Errors:
The text was updated successfully, but these errors were encountered: