Skip to content
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

Rez environment not evaluated in time for command on Windows #746

Closed
bsilvaLS opened this issue Sep 11, 2019 · 6 comments
Closed

Rez environment not evaluated in time for command on Windows #746

bsilvaLS opened this issue Sep 11, 2019 · 6 comments

Comments

@bsilvaLS
Copy link

bsilvaLS commented Sep 11, 2019

Hello! We're using Rez with the Shotgun Toolkit, and I've just updated to the latest Rez version. In the latest, the rez_app_launch.py script is failing here:

https://github.com/nerdvegas/rez/blob/9aaf75c16a2705d50b44e3ef08e6737b2066357d/src/support/shotgun_toolkit/rez_app_launch.py#L134

If I run that command myself at the command prompt, now I just get back the environment variable string instead of the path:

> rez-env rez -- echo %REZ_REZ_ROOT%
%REZ_REZ_ROOT%

I've narrowed this down to v2.35.0 -- it works fine in v2.34.0, so I suspect this is an unintended consequence of the Windows changes made in that version.

Any ideas? Thanks!

@nerdvegas
Copy link
Contributor

nerdvegas commented Sep 11, 2019 via email

@bsilvaLS
Copy link
Author

That's great news!

I cloned/installed the bfloch fork, and it all seems to be working again:

rez-install\bfloch\Scripts\rez> rez-env rez -- echo %REZ_REZ_ROOT%
\\...\rez-packages\ext\rez\2.18.0\platform-windows

(Clearly I need to update that package, too.)

Thanks a lot!

@nerdvegas
Copy link
Contributor

nerdvegas commented Sep 11, 2019 via email

@bfloch
Copy link
Contributor

bfloch commented Sep 13, 2019

@bsilvaLS This fork has been released as https://github.com/nerdvegas/rez/releases/tag/2.47.0
Give it a try and feel free to close the issue if it still works for you.

@bsilvaLS
Copy link
Author

@bfloch I've been testing this for a few days and so far it works great! Thanks a lot for your work.

@bfloch
Copy link
Contributor

bfloch commented Sep 25, 2019

Glad to hear.
Closing this issue. Feel free to open a new one if necessary.

@bfloch bfloch closed this as completed Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants