-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Running task 1 of 1: python .copier/update_dotenv.py /bin/sh: 1: python: not found #733
Comments
Same Issue with My Window WSL
|
I got the same Issue with both my armbian and debian12. |
Thanks @frank2016ma that actually solves the issue |
It's highly advisable you use virtual environments. It'll not only solve said problem, but it'll also save you the headaches that will arise from dependency management, such as conflicting global package installations. This issue can now be closed in my opinion. |
i got the same issue on MacOS, i configured |
@cblberlin Figuring out whether the Python command will be available under Hence, trying to come up with a one-size-fits-all solution is just not feasible. If I were you I'd save myself the headache and rollback the modifications you made to |
In the file copier.yml search for "_tasks:" And if you are wondering why it is still not working then it is because you are using copier with the remote repo, and not your local. Just fork the repo, change the line, and then use copier like this -> |
thx man, i will try it |
How about adding a Makefile to help create a virtual environment before executing it? |
If you're on debian, install |
Problem: sudo -E doesn't keep aliases only $PATH and other environmental variables.
If
Good to go. Now MORE DETAIL:
|
I have python3 installed and have configured an
alias python="python3"
in my.bash_aliases
file, so bothpython
andpython3
cmdlets are available.DESKTOP-0U5S399:~$ python --version
Python 3.8.10
DESKTOP-0U5S399:~$ python3 --version
Python 3.8.10
However, copier is unable to find the python module in /bin/sh. Can we update the copier.yml file to use
python3 .copier/update_dotenv.py
instead ofpython .copier/update_dotenv.py
?> Running task 1 of 1: python .copier/update_dotenv.py /bin/sh: 1: python: not found Traceback (most recent call last): File "/home/dathuku/.local/bin/copier", line 8, in <module> sys.exit(copier_app_run()) File "/home/dathuku/.local/lib/python3.8/site-packages/plumbum/cli/application.py", line 638, in run inst, retcode = subapp.run(argv, exit=False) File "/home/dathuku/.local/lib/python3.8/site-packages/plumbum/cli/application.py", line 633, in run retcode = inst.main(*tailargs) File "/home/dathuku/.local/lib/python3.8/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/dathuku/.local/lib/python3.8/site-packages/copier/cli.py", line 71, in handle_exceptions return method(*args, **kwargs) File "/home/dathuku/.local/lib/python3.8/site-packages/copier/cli.py", line 270, in main worker.run_copy() File "/home/dathuku/.local/lib/python3.8/site-packages/copier/main.py", line 205, in __exit__ raise value File "/home/dathuku/.local/lib/python3.8/site-packages/copier/cli.py", line 270, in main worker.run_copy() File "/home/dathuku/.local/lib/python3.8/site-packages/copier/main.py", line 759, in run_copy self._execute_tasks(self.template.tasks) File "/home/dathuku/.local/lib/python3.8/site-packages/copier/main.py", line 284, in _execute_tasks subprocess.run(task_cmd, shell=use_shell, check=True, env=local.env) File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'python .copier/update_dotenv.py' returned non-zero exit status 127
The text was updated successfully, but these errors were encountered: