error when creating a file on Python: Access denied

238 Views Asked by At

I know this is a very repeated error, however, I've tried what I've found on the web and the error persists:

[Errno 13] Access denied: C:/Users/Data.../

enter image description here

How can I fix this? What I am trying to do is a groundwater model calibration using Python (with PyEMU & PEST++) and I'm creating a control file so I can continue to the real deal of the whole thing...I'm using Jupyter Notebook.

I'm new to coding but... do I have to run this from root or something similar? How can I do that?

Please any suggestion is very appreciated I'm very very frustated...thank you.

1

There are 1 best solutions below

0
On

I ran into the same problem and solved it by including a file name (for the control file) in the function call:

pst = pf.build_pst('pest.pst')

See the docs: https://pyemu.readthedocs.io/en/develop/autoapi/pyemu/utils/pst_from/