Python question

Installation and configuration.
Post Reply
igorChopenko
Posts: 7
Joined: Thu Feb 09, 2017 1:48 pm

Python question

Post 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?
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Python question

Post 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=
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
igorChopenko
Posts: 7
Joined: Thu Feb 09, 2017 1:48 pm

Re: Python question

Post by igorChopenko »

Thank u,it helps
Post Reply