ipython isn't invoked for "paster shell"

243 views
Skip to first unread message

Cody Django

unread,
Aug 11, 2011, 4:33:48 PM8/11/11
to pylons-discuss
Hello -- I'm using pylons for a mapfish project and would love to get
the ipython interpreter working when I call paster shell. From what
I've read on the net, it should automatically use ipython if ipython
is installed. I've installed ipython both globally (in the vm) as
well as within the mapfish vm, yet this is what happens:


(mapfish)[root@localhost]# paster shell development.ini
Pylons Interactive Shell
Python 2.6.6 (r266:84292, Jun 6 2011, 02:26:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]

All objects from *.lib.base are available
Additional Objects:
mapper - Routes mapper object
wsgiapp - This project's WSGI App instance
app - paste.fixture wrapped around wsgiapp

>>>

That's not ipython...


Iipython 0.10
pylons 1.0
CentOS release 5.6 VM


Any ideas? Thanks.

Cody

Michael Merickel

unread,
Aug 11, 2011, 6:13:27 PM8/11/11
to pylons-...@googlegroups.com
I do not believe that IPython is supported in the *Pylons* shell, "paster shell".

We do have support for IPython in the "paster pshell" command that ships with Pyramid.

I, however, could be wrong, it's been a while since I've used Pylons.

--

Michael

Mike Orr

unread,
Aug 13, 2011, 9:11:16 PM8/13/11
to pylons-...@googlegroups.com
On Thu, Aug 11, 2011 at 1:33 PM, Cody Django <codyd...@gmail.com> wrote:
> Hello -- I'm using pylons for a mapfish project and would love to get
> the ipython interpreter working when I call paster shell.  From what
> I've read on the net, it should automatically use ipython if ipython
> is installed.

It's been working for me. I'm on Ubuntu with a virtualenv of Pylons
and the OS package of IPython.

> >>>
> That's not ipython...

Are you sure? It could be, depending on how your ipython configuration
variables are set.

Can you run "python `which ipython`"?

There's a paster shell argument that disables ipython, so make sure
it's not being set implicitly somewhere.

--
Mike Orr <slugg...@gmail.com>

Michael Merickel

unread,
Aug 14, 2011, 5:28:13 PM8/14/11
to pylons-...@googlegroups.com
Another thing to mention is that we recently updated the Pyramid pshell to support IPython 0.11... the embedded shell was backward incompatible with 0.10. As 0.11 was only recently released you may be experiencing this fallback behavior. Looks like the Pylons shell will need an upgrade if anyone wants to work up a patch!

--

Michael

Iuri Diniz

unread,
Aug 17, 2011, 2:02:34 PM8/17/11
to pylons-...@googlegroups.com
I have the same problem
After upgrade to ipython 0.11, paster shell doesn't invoke ipython

I downgrade it to ipython 0.10 by
$ pip install 'ipython==0.10'


Andrey Popp

unread,
Aug 19, 2011, 3:04:40 AM8/19/11
to pylons-...@googlegroups.com

Someone should provide patch similar to this one[1].

[1]: https://github.com/mitsuhiko/werkzeug/commit/db8f4dd551430269bf18a0a2593f4543a7223063

Michael Merickel

unread,
Aug 19, 2011, 11:05:48 AM8/19/11
to pylons-...@googlegroups.com
Pyramid's 'pshell' also supports both versions of IPython here:

https://github.com/Pylons/pyramid/blob/eaf6cb2372bb274e83b7322b4dc80744de07cb8b/pyramid/paster.py#L185


--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.




--

Michael
Reply all
Reply to author
Forward
0 new messages