From: "Mr. Daniel Browne" <dbrowne@(email surpressed)>
Subject: Re: CentOS 6 Python error
   Date: Tue, 12 Mar 2013 18:02:28 -0400
Msg# 2303
View Complete Thread (19 articles) | All Threads
Last Next
The unset method does not work. I get the impression the GUI is being displayed using maya's internal python, but then subsequent calls to the script require PYTHONHOME to be set to /usr otherwise they will fail as they are running outside maya's environment.

The PYTHONPATH solution suggested by the autodesk page doesn't resolve it either. What still puzzles me is why I didn't have this problem before; I've had a test machine running CentOS 6 for a while now and I swear the submits were working just fine before.
I even tried the CentOS 6.4 update that came out yesterday and there was no difference.


On Mar 12, 2013, at 2:49 PM, Greg Ercolano wrote:

[posted to rush.general]

On 03/12/13 14:26, Mr. Daniel Browne wrote:
> [posted to rush.general]
> 
> I'll try the unset method; actually that is what Maya is supposed to be =
> doing for you but seeming isn't. Maya2012 for instance sets PYTHONHOME =
> to /u/mayabld/Python-2.6.4/pybuild

	Yes, I think the unset is worth a try, at least on unix platforms
	that should work, as it's bourne shell syntax. (DOS has different syntax)

	It's best to make sure the OS version of python doesn't try to read
	its base modules (like os, sys, subprocess..) from a different version
	of python (like maya's own python), because some modules use binaries
	internally, and python could crash badly if it loads modules that were
	compiled with a different ABI.

-- 
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/

Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)


----------
Dan "Doc" Browne
System Administrator
Evil Eye Pictures

dbrowne@(email surpressed)
Office: (415) 777-0666 x105


Last Next