AntaresSimulatorTeam / antares-xpansion

Antares-Xpansion aims at performing investment simulations. It is currently based on Antares_Simulator studies.
https://antares-doc.readthedocs.io/
Apache License 2.0
7 stars 10 forks source link

Long Path Issue #574

Open ThanosGkou opened 1 year ago

ThanosGkou commented 1 year ago

It seems that when the Antares study to be used for expansion is located in a "deep" path (in my case the study root directory has a depth of 10 as compared to "C:/" --working in Windows--), there is a problem with the creation of the output directory of the expansion optimization.

The crash is observed right after the "--Problem Generation" stdout message, and the "lp_namer.log" contains the error: "error: the argument ('C:\Users\path....\to....\study\output\20221129-1300eco') for option '--output' is invalid"

The same study is executed successfully when set in a directory of e.g. depth 5 (counting from "C:/")

tbittar commented 1 year ago

Thank you for reporting this issue. Indeed, on Windows there is a limit on the length of the paths that can be manipulated. We will investigate if we can do something within Xpansion, but this is not prioritized as there is a workaround as you mentioned.