Page 1 of 1

Python question

Posted: Mon Feb 13, 2017 10:15 am
by igorChopenko
Hello again, Timur.
Continuing configuring afanasy )
now i have a goal - to use our wrapped maya for rendering, i've modified(for example mayarender.cmd) for launching our wrapper script instead maya render executable, all attributes passed successfully, and all works fine from commandline.

But when it launches from afrender: i've got messages like:
afrender Returns: Finished PID=7428: Exit Code=1 Status=1
task output: File "d:\dev\pipeline\cgru\2.2.0\python\lib\site.py", line 176 file=sys.stderr) ^ SyntaxError: invalid syntax

we using python 2.7 on win7x64, i 've tried to clean my environments from cgru python3.4 paths, but still catches that error.
can u recommend me some way to fix this issue?

Re: Python question

Posted: Mon Feb 13, 2017 11:40 am
by timurhai
Hi.
This can be when Maya's Python 2x uses scripts form CGRU's Python 3x.
You should reset CGRU PYTHONHOME variable.
Add to you cmd:
set PYTHONHOME=

Re: Python question

Posted: Tue Feb 14, 2017 4:28 pm
by igorChopenko
Thank u,it helps