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]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>     [EMAIL PROTECTED] <mailto:[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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to