Open huainie opened 3 weeks ago
Additional error information: EFSLoadProfile_Reference_Moderate.csv: Unsupported ZIP compression method (9: deflation-64-bit)
Hey @huainie; thanks for reporting! What OS are you using? Windows? If you are on windows, I would suggest running PyPSA-USA via WSL (this is what I do). Im not sure we have any regular developers using Windows, so this may just be a Windows specific bug. Sorry for the hassle!
@samdotson you found a fix for this on windows correct? Could you share what you did?
@trevorb1 Yes, I use windows @ktehranchi Yes, I solved the problem by finding the unzipped part of the code that uses Python's zipfile module to handle all the zipped files instead of relying on the system command tar. The original decompression method could not handle DEFLATE64.
I replaced the system command tar with Python's zipfile module to handle it
I solved the issue by installing 7 Zip and replacing the tar
system command with 7z
. Worked like a charm. The only challenge is that it depends on users having 7z installed (which could be added to the instructions). Or I could add a snakemake
rule to install check for 7z and install it if not found.
Checklist
master
branchpypsa-usa
environment. Update viaconda env update -f envs/environment.yaml
The Issue
I was using the command“Snakemake-j1-- configfile config/config.default.yaml” when I found that the EFS file could not be decompressed and wanted to know what to do with it
Steps To Reproduce
No response
Expected Behavior
No response
Error Message
Anything else?
No response