From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: CentOS 6 Python error
   Date: Mon, 11 Mar 2013 18:30:18 -0400
Msg# 2289
View Complete Thread (19 articles) | All Threads
Last Next
Hi Dan,

	Hmm, try making a simple python script that looks like this:

import os,sys
print >> sys.stderr, "Hello, stderr"

	Does that load and run OK from within maya, or do you get those
	same module errors?

	If you get an error with that, then something much bigger is being
	broken.. might be just a PATH problem of some kind, as python looks
	at the PATH as well as the PYTHONPATH and PYTHONHOME.



On 03/11/13 13:27, Mr. Daniel Browne wrote:
> We just upgraded to CentOS 6 and now none of my submit scripts can be =
> called from within maya. They fail with the following error:
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File =
> "/EEP/Tools/Settings/rush/rushscripts_v102.42a9/submit-maya-python/submit-=
> maya2012.py", line 18, in <module>
>     import os,sys,re,glob,shutil,time,Rush
> ImportError: No module named os
> 
> So far setting the PYTHONHOME var has not had an effect. I can't see =
> exactly what the environment conflict comes from.


-- 
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)


Last Next