[IPython-User] Wirting Ipython Plugin for Ninja-IDE

Phyo Arkar phyo.arkarlwin@gmail....
Sun Oct 16 17:45:27 CDT 2011

I tried to add but i having this error

Traceback (most recent call last):
  File "/usr/bin/ninja", line 37, in <module>
  File "/home/v3ss/ninja-ide/ninja_ide/__init__.py", line 36, in
    from ninja_ide import core, resources
  File "/home/v3ss/ninja-ide/ninja_ide/core/__init__.py", line 13, in
    from ninja_ide.core.core import run_ninja
  File "/home/v3ss/ninja-ide/ninja_ide/core/core.py", line 5, in <module>
    from ninja_ide.gui import ide
  File "/home/v3ss/ninja-ide/ninja_ide/gui/ide.py", line 27, in <module>
    from ninja_ide.core import plugin_services
  File "/home/v3ss/ninja-ide/ninja_ide/core/plugin_services.py", line 12, in
    from ninja_ide.gui import actions
  File "/home/v3ss/ninja-ide/ninja_ide/gui/actions.py", line 18, in <module>
    from ninja_ide.tools import locator
  File "/home/v3ss/ninja-ide/ninja_ide/tools/locator.py", line 30, in
    from ninja_ide.gui.misc import misc_container
  File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/misc_container.py", line 21,
in <module>
    from ninja_ide.gui.misc import ipython_widget
  File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/ipython_widget.py", line 3,
in <module>
    from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp
line 25, in <module>
    from IPython.external.qt import QtGui
  File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 31,
in <module>
  File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 20,
in prepare_pyqt4
    sip.setapi('QString', 2)
ValueError: API 'QString' has already been set to version 1

It seems that Ninja-IDE set QString to 1.

Wow ... thats gonna be bad.. Wont be able to implement it i think..

Can't API be set for each Widget .. it seems a bad design at PyQT part.

On Sun, Oct 16, 2011 at 5:33 PM, Thomas Kluyver <takowl@gmail.com> wrote:

> On 16 October 2011 10:18, Phyo Arkar <phyo.arkarlwin@gmail.com> wrote:
>> Luckily i am loving ipython  qtconsole and i wanna implement it inside a
>> tab of ninja-ide , is that easy?
> It should be! The Qt console is designed as a Qt widget that you can embed.
> I know the Spyder IDE is already working on this for an upcoming version:
> http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/ipython.py
> http://code.google.com/p/spyderlib/source/browse/spyderlib/plugins/ipython.py
> Other people on this list should be able to give you more information, when
> their timezones are awake.
> Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20111017/76aa8f7c/attachment.html 

More information about the IPython-User mailing list