ERR: logEntryFunc: get_profile : [Errno 13] Permission denied: '/2021-08-30.txt' I'm getting the above error when I call get_positions python method. Though I maintain my daily logs in a file with name , the file name in the error message points to a tx

ERR: logEntryFunc: get_profile : [Errno 13] Permission denied: ‘/2021-08-30.txt’

I’m getting the above error when I call get_positions python method. Though I maintain my daily logs in a file with name , the file name in the error message points to a txt file instead of a “.log” file. This is a neusance and I’m worried if this might crash my algo in the future.

I’m getting the for all the APIs that I’m calling;
ERR: logEntryFunc: get_profile : [Errno 13] Permission denied: ‘/2021-08-30.txt’
ERR: logEntryFunc: positions : [Errno 13] Permission denied: ‘/2021-08-30.txt’

Can some one help?

Was able to resolve this. In FyersModel() method mention the log_path. By default it takes /(root) path of linux. Once you give a proper path there, error vanishes

How to give path on windows

Thanks. had the same issue and your post helped resolve it!

In Windows escape the slashes this way: log_path=“D:\Users\Projects\TestProject”