[IPython-user] ipython qt4 bug?
Darren Dale
darren.dale@cornell....
Tue Feb 5 08:23:13 CST 2008
I'm almost 100% positive this is a problem in PyQt4. We had a similar problem
with QApplication.exec, which got ironed out when PyQt-4.2 (I think it was
4.2) was released. I'll ask about it on the PyQt mailing list.
Darren
On Monday 04 February 2008 05:58:59 pm humufr@yahoo.fr wrote:
> Hello,
>
> With the last ipython svn I have a problem to use the magic command cpaste.
> It's working fine with qt3 or the default thread but the problem is there
> if you are trying to use qt4 for backend in pylab.
>
> Here you'll find the output.
>
> The error is there because I did an ctrl-d to stop the loop with the error
> message on the loop.
>
> Thanks
>
> N.
>
> > ipython --q4thread
>
> Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.8.3.svn.r3001 -- 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]: cpaste
> Pasting code; enter '--' alone on the line to stop.
>
> :QCoreApplication::exec: The event loop is already running
>
> QCoreApplication::exec: The event loop is already running
> QCoreApplication::exec: The event loop is already running
> QCoreApplication::exec: The event loop is already running
> QCoreApplication::exec: The event loop is already running
> QCoreApplication::exec: The event loop is already running
> QCoreApplication::exec: The event loop is already running
> ---------------------------------------------------------------------------
> EOFError Traceback (most recent call last)
>
> <ipython console> in <module>()
>
> /usr/lib/python2.5/site-packages/IPython/iplib.pyc in ipmagic(self, arg_s)
> 951 else:
> 952 magic_args = self.var_expand(magic_args,1)
> --> 953 return fn(magic_args)
> 954
> 955 def ipalias(self,arg_s):
>
> /usr/lib/python2.5/site-packages/IPython/Magic.pyc in magic_cpaste(self,
> parameter_s)
> 3149 print "Pasting code; enter '%s' alone on the line to stop."
> % sentinel
> 3150 while 1:
> -> 3151 l = iplib.raw_input_original(':')
> 3152 if l ==sentinel:
> 3153 break
>
> EOFError:
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
--
Darren S. Dale, Ph.D.
Staff Scientist
Cornell High Energy Synchrotron Source
Cornell University
275 Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853
darren.dale@cornell.edu
office: (607) 255-3819
fax: (607) 255-9001
http://www.chess.cornell.edu
More information about the IPython-user
mailing list