[IPython-User] Can't run qtconsole
Klonuo Umom
klonuo@gmail....
Tue Sep 20 19:58:55 CDT 2011
I think I first noticed this after upgrating Ubuntu to 11.10. I sent bug
report some days ago.
Right now I downloaded latest version from git and it's same.
I always think maybe I forgot something or missing some dependency
$ ipython qtconsole --pylab
Here is bug report again just in case:
***************************************************************************
IPython post-mortem report
{'commit_hash': '3994edb',
'commit_source': 'installation',
'ipython_path': '/usr/local/lib/python2.7/dist-packages/IPython',
'ipython_version': '0.12.dev',
'os_name': 'posix',
'platform': 'Linux-3.0.0-11-generic-i686-with-Ubuntu-11.10-oneiric',
'sys_executable': '/usr/bin/python',
'sys_platform': 'linux2',
'sys_version': '2.7.2+ (default, Aug 16 2011, 07:29:45) \n[GCC 4.6.1]'}
***************************************************************************
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
TypeError Python 2.7.2+: /usr/bin/python
Wed Sep 21 02:40:27 2011
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/usr/local/lib/python2.7/dist-packages/IPython/frontend/qt/console/console_widget.pyc
in
sizeHint(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget
object>)
351
352 # Note 1: Despite my best efforts to take the various
margins into
353 # account, the width is still coming out a bit too small, so
we include
354 # a fudge factor of one character here.
355 # Note 2: QFontMetrics.maxWidth is not used here or anywhere
else due
356 # to a Qt bug on certain Mac OS systems where it returns 0.
357 width = font_metrics.width(' ') * 81 + margin
358 width += style.pixelMetric(QtGui.QStyle.PM_ScrollBarExtent)
359 if self.paging == 'hsplit':
360 width = width * 2 + splitwidth
361
362 height = font_metrics.height() * 25 + margin
363 if self.paging == 'vsplit':
364 height = height * 2 + splitwidth
365
--> 366 return QtCore.QSize(width, height)
367
368
#---------------------------------------------------------------------------
369 # 'ConsoleWidget' public interface
370
#---------------------------------------------------------------------------
371
372 def can_copy(self):
373 """ Returns whether text can be copied to the clipboard.
374 """
375 return self._control.textCursor().hasSelection()
376
377 def can_cut(self):
378 """ Returns whether text can be cut to the clipboard.
379 """
380 cursor = self._control.textCursor()
381 return (cursor.hasSelection() and
TypeError: arguments did not match any overloaded call:
QSize(): too many arguments
QSize(int, int): argument 1 has unexpected type 'float'
QSize(QSize): argument 1 has unexpected type 'float'
***************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110921/b640ecc3/attachment.html
More information about the IPython-User
mailing list