I am trying to run a file on python but the following error message is getting rendered:
Error reading or writing history file 'C:\Users\ibrah\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt': Access to the path 'C:\Users\ibrah\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt' is denied.
The line I am entering is the following:
py "C:\Users\ibrah\AppData\Local\Programs\Python\Python312\Waterfall Chart 2.py"
Does anyone has any idea about the issue that could be causing this error message to be displayed?
Greetings!
PSReadLine
module persists the history of interactively typed commands, and the current user should normally have full access to that file. You'll need to investigate why your permissions are different and restore them.New-Item -Force C:\Users\ibrah\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt