Closed BaptisteLeroux closed 6 months ago
Well, modifying the paths manually is not really a solution ;)
So it seems that there is an error in 7z? What happens if you just try to unzip the file using the 7z package via a notebook or a simple script? Can you reproduce the problem?
This part is working when the notebook file is in the iris_2021 directory in data
Ok, so here you don't get the error when archive.extract
is called, this is where the error happens in the first case.
You say that you execut that in the directoy where the 7z is located. What happens if you execute this anywhere also and you give the full absolute path C:\\...
to SevenZipFile
? I have a doubt that the path is simply too long to be handled by Windows.
Or wrather when you put the absolute path to the current directory as the first argument in extract
?
This works, it's just necessaray to add the "\" instead of single "\" in the path tho. If I only copy paste the absolute path from my folder without doubling each "\" it reports a unicode error
Here it's also working when i put in the extract function
Hm, ok, but here the paths are still shorter than before. Does it work if you put the absolute paths that are used inside the pipeline (wit the cache paths etc)?
Please reopen if the problem has not been resolved.
When I run python -m synpp, I had those errors : This is due to unzipping issue. Do it manually in the data folder. Then you will face another error due to pathway which should be automaticaly correct. However it does not found the right one. One solution is to modify directly the files iris.py and raw.py (spatial and bdtopo folders). Here is an exampleof what I did with my own path :
data.zip