-
Notifications
You must be signed in to change notification settings - Fork 16
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
Permission denied when bootstrap script tries to rename the country-template directory under Windows 10 #82
Comments
I have a pc running windows 10. I did not run this script from a particular environment set up for open fisca. Im using python 3.6. I tried googling the error and changing file rights through my shell to allow the script to move folders , but this didn't work. It was hard to find clear instructions to help me online |
I didn't have the folders open or files in use which could cause an error when moving the file |
For some reason, the script runs this: does the script file need a certain permission? I'm not sure why it doesn't work when I run it |
Also, could it be because we're trying to move the country template folder (which includes the script file) into a new folder, whilst the script file is being read? I'm guessing this isn't it because everyone would have the same problem? |
OK, so I've just copied the script file so it is in the same directory as the country template master folder. I edited the script so that the first thing it does it go into the country template master folder, then the rest of the script is the same.
|
@fluff79 do you have access to slack? There's a lot of people in various timezones who can give you help as you get started. |
@Br3nda hi! Yes I'm on slack. I've worked around this problem now, but hoped it could be fixed in case someone else has it too |
Hey thanks for posting this here, so we can investigate :) |
Hi, |
Hi @masterbox, no sadly no progress as it is impossible for me to reproduce the error. Could you please let us know what do you get when running the following commands? I suspect it is a matter of permissions:
|
Reading through this issue to understand how it could be reproduced. If it cannot be reproduced, it should perhaps be closed.
This is strange to me, as “going into the country template master folder” is already the first thing the script does (after checking variables are properly defined). I see one potential problem with that I wonder if @fluff79 do you remember which bash emulator you were running at the time? |
Hi |
Thanks @masterbox! This permission issue seems specific to Windows 10 then. |
Hi,
Nice to hear from you.
I’m sorry, I’m not sure I know what bash emulator I was using.
I can see I have git bash 2.16.12.1, but I might have used something else.
I don’t know if that helps?
Cheers
Mark
|
Thank you for this additional information @fluff79. We'll see if that helps in reproducing 🙂 |
I can confirm this in Windows 11, tried with elevated admin permissions and standard permissions with various permutations/command prompts and could not find a way to work around the issue other then running it in WSL. Documentation has been added in PR #139 in the README.md file regarding the bootstrap script "Note: this script can only run on Unix systems...". I suspect based on my experience and the comments above that windows is placing a lock on the bootstrap.sh file while it's running and that stops the mv command. |
Hi there!
I really enjoy OpenFisca, but I recently encountered an issue.
Here is what I did:
I downloaded the country_template_master. I opened GITbash in the folder.
I typed: export COUNTRY_NAME=Jersey which worked
I typed: export REPOSITORY_URL=https://github.com/fluff79/OpenFisca-$COUNTRY_NAME which worked
I typed: ./bootstrap.sh and got the error above
mv: cannot move 'country-template-master' to 'openfisca-jersey': Permission denied
Here is what I expected to happen:
I expected the bootstrap script to run all the way through to set up the template on my computer
Here is what actually happened:
I typed: ./bootstrap.sh and got the error:
mv: cannot move 'country-template-master' to 'openfisca-jersey': Permission denied
Here is data (or links to it) that can help you reproduce this issue:
I am following the instructions here
https://github.com/openfisca/country-template
Context
I identify more as a:
I only know a little bit of python and a bit how to use git/GitHub etc
The text was updated successfully, but these errors were encountered: