Skip to content

Instantly share code, notes, and snippets.

@mottosso
Last active July 9, 2019 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottosso/5b1efdef5b56261d2c7881ad1e469c4d to your computer and use it in GitHub Desktop.
Save mottosso/5b1efdef5b56261d2c7881ad1e469c4d to your computer and use it in GitHub Desktop.
8th July 2019 - Stability

A day of troubleshooting and documentation.


Long Paths

On localising PySide2, we found that Windows was having trouble finding files.

Traceback
Preparing packages.. |18:14:39 INFO     Copying source variant \\studio\packages\ext\pyside2\5.13.0\package.py[0] into repository filesystem@C:\Users\marcus\AppData\Local\Temp\tmpuxx4_d8b...
Preparing packages.. fail
Traceback (most recent call last):
  File "\\studio\packages\ext\localz\0.3.2\python\localz\__main__.py", line 209, in stage
    yield bar
  File "\\studio\packages\ext\localz\0.3.2\python\localz\__main__.py", line 370, in <module>
    verbose=opts.verbose > 2,
  File "\\studio\packages\ext\rez\2.33.2\python\rez\package_copy.py", line 196, in copy_package
    verbose=verbose
  File "\\studio\packages\ext\rez\2.33.2\python\rez\package_copy.py", line 328, in _copy_variant_payload
    maybe_symlink(src_path, dest_path)
  File "\\studio\packages\ext\rez\2.33.2\python\rez\utils\filesystem.py", line 221, in replacing_copy
    shutil.copytree(src, tmp_dest, symlinks=(not follow_symlinks))
  File "\\studio\packages\ext\python\3.7.3\platform-windows\arch-AMD64\app\lib\shutil.py", line 365, in copytree
    raise Error(errors)
shutil.Error: [
  (
    '\\\\studio\\packages\\ext\\pyside2\\5.13.0\\platform-windows\\os-windows-10\\python-3.7\\python\\PySide2\\examples\\declarative\\extending\\chapter4-customPropertyTypes\\__pycache__\\customPropertyTypes.cpython-37.pyc',
    'C:\\Users\\marcus\\AppData\\Local\\Temp\\tmpuxx4_d8b\\pyside2\\5.13.0\\platform-windows\\os-windows-10\\python-3.7\\.tmp-python-107756aef02649cf930a8f768d3e19ac\\PySide2\\examples\\declarative\\extending\\chapter4-customPropertyTypes\\__pycache__\\customPropertyTypes.cpython-37.pyc',
    [Errno 2] No such file or directory: 'C:\\\\Users\\\\marcus\\\\AppData\\\\Local\\\\Temp\\\\tmpuxx4_d8b\\\\pyside2\\\\5.13.0\\\\platform-windows\\\\os-windows-10\\\\python-3.7\\\\.tmp-python-107756aef02649cf930a8f768d3e19ac\\\\PySide2\\\\examples\\\\declarative\\\\extending\\\\chapter4-customPropertyTypes\\\\__pycache__\\\\customPropertyTypes.cpython-37.pyc'"
  )
]

Cleaning up temporary files.. ok

Added documentation for how to work around this here.


Usage Gotchas

Using Rez on Windows comes with a few gotchas, so I put together a list of things to consider for the new user.

Along with various gotchas per shell.


Tomorrow

I'll revisit the project selector, it's due for an overhaul. I'll also move the project domain and repository, shouldn't take long .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment