Python question

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

Python question

Post by igorChopenko » Mon Feb 13, 2017 10:15 am

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: 390
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Python question

Post by timurhai » Mon Feb 13, 2017 11:40 am

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

igorChopenko
Posts: 7
Joined: Thu Feb 09, 2017 1:48 pm

Re: Python question

Post by igorChopenko » Tue Feb 14, 2017 4:28 pm

Thank u,it helps

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest