PYTHON AND GIT--- how to run git add . in the anaconda command prompt and a viru
ID: 3915594 • Letter: P
Question
PYTHON AND GIT--- how to run git add . in the anaconda command prompt and a virutual environment without getting this error
(heroku) (base) C: Users lewis>git add --ignore-errors . warning: could not open directory'AppData/Local/Application Data/" Permission denied warning: could not open directory'AppData/Local/History/" Permission denied warning: could not open directory 'AppData/Local/Microsoft/Windows/INetCache/Content. IE5/": Per warning: could not open directory 'AppData/Local/Microsoft/Windows/INetCache/Low/Content. IE5/" warning: could not open directory 'AppData/Local/Microsoft/Windows/Temporary Internet Files/' warning: could not open directory'AppData/Local/Temporary Internet Files/': Permission denied warning: could not open directory 'Application Data/": Permission denied warning: could not open directory 'Cookies/": Permission denied warning: could not open directory 'Documents/My Music/': Permission denied warning: could not open directory 'Documents/My Pictures/": Permission denied warning: could not open directory 'Documents/My Videos/'": Permission denied warning: could not open directory 'Local Settings/": Permission denied warning: could not open directory 'My Documents/" Permission denied warning: could not open directory 'NetHood/ Permission denied warning: could not open directory 'PrintHood/": Permission denied warning: could not open directory 'Recent/": Permission denied warning: could not open directory 'SendTo/" Permission denied warning: could not open directory 'Start Menu/': Permission denied warning: could not open directory 'Templates/": Permission denied error: open( "AppData/Local/Adobe/AcroCef/DC/Acrobat/Cache/Cache/data ?"): Permission denied error: unable to index file AppData/Local/Adobe/AcroCef/DC/Acrobat/Cache/Cache/data_e error: open("AppData/Local/Adobe/Acrocef/DC/Acrobat/Cache/Cache/data_1"): Permission denied error: unable to index file AppData/Local/Adobe/AcroCef/DC/Acrobat/Cache/Cache/data_1Explanation / Answer
Hi,
These are some of the recommendations to avoid this kind of errors
Looks like some other process has the handle for the files mentioned in the error.
Some antivirus might be blocking the python. Kindly check that on your environment.
Fix:
Stop any antivirus on your environment or other programs which have handle on that folders.
Considering the fact that you have several special operating system related folders on that path, the operating system would have handle on the files. the reason you see in the permission denied errors.
Most likely fix:
The error is likely because you have a git repository defined in C:usersyourName.
It is not recommended to have repository defined on that path.
You can check the git repo path using the below command or. by opening .gitconfig file.
git rev-parse --show-toplevel
Clone or create the repo on another path to avoid the errors mentioned.
Hope this helps.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.