-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation on Julia >= v1.1 broken on Windows #100
Comments
Just to confirm, after applying my fix above DSGE.jl can be installed on Julia v1.5 for Windows. |
Executing Creating dataset...
API key loaded.
Fetching FRED series GDP...
Fetching FRED series CNP16OV...
Fetching FRED series GDPDEF...
Fetching FRED series AWHNONAG...
Fetching FRED series CE16OV...
Fetching FRED series COMPNFB...
Fetching FRED series PCEPILFE...
Fetching FRED series DFF...
Fetching FRED series PCE...
Fetching FRED series FPI...
Fetching FRED series BAA...
Fetching FRED series BAMLC8A0C15PYEY...
Fetching FRED series GS10...
Fetching FRED series GDI...
Updated data from FRED written to C:\Users\Juergen\.julia\packages\DSGE\tJSkz\save\input_data\raw\fred_181115.csv.
┌ Warning: C:\Users\Juergen\.julia\packages\DSGE\tJSkz\save\input_data\raw\dlx_181115.csv was not found; missings used
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:242
┌ Warning: C:\Users\Juergen\.julia\packages\DSGE\tJSkz\save\input_data\raw\ois_181115.csv was not found; missings used
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:242
┌ Warning: df[obs_longinflation] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_longrate] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_tfp] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate1] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate2] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate3] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate4] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate5] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
┌ Warning: df[obs_nominalrate6] is all missing.
└ @ DSGE C:\Users\Juergen\.julia\packages\DSGE\tJSkz\src\data\load_data.jl:428
dataset creation successful
Reoptimizing...
Iter Function value Gradient norm
0 6.826539e+03 6.003667e+03
1 1.569033e+03 5.943879e+02
2 1.461981e+03 7.444913e+02
3 1.236580e+03 3.203990e+02
4 1.163819e+03 2.254286e+02 |
Thanks for figuring out the problem for us, or at least a fix to whatever is causing the problem. I'll update the README to point to this post. With regard to the data, |
William, can you help @StefanKarpinski (see here) regarding the TAR archive of DSGE.jl? |
The fix here as detailed in JuliaLang/Pkg.jl#1943 is to not include such long paths in the package. There are paths in this package that are 195 bytes long with file names as long as 109 bytes. That has multiple problems:
The error handling can be improved but if you want this package to be installable on Windows, shorten the paths. |
@JuergenWiemers Can you try dev'ing DSGE? I removed the problematic test files generated by the plot test script (although maybe there are other files that are problematic). Unfortunately, I don't have access to a Windows machine, or else I would test it myself. Alternatively, you can check here: https://api.github.com/repos/FRBNY-DSGE/DSGE.jl/tarball/c6a269cab44459bc1747c3316a9b6bee1ac61887 |
@chenwilliam77 Well, this is kind of embarassing. Before dev'ing DSGE, I first tried to reproduce the error. So I started from a clean state (I even completely deleted the .julia folder) and switched off the long pathname support in the Windows registry. DSGE 1.1.6 installed without problems. Then I tried the same thing on a second Windows machine, which didn't even have Julia installed before. Again, no problems with installing DSGE on that machine. It goes without saying that the current master of DSGE works as well. I'm not sure what to make of that. Some weird Heisenbug? |
Hrmmmmm, well, whatever happened, I'm glad it works now. Fingers crossed that my changes to the plotting tests are all that's required in the future! Thanks for all the help in getting this sorted out. |
As mentioned here installation on Windows starting from Julia v1.1 seems to be broken right now. This is still an issue on Julia v1.5. When trying to install DSGE.jl in a clean environment I get:
The error occurs in Pkg.jl's
Operations.jl
in the functioninstall_archive
. The function checks whether the temporary folder, which includes the extracted DSGE.jl (or any other) package, contains exactly one path - excluding a possible spurious file calledpax_global_header
, which seemingly 7z might create on Windows:However, for DSGE.jl the contents of the temporary folder that is created during the installation of DSGE.jl look like this:
Thus, filtering
pax_global_header
doesn't help because it isn't even there. Instead there is a bunch of other.data
and.paxheader
files, which are not filtered out such that@assert length(dirs) == 1
errors.I guess this would be easy to fix in Julia. Simpliy replacing
with
should do the trick (have submitted the issue to Julia here). However, I thought it might be useful to submit the issue here as well, since I never had this issue with any other package (and I installed quite a lot...). What's so special about the DSGE.jl package that 7z creates these weird "spurious" files on Windows?
Version info:
The text was updated successfully, but these errors were encountered: