Hi,
I've been trying to get ipymel running from the shell but for some reason It
keeps on giving me errors. As far as I can tell I've done all the steps from
the installation section.

Can somebody please have a look. Thanks in advance.

Manu

This is my .profile:
export IPYTHONPATH=/Users/manu/Development/python/ipython/IPython
export PYTHONDEV=/Users/manu/Development/python
export MAYA_LOCATION=/Applications/Autodesk/maya2009/Maya.app/Contents
export PATH=$MAYA_LOCATION/bin:$PYTHONDEV/pymel/tools/bin:$PATH
export PYTHONPATH=$PYTHONDEV
export PYTHONPATH=$PYTHONPATH:$IPYTHONPATH

These are the errors that I'm getting:

/Users/manu/Development/python/pymel/tools/bin/ipymel: line 1:
/Applications: is a directory
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 2: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 3: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 4: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 5: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 6: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 7: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 8: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 9: : command not
found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 10: : command
not found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 11: : command
not found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 12: : command
not found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 13: : command
not found
: No such file or directoryhon/pymel/tools/bin/ipymel: line 14: */
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 44: IPython --
An enhanced Interactive Python

This is the IPython startup wrapper script, modified to work with maya and
pymel.
In order for this to work mayapy must be on your system PATH. The mayapy
executable is located in the maya bin directory, so it's a good idea
to have this directory in your PATH anyway.  This script must be
set to executable to run ( from the terminal, cd into the directory this
file lives
and type: chmod 777 ipymel ). The rest of the docs below come from the
original ipython
executable...

The shell's mainloop() takes an optional argument, sys_exit (default=0). If
set to 1, it calls sys.exit() at exit time. You can use the following code
in
your PYTHONSTARTUP file:

import IPython
IPython.Shell.IPShell().mainloop(sys_exit=1)

[or simply IPython.Shell.IPShell().mainloop(1) ]

and IPython will be your working environment when you start python. The
final
sys.exit() call will make python exit transparently when IPython finishes,
so
you don't have an extra prompt to get out of.

This is probably useful to developers who manage multiple Python versions
and
don't want to have correspondingly multiple IPython versions. Note that in
this mode, there is no way to pass IPython any command-line options, as
those
are trapped first by Python itself.
: command not found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 46: import:
command not found
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 48: syntax error
near unexpected token `('
/Users/manu/Development/python/pymel/tools/bin/ipymel: line 48: `s =
IPython.Shell.start()'

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

Reply via email to