-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows installation fails with error: could not create 'build\bdist.win-amd64\wheel\.\idaes\core\surrogate\tests\data\onnx_models\net_st_net_5000_STM_100_s_2000000_60_5_tanh_1e-06 _4096_tr_15481_Calcite_ST_idaes_info.json': No such file or directory #1540
Comments
I was able to confirm that this is indeed caused by file path length limitations:
Get-ItemProperty -Path "HKLM:System\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled"
Set-ItemProperty -Path "HKLM:System\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
For more information: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later |
From more testing, I think I figured out the exact path that causes the error, at 262 characters when the default length without
Assuming this is true, and that the pattern for name mangling that |
When I tried the above solution, i.e.,
|
Thanks for the feedback @fahim831. As I mentioned in my comment above, the Also, #1545 should have resolved this error, so commands such as |
@lbianchi-lbl Thank you! I did run it with Admin privileges, which is why I was confused it didn't work. But the #1545 solution worked, using pip install git+ for both idaes and then watertap. |
conda create --yes -n test-idaes-install-error python=3.11 conda activate test-idaes-install-error pip install "idaes-pse @ git+https://github.com/IDAES/idaes-pse@main"
The text was updated successfully, but these errors were encountered: