Closed Anti-Distinctlyminty closed 1 year ago
My first bet would be the length of these paths is too long.
My first bet would be the length of these paths is too long.
Bingo. I really thought I had long paths enabled, but apparently not. I set the following registry key to 1:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled
And in the future I'll be using hashed variants.
Thank you @JeanChristopheMorinPerso
You can also get rid of the SideFXLabs-19.0.426
folder.
When trying to cache SideFX labs, the copying always stalls
Environment
To Reproduce
package.py
```python name = "sidefx_labs" version = "19.0.426" requires = ["houdini-19+"] variants = [["platform-windows", "arch-AMD64"]] build_requires = ["python-3"] build_command = "python {root}/build.py" uuid = "788291ea-56d4-11ed-8c87-e0d55e201446" def commands(): env.HOUDINI_PATH.prepend("{root}/SideFXLabs-19.0.426") ```build.py
```python import os import zipfile from pathlib import Path if __name__ == "__main__": sourcePath = Path(os.environ["REZ_BUILD_SOURCE_PATH"]) if os.environ["REZ_BUILD_INSTALL"] == "1": binPath = Path(os.environ["REZ_BUILD_SOURCE_PATH"]) / "bin" installPath = Path(os.environ["REZ_BUILD_INSTALL_PATH"]) buildPath = Path(os.environ["REZ_BUILD_PATH"]) payload = "19.0.426.zip" targetFilePath = binPath / payload if not targetFilePath.exists(): raise FileExistsError() if not zipfile.is_zipfile(targetFilePath): raise RuntimeError(f"Invalid zip archive {targetFilePath}") with zipfile.ZipFile(targetFilePath) as z: z.extractall(path=installPath) ```Expected behavior It should cache successfully
Actual behavior It fails with the above error on the same two files. All other files seem to copy successfully.