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: [WinError 2] The system cannot find the file specified #331
Comments
Does anyone have a workaround for this - it's stopping me building anything on Windows... |
Do you have jinja2 installed? The traceback above seems to show that it is missing, but it is a requirement of the current conda build version. Please try
Which should bring in jinja 2 if you lack it. |
Yes, I have jinja2 installed and conda-build looks up to date:
There appears to be a fix against the associated issue: #474 but it's not been pulled in yet. |
Thanks for getting back to me though - any help would be appreciated. |
Thanks. I will review that PR quickly and either merge it or fix the issue otherwise. |
Awesome - thanks! |
This should now be fixed in master. We will work on a release soon. |
That's great, thanks for taking a look at this. Now you know what the issue was do you have any suggestions for a quick workaround? Would a reinstall of conda work? |
The quickest workaround would be to go in and manually apply the change from https://github.com/conda/conda-build/pull/723/files to your installed conda-build source code. |
I've tried folding in that pull request but it doesn't seem to fix the issue I'm seeing above. Apologies but it looks like I may have conflated two different issues. The one above is coming out of main_build.py and seems to be git related. Could it be a problem with not finding git? I have git bash installed, but I've tried pointing my recipe to a local path and it still gives the same stack, any thoughts? |
Is git on PATH? Bear in mind that some variables are set in a way that does not persist to subprocesses. You need the path to git.exe to be persistent in subprocesses. One way to test this would be simply:
or, if using git bash, what happens if you type "bash" at your prompt - is git still in your PATH? |
Yes, that was the problem after all - sorry for the confusion...! |
No problem - thanks for digging up that other PR. It needed attention, anyway. |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
I have an error when I'm trying to build a meta recipe in Windows.
The text was updated successfully, but these errors were encountered: