Thanks again Oliver,
Which version of Eclipse are you using? I'm on 3.3..I've pretty much tried
everything without success. I'm pretty sure it's something I'm doing wrong
in Eclipse as the IDLE working fine with maya.standalone. I have no idea as
I've had this working in 3.3.2 I guess I could try to upgrade and see if
that makes a difference.
Thanks a lot for your time.
Shawn
On Tue, Oct 28, 2008 at 9:59 AM, Olivier Renouard <
[EMAIL PROTECTED]> wrote:
> Hi Shawn,
>
> libMaya.so is indeed in /usr/autodesk/maya2008-x64/lib so this should not
> happen with the LD_LIBRARY_PATH set.
>
> I assume you use Pydev with Eclipse, here is what my settings look like for
> a typical launch :
>
> In Eclipse's "Window>Preferences" menu, I set under the "Pydev>Interpreter
> - Python" a new interpreter by pointing to
> /usr/autodesk/maya2008-x64/bin/mayapy and I get :
>
> /usr/autodesk/maya2008-x64/bin/python-bin
>
> System PYTHONPATH :
>
> /usr/autodesk/maya2008-x64/lib/python2.5
> /usr/autodesk/maya2008-x64/lib/python2.5/lib-dynload
> /usr/autodesk/maya2008-x64/lib/python2.5/lib-tk
> /usr/autodesk/maya2008-x64/lib/python2.5/plat-linux2
> /usr/autodesk/maya2008-x64/lib/python2.5/site-packages
> /usr/autodesk/maya2008-x64/lib/python25.zip
> /usr/autodesk/maya2008-x64/lib/
>
> In forced builtins (but that's only for code completion, not needed to run
> scripts) I added all OpenGL, OpenMaya, etc libs
>
>
> In the "Open run dialog" :
>
> In "interpreter" tab, I point it to the
> /usr/autodesk/maya2008-x64/bin/mayapy interpreter and I get :
>
> /usr/autodesk/maya2008-x64/bin/python-bin -u
> /home/orenouard/Eclipse/pymel/core/pmtypes/wrappedtypes.py
>
> The PYTHONPATH that will be used is:
>
>
> /home/orenouard/.eclipse/org.eclipse.platform_3.3.0/configuration/eclipse/plugins/org.python.pydev_1.3.18/PySrc/pydev_sitecustomize:/usr/autodesk/maya2008-x64/lib/python2.5:/usr/autodesk/maya2008-x64/lib/python2.5/lib-dynload:/usr/autodesk/maya2008-x64/lib/python2.5/lib-tk:/usr/autodesk/maya2008-x64/lib/python2.5/plat-linux2:/usr/autodesk/maya2008-x64/lib/python2.5/site-packages:/usr/autodesk/maya2008-x64/lib/python25.zip:/usr/autodesk/maya2008-x64/lib
>
> In "environment" I setup one env var, LD_LIBRARY_PATH :
>
>
> Name :LD_LIBRARY_PATH
> Value: ${env_var:MAYA_LOCATION}/lib
>
> I have MAYA_LOCATION set to /usr/autodesk/maya2008-x64/ session wise.
>
> Hope that helps, can't think of something else that might differ
>
> Olivier
>
>
>
> Shawn Patapoff wrote:
>
> Hey Oliver thanks a lot for the response.
>
> I set the path as you have suggest and get a new error in python now:
>
> ImportError: libMaya.so: cannot open shared object file: No such file or
> directory
>
> Does that error imply that it's not seeing the lib directory properly?
>
> Thanks again.
>
>
> On Tue, Oct 28, 2008 at 2:35 AM, Olivier Renouard <
> [EMAIL PROTECTED]> wrote:
>
>>
>> [EMAIL PROTECTED] wrote:
>> > Hey Everyone,
>> >
>> > I've managed to get maya.standalone working fine with python without
>> > Eclipse. When I try to run the same commands in eclipse it doesn't
>> > work. I've trying linking various things in the Python Interpreter
>> > section of Eclipse without any luck. Does anyone have any experience
>> > setting this up?
>> >
>> > Cheers,
>> > Shawn
>> > >
>> >
>> >
>> Hi,
>>
>> On Linux at least it works for me. I need to set the env var
>> LD_LIBRARY_PATH=/usr/autodesk/maya2008-x64/lib in the python interpreter
>> option (environment) in Pydev/Eclipse. It's easier to choose
>> /usr/autodesk/maya2008-x64/bin/mayapy as the interpreter as it will set
>> several env var for you, but it's also possible to use the system Python
>> if veriosn is compatible. I think in Windows LD_LIBRARY_PATH is not
>> disctinct form the main PATH, so it is the variable you need to set.
>> MAYA_LOCATION and MAYA_APP_DIR are set as env var for the session.
>>
>> --
>> Olivier Renouard
>>
>>
>>
>>
>>
>
>
>
>
> --
> Olivier Renouard
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---