Open bogmunds opened 3 years ago
No, not at all. This must be just some mixed up (perhaps the Iris toolbox not set up/started up properly). Can you paste the entire message plus your code?
On Sun, Nov 15, 2020 at 9:31 PM bogmunds notifications@github.com wrote:
Do I need the reporting toolbox from Matlab to use this function? Its pretty expensive.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKXTGQZTQ7U7QEUITX3SQA3AVANCNFSM4TWNBM6Q .
Here is the error:
a01_modelproperties Unable to check out a Report Generator license. Reason: License checkout failed. License Manager Error -5 Cannot find a license for MATLAB_Report_Gen.
Troubleshoot this issue by visiting: https://www.mathworks.com/support/lme/R2020b/5
Diagnostic Information: Feature: MATLAB_Report_Gen License path: 13501@flexlm-20b-40860816-us-east-1a.wsroute.mathworks.com:13501@flexlm-20b-40860816-us-east-1e.wsroute.mathworks.com:/home/mluser/.matlab/R2020b_licenses:/MATLAB/licenses/license.dat:/MATLAB/licenses Licensing error: -5,0.
I'm running code from an EdX IMF course that worked fine before i upgraded to Matlab R2020. This is the section of the code that generates the error:
%% Generate pdf report x = Report.new('Shocks');
% Figure style sty = struct(); sty.line.linewidth = 1; sty.line.linestyle = {'-';'--'}; sty.line.color = {'k';'r'}; sty.legend.location = 'Best';
% Create separate page with IRFs for each shock for i = 1:length(listshocks)
x.figure(listtitles{i},'zeroline',true,'style',sty, ... 'range',startsim:endsim,'legend',false,'marks',{'Baseline','Alternative'});
x.graph('CPI Inflation QoQ (% ar)','legend',true); x.series('',s.(listshocks{i}).DLA_CPI);
x.graph('Nominal Interest Rate (% ar)'); x.series('',s.(listshocks{i}).RS);
x.graph('Nominal ER Deprec. QoQ (% ar)'); x.series('',s.(listshocks{i}).DLA_S);
x.graph('Output Gap (%)'); x.series('',[s.(listshocks{i}).L_GDP_GAP]);
x.graph('Real Interest Rate Gap (%)'); x.series('', s.(listshocks{i}).RR_GAP);
x.graph('Real Exchange Rate Gap (%)'); x.series('', s.(listshocks{i}).L_Z_GAP);
% This graph is added in the video x.graph('Real Monetary Condition Index (%)'); x.series('', s.(listshocks{i}).MCI);
end
x.publish('results/Shocks.pdf','display',false); disp('Done!!!');
Here is the full code:
Hi
could you please make sure Iris is correctly on the Matlab path and has been started up?
For instance, just before running you script, can you type the following in the command window:
iris.version
and
iris.path
If you get an error message, you need to run
addpath C:\path\to\your\iris\folder iris.startup
where you replace C:\path\to\your\iris\folder with a proper path to your Iris root folder (use forward slashes if you use macOS or Linux).
Let us know. Best Jaromir
On Mon, Nov 16, 2020 at 1:48 AM bogmunds notifications@github.com wrote:
Here is the full code:
a01_modelproperties.txt https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/files/5543454/a01_modelproperties.txt
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/283#issuecomment-727671304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKVZTZBWDIBBOIHN4ZTSQBZFXANCNFSM4TWNBM6Q .
I tried running on the actual MATLAB software and not the online version and got a different error:
addpath C:\IRIS\IRIS-Toolbox iris.startup
[IrisToolbox] for Macroeconomic Modeling Release 20201030
Copyright (c) 2007-2020 IRIS Solutions Team
Root Folder: C:\IRIS\IRIS-Toolbox
Default Time Series Constructor: @Series
LaTeX Engine: No PDF LaTeX engine configured
Ghostscript Engine: No Ghostscript engine configured
X13-ARIMA-SEATS: Version 1.1 Build 39 (March 10, 2017)
iris.version
ans =
'20201030'
a01_modelproperties Unable to resolve the name Report.new.
Error in a01_modelproperties (line 49) x = Report.new('Shocks');
also having problems here. even having the Matlab_rep_gen
First I received the following message
Generating Filtration Report... Unable to resolve the name Report.new.
Error in a03_kalmanfilter (line 78) x = Report.new('Filtration report','visible',true);
when changing Report.new to report.new, I have received the following message
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Observed and Trends. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp0b122bb5_394a_454a_8496_aea06f9e0cbf. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp0b122bb5_394a_454a_8496_aea06f9e0cbf.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Gaps. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp8aafad74_5b9b_47c4_b801_014e35333ba7. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp8aafad74_5b9b_47c4_b801_014e35333ba7.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Shocks. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp20860449_812d_4fca_b038_4495f62f7c7f. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp20860449_812d_4fca_b038_4495f62f7c7f.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Interest rate and exchange rate. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp9be44401_064e_4fd5_a604_9895dda55bc7. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp9be44401_064e_4fd5_a604_9895dda55bc7.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Inflation. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp235346ad_0655_4b79_b546_a68b8ae8c3f2. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp235346ad_0655_4b79_b546_a68b8ae8c3f2.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: . Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp2dc3ea2a_ed69_41af_a1b9_2c227de447c0. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp2dc3ea2a_ed69_41af_a1b9_2c227de447c0.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Output gap. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp9dc0b575_994e_46b0_b429_945537c33118. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp9dc0b575_994e_46b0_b429_945537c33118.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
Warning: IRIS Toolbox Warning @ report. Error creating this figure: Decomposition. Matlab says: IRIS Toolbox Error @ report:mycompilepdf. Cannot print figure #1 to PDF: C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp8fea0061_7a13_453f_90e9_1d03945d2f52. Matlab says: Cannot create output file 'C:\Users\gusta\Google Drive\IMFx\Modelling_course\Model_MPAFx_module6\tp655c5c06_6c88_4d7b_9e9c_85e30edd9dd0\tp8fea0061_7a13_453f_90e9_1d03945d2f52.pdf'.
In latexcode at 12 In publish at 70 In a03_kalmanfilter at 228
The filename, directory name, or volume label syntax is incorrect.
Warning: IRIS Toolbox Warning @ report. *** Error compiling LaTeX and/or PDF files. Matlab says: No matching files were found.
In publish/doCompile at 174 In publish at 92 In a03_kalmanfilter at 228
The error is in "x = Report.new('Shocks');", change the R to r, for example=" x = report.new('Shocks');"
Do I need the reporting toolbox from Matlab to use this function? Its pretty expensive.