Hi Chad, well I have got ipymel working, but only by re-writing the
ipymel file like so:

#!/usr/bin/env mayapy

# -*- coding: utf-8 -*-

import IPython.Shell

s = IPython.Shell.start()
import pymel.tools.ipymel
s.mainloop()


I cut out the the info section, as I was having problems with the way
my comp was seeing the quotes, as well as the problems with line
ends...

I can't tell why I am having this problem, I tried downloading the
files on another computer, where they appear fine, but when I copy the
file in question to the dev machine... no go. Unfortunately I can't
install on the other machine and try them out for real.
BTW I had a good look through the other files, and found the same
problem with the scriptEditor.mel, no other files seem to be affected
though.
I wonder what text editor you use to create these files? I would at
this point have assumed it was just me, if not for the guy who started
this thread, who obviously had the same trouble.
So, currently mysterious, but at least I'm up and running, hopefully
it might help anyone else with the same probs.

Thanks again
Dave.



On Apr 22, 5:38 am, Chad Dombrova <[email protected]> wrote:
> hey dave,
> thanks for sorting that out. i'll take the googlecode zip down until i  
> get it fixed up.
>
> -chad
>
> On Apr 21, 2009, at 3:25 PM, davegreenwood wrote:
>
>
>
> > Ok , I think I have it. Not seen this before, and I don't know why
> > this is happening, but, the zip on code.google.com when decompressed,
> > strips some of the line endings in the files. The highend3d zip seems
> > OK. I'm going to go over my installation completely and check
> > further...
> > Cheers
> > Dave.
>
> > On Apr 21, 8:59 pm, davegreenwood <[email protected]> wrote:
> >> Sorry Chad it's not that. Again from my window:
>
> >> Pro1:~ davegreenwood$ chmod 777 `which ipymel`
> >> Pro1:~ davegreenwood$ echo `which ipymel`
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel
> >> Pro1:~ davegreenwood$ ipymel
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 1: /
> >> Applications: is a directory
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 2: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 3: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 4: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 5: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 6: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 7: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 8: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 9: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 10: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 11: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 12: :
> >> command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 13: :
> >> command not found
> >> : No such file or directorython/pymel/tools/bin/ipymel: line 14: */
> >> /Users/davegreenwood/dev/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/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 46:
> >> import: command not found
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 48:
> >> syntax error near unexpected token `('
> >> /Users/davegreenwood/dev/python/pymel/tools/bin/ipymel: line 48: `s =
> >> IPython.Shell.start()'
> >> Pro1:~ davegreenwood$
>
> >> funny thing is, my setup looks so similar to yours on the youtube
> >> demo, same versions of everything. I wonder if its to do with the
> >> python installation?
> >> You might of noticed that the version is slightly different in the
> >> maya version and my included osx version (still 2.51 but check the
> >> details from my earlier post).
> >> Is it possible to make sure I always use the maya version of python
> >> with pymel/ipymel?
> >> I'm not sure what other info about my setup I can offer to shed any
> >> light. I have installed the apple dev tools, which I believe install
> >> some python additives, but otherwise a fairly standard machine with
> >> not much else on it...
>
> >> Again thanks for your help.
> >> Dave.
>
> >> On Apr 21, 8:23 pm, Chadrik <[email protected]> wrote:
>
> >>> i think i may have missed the obvious here:
>
> >>> chmod 777 `which ipymel`
>
>
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to