Hello,
I tried to test Dynare 6.3 with Matlab2025a by running the file agtrend.mod in the default Examples folder of Dynare. Then the below error shown up:
Starting Dynare (version 6.3).
Calling Dynare with arguments: none
ERROR: Could not open file: agtrend.mod
Preprocessing time: 0h00m00s.
Error using [dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 297)) ([line 297](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,297,0)))
Dynare: preprocessing failed
Can someone help suggest some solutions to fix this?
Thank you very much for your help.
Michelle.
Is that the full error message? Did you set the Matlab working directory to the examples subfolder where the mod file is located?
Hi,
Thank you for your response. Yes, that’s the full message I had.
Following your suggestion, here’s what I did:
cd C:\dynare\6.3\examples\ to set the full path to the examples folder
Then I ran the file agtrend.mod in the examples folder
dynare agtrend.mod
And i got the following error
Quote
Warning: File ‘agtrend.log’ not found.
In [dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 194)) ([line 194](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,194,0)))
Error using diary
agtrend.log: Cannot open file: permission denied.
Error in [dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 196)) ([line 196](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,196,0)))
diary(logfile)
^^^^^^^^^^^^^^
Unquote
I don’t know what I did wrong. Thank you very much for your help and I look forward to your reply.
Michelle.
Now you are in the right folder, but you don’t have sufficient write permissions. That can be due to missing admin rights or a cloud or antivirus service blocking the access.
1 Like
Hi,
Thank you very much for your response. I will try to see how to be able to access that folder.
Michelle.