I got this when I tried to enable_restore()
Looks like a "rights" issue. I'm sure I’m doing something wrong. First day ever touching Python. lol
I have (2) projects that were done with the "never allow Conversion" by accident.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from mer_tools import mer
>>> x = mer("StokerPV.mer")
>>>
>>> audit = x.audit()
>>> print(audit)
['StokerPV', 'v6.0', 'FactoryTalk View Studio ME', (1, 'Never allow conversion')]
>>> from mer_tools import mer
>>> x = mer("StokerPV.mer")
>>> x.enable_restore()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\xxxxxxxxxxx\Downloads\mer_tools-master\mer_tools-master\mer_tools\mertools.py", line 146, in enable_restore
with olefile.OleFileIO(self.file, write_mode=True) as ole:
File "C:\Users\xxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\olefile\olefile.py", line 1075, in __init__
self.open(filename, write_mode=write_mode)
File "C:\Users\xxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\olefile\olefile.py", line 1169, in open
self.fp = open(filename, mode)
PermissionError: [Errno 13] Permission denied: 'StokerPV.mer'
>>>