Hi there, OK here's some stuff from the terminal window... Pro1:~ davegreenwood$ echo `which ipython` /usr/local/bin/ipython Pro1:~ davegreenwood$ echo `which ipymel` /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel Pro1:~ davegreenwood$ echo `which mayapy` /Applications/Autodesk/maya2009/Maya.app/Contents/bin/mayapy Pro1:~ davegreenwood$
I actually created directories that matched the install docs for pymel as you can see. now when I try this: Pro1:~ davegreenwood$ mayapy Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import IPython >>> I just get the next line, but if I try from a python session: Pro1:~ davegreenwood$ python Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import IPython Leopard libedit detected. >>> I get the line with libedit, which is mentioned in the ipython docs... finally if I just do ipython in a new shell: Pro1:~ davegreenwood$ ipython Leopard libedit detected. Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) Type "copyright", "credits" or "license" for more information. IPython 0.9.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: This seems to me to be a proper launch of ipython... Again, I'm at the limit of my terminal knowledge (does that mean it's all I'll ever know?), but I'm thinking permissions on ipython in /usr/ local/bin/ipython, which I'll try soon... Otherwise maybe libedit (the OSX readline module replacement)? Or something completely different? Thanks again for your help Dave On Apr 21, 5:26 pm, chadrik <[email protected]> wrote: > what are the exact results you get when running the following: > > at a shell: > > echo `which ipython` > echo `which ipymel` > echo `which mayapy` > > from a mayapy session: > > import IPython > > On Apr 21, 2009, at 6:47 AM, davegreenwood wrote: > > > > > Hi, first sorry if my mail appears twice, this is my second sending, > > but I'm not sure if messages are moderated? > > > Anyway, I'm experiencing the same problem. I'm happy that my paths are > > set correctly, if I type: > > > /usr/bin/env mayapy > > > I get a mayapy session, and also I can import pymel. > > > As in the first post, what isn't working is just the ipymel script. I > > tried changing the first line of > > ipymel to: > > > #!$MAYA_LOCATION/bin/mayapy > > > but nothing changed. I did notice that I only had one (long) line in > > that file, I'm not sure that is how it should be? > > > Anyway, I'd love to get this going. > > > Thanks in advance for any help. > > > Dave. > > > On Apr 13, 8:36 pm, Chadrik <[email protected]> wrote: > >> It looks like the script is being interpreted as a shell script > >> instead of a python script. The very first line of tools/bin/ipymel > >> is a fancy way of informing the system what executable to use to > >> interpret the script: > > >> #!/usr/bin/env mayapy > > >> the reason i say it's "fancy" is because usually the path is hard- > >> coded to the location of the python binary, or in our case mayapy. > >> mayapy is not guaranteed to be in any one location on all systems so > >> I'm using the executable 'evn' to determine where to find the > >> 'mayapy' > >> executable. > > >> if you open a new shell and type the following, it should start a > >> mayapy session: > > >> /usr/bin/env mayapy > > >> Let me know if that does not work. Also, I just realized that there > >> is a much simpler way to do this. replace the first line of ipymel > >> with the following > > >> #!$MAYA_LOCATION/bin/mayapy > > >> and just to make sure we're clear, to launch ipymel -- once its setup > >> properly -- all you need to do is type: > > >> ipymel > > >> -chad > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
