Python question

Installation and configuration.
Post Reply
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\", 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
Site Admin
Posts: 504
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev

Re: Python question

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

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:
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

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