Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-24 Thread md
Thanks to all !! I feel like a little kid that has been give a key to the gun rack. ;-) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-24 Thread md
*Thanks to all !! I feel like a little kid that has been give a key to the gun rack. ;-)* On Thursday, July 24, 2014 7:41:33 AM UTC-4, Marcus Ottosson wrote: > > Thanks for chipping in, Justin, but that's not really helpful. > > > On 23 July 2014 20:39, Justin Israel > > wrote: > >> I have to sa

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-24 Thread Marcus Ottosson
Thanks for chipping in, Justin, but that's not really helpful. On 23 July 2014 20:39, Justin Israel wrote: > I have to say that Windows is the most complicated out of the platforms, > when dealing with compiled python extension compatibility in Maya. > Osx/Linux are far easier to end up with st

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread Justin Israel
I have to say that Windows is the most complicated out of the platforms, when dealing with compiled python extension compatibility in Maya. Osx/Linux are far easier to end up with standard compiled extensions that work within Maya. On 24/07/2014 3:47 AM, "Marcus Ottosson" wrote: > Or just used th

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread Marcus Ottosson
Or just used the system’s python? :) I think he’s referring to importing modules within Maya. So … i guess this means i have to search out libraries and Python2.7 that have been recompiled using VS2012 ? Yeah, it’s quite an effort. You’ll have to maintain separate PYTHONPATHs per compiler of Pyt

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread Eric Thivierge
Or just used the system's python? :) On Wednesday, July 23, 2014 11:31:58 AM, md wrote: I cant spend all day looking for this stuff ... i know there are a ton of legalities, but I wish that Autodesk would have recompiled the most widely used libraries and included them with Maya. -- You receiv

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
I did find this bit of information on http://www.robg3d.com/maya-windows-binaries/ - Maya 2012 and earlier use whatever compiler Python uses. - Maya 2013 and 2014 use Python 2.6 compiled with VS2010. The same binaries should be compatible in Maya 2013 and 2014. - *Maya 2015 uses Py

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
When I launch my Python shell I can see that it is [MSC v.1500 64 bit (AMD64)] So I need to find a version of python 27 that was compiled on 2010 if I want to be safe .. and find modules compiled w/ 2010 as well ? How does one find these ? I guess google ? Thanks M On Wednesday, July 23, 2

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread Marcus Ottosson
On Windows, Maya is using a Python version compiled with a different compiler than the version you get from Python.org; Visual Studio 2010 as opposed to Visual Studio 2008. You’ll have to get a version of numpy compiled with 2010 if you need it to work from within Maya. You can get the version by l

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread Eric Thivierge
Are you sure you got the correct version for your Python version? import sys print sys.version Does that match the version of numpy you grabbed? I'm guessing the numpy installer would check for compatibility though... -- You received this message because you are subscribed to the Google Group

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-23 Thread md
I am now using a userSetup.py to set python paths. The modules are being found, but I am running into trouble loading them. Specifically numpy. As far as I know Maya 2015 uses Python 2.7. I downloaded the latest numpy for python 2.7. It installes (by default) in my C:\Python27\Lib\site-packa

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-22 Thread Justin Israel
Either userSetup,py, or a wrapper script that launches Maya? On Wed, Jul 23, 2014 at 12:39 PM, md wrote: > So I got the modules loading by using the following in my maya.env > > > PYTHONPATH=%PYTHONPATH%;%MAYA_LOCATION%;C:\Python27;C:\Python27\Lib\site-packages > ;C:\Python27\Lib\site-packages

[Maya-Python] Re: PYTHONPATH and additional modules

2014-07-22 Thread md
So I got the modules loading by using the following in my maya.env PYTHONPATH=%PYTHONPATH%;%MAYA_LOCATION%;C:\Python27;C:\Python27\Lib\site-packages ;C:\Python27\Lib\site-packages\dateutil;C:\Python27\Lib\site-packages\matplotlib;C:\Python27\Lib\site-packages\numpy There has to be a better way.

Re: [Maya-Python] Re: PYTHONPATH and additional modules

2014-07-22 Thread Justin Israel
If you use python eggs (as opposed to normal package sub directories) and have a bunch of them in a location, then the site/pth process will end up expanding your PYTHONPATH to have all those eggs in there. You can control your custom Maya environment either with a wrapper to launch Maya, or from

[Maya-Python] Re: PYTHONPATH and additional modules

2014-07-22 Thread md
I used import sys print sys.path to check th epath inside Maya ... its huge .. I also see that Maya is reading its own python directories what is the easiest way to clean this up ... lol -- You received this message because you are subscribed to the Google Groups "Python Programming for Aut