eqasim-org / ile-de-france

An open synthetic population of Île-de-France for agent-based transport simulation
GNU General Public License v2.0
47 stars 69 forks source link

Error about pathway & file not existing #207

Closed BaptisteLeroux closed 6 months ago

BaptisteLeroux commented 9 months ago

When I run python -m synpp, I had those errors : image 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

sebhoerl commented 9 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?

BaptisteLeroux commented 9 months ago

image This part is working when the notebook file is in the iris_2021 directory in data

sebhoerl commented 9 months ago

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 ?

BaptisteLeroux commented 9 months ago

image 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

BaptisteLeroux commented 9 months ago

image Here it's also working when i put in the extract function

sebhoerl commented 9 months ago

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)?

sebhoerl commented 6 months ago

Please reopen if the problem has not been resolved.