package order strangeness

47 views
Skip to first unread message

pure...@gmail.com

unread,
Aug 16, 2021, 7:17:32 AM8/16/21
to rez-config
Hello, 

I am seeing strange behaviour where the order of packages in my rez-env call is making things work/not work in a way that is difficult for me to understand.

so :
    rez-env gaffer ffmpeg -- gaffer
works fine (gaffer launches)

but:
    rez-env ffmpeg gaffer -- gaffer
fails (ImportError: No Qt binding were found.)



for gaffer my package commands are:
    env.PATH.append('{root}/gaffer/bin')
    env.GAFFER_STARTUP_PATHS.append('{root}/gaffer/startup')
    env.PYTHONPATH.append('{root}/gaffer/python')
    env.LD_LIBRARY_PATH.append('{root}/gaffer/lib')

and for ffmpeg my commands are:
    env.PATH.append("{root}/ffmpeg")


any idea what is going wrong??


pure...@gmail.com

unread,
Aug 16, 2021, 9:03:07 AM8/16/21
to rez-config
Ok, 

I am guessing this is because gaffer wants to run its own python,
and if it is not first in the PATH variable then a different python gets run........   

so changing:
    env.PATH.append('{root}/gaffer/bin')
to:
   env.PATH.prepend('{root}/gaffer/bin')

has solved the issue.
Reply all
Reply to author
Forward
0 new messages