Why won't your code work in 2.6? 2.5 should be pretty forward
compatible.

Can't you update the little bit of incompatible code. Just importing
'os' shouldn't error. That is pretty much the same for both versions.

Just seems like a real pain to get a 2.5 interpreter to run in a
subprocess inside 2011.

I'd start to look at your environment inside of Maya at the time you
are trying to import/run that script.

The easiest way to do this is to debug your process live with Wing or
Eclipse. You can set a breakpoint at the first error you get and use a
debug probe to see the state or your interpreter and environment.
Examining sys.path is going to be your first priority.


On Jan 22, 7:04 am, Geoff Harvey <[email protected]> wrote:
> Hello!
>
> Long time listener, first time caller.
>
> I've run into a situation where I need to launch gather some data from
> a python script.
>
> The script I need to run happens to be long, complicated, and requires
> python2.5.
>
> Thing is, when I launch it via subprocess from a python script inside
> of Maya, I get a bunch of incompatibility errors, starting with the
> inability to import the os module.
>
> Running the same scenario outside of Maya (ie, launching the python2.5
> script inside a python2.6 shell) works just swell.
>
> Any ideas on how to do this?
>
> Thanks in advance!

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to