Closed mvieno closed 6 years ago
The user uses Python version earlier than 2.7, which added support for the "context manager" protocol (which is necessary for using the with statement) to the tarfile module. See https://stackoverflow.com/questions/6086603/statement-with-and-tarfile
My workaround is to remove the "unpack" call in the catalog.py at the end of the python script
@mvieno
Do you have Python 2.7 or later at your HPC? Maybe trough a module load
?
I know that a download link would be easier, but the EMEP01 meteorology files hare so big that they need to be downloaded individually...
If you do not have Python 2.7, I'll look into untaring without with
.
Also, the 2015 EECCA meteorology on this release is the same that on the previous release. So if you already have it, you do not need to download it again.
Hi. Possibly, but instead of doing that I changed the python script skipping the automatic untar. I actually prefer untar and unzip manually. I've now also added the python2.7.
@mvieno I'm glad you found a solution and that you moved to Python 2.7. Python 2.6 reached end of life on 2013 and 2.7 will stay until 2020. I just committed a fix for Python 2.6, but considering how outdated it is I do not think that we should support it any longer.