It seems that ninja-ide don't setapi anywhere on the code. I will set it somewhere and see how it works..<br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 5:39 AM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, Oct 16, 2011 at 15:45, Phyo Arkar <<a href="mailto:phyo.arkarlwin@gmail.com">phyo.arkarlwin@gmail.com</a>> wrote:<br>
> I tried to add but i having this error<br>
><br>
><br>
> Traceback (most recent call last):<br>
> File "/usr/bin/ninja", line 37, in <module><br>
> ninja_ide.setup_and_run()<br>
> File "/home/v3ss/ninja-ide/ninja_ide/__init__.py", line 36, in<br>
> setup_and_run<br>
> from ninja_ide import core, resources<br>
> File "/home/v3ss/ninja-ide/ninja_ide/core/__init__.py", line 13, in<br>
> <module><br>
> from ninja_ide.core.core import run_ninja<br>
> File "/home/v3ss/ninja-ide/ninja_ide/core/core.py", line 5, in <module><br>
> from ninja_ide.gui import ide<br>
> File "/home/v3ss/ninja-ide/ninja_ide/gui/ide.py", line 27, in <module><br>
> from ninja_ide.core import plugin_services<br>
> File "/home/v3ss/ninja-ide/ninja_ide/core/plugin_services.py", line 12, in<br>
> <module><br>
> from ninja_ide.gui import actions<br>
> File "/home/v3ss/ninja-ide/ninja_ide/gui/actions.py", line 18, in <module><br>
> from ninja_ide.tools import locator<br>
> File "/home/v3ss/ninja-ide/ninja_ide/tools/locator.py", line 30, in<br>
> <module><br>
> from ninja_ide.gui.misc import misc_container<br>
> File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/misc_container.py", line 21,<br>
> in <module><br>
> from ninja_ide.gui.misc import ipython_widget<br>
> File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/ipython_widget.py", line 3,<br>
> in <module><br>
> from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp<br>
> File<br>
> "/usr/lib64/python2.7/site-packages/IPython/frontend/qt/console/qtconsoleapp.py",<br>
> line 25, in <module><br>
> from IPython.external.qt import QtGui<br>
> File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 31,<br>
> in <module><br>
> prepare_pyqt4()<br>
> File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 20,<br>
> in prepare_pyqt4<br>
> sip.setapi('QString', 2)<br>
> ValueError: API 'QString' has already been set to version 1<br>
> It seems that Ninja-IDE set QString to 1.<br>
> Wow ... thats gonna be bad.. Wont be able to implement it i think..<br>
> Can't API be set for each Widget .. it seems a bad design at PyQT part.<br>
<br>
</div></div>Nope, I think API can be set exactly once per runtime environment.<br>
Apps that use v2 are not compatible with those that use v1. Some<br>
tools are written in such a way as to work with both, which is kinder<br>
to fellow developers, but IPython only supports v2 at this point.<br>
<br>
-MinRK<br>
<div class="im"><br>
> On Sun, Oct 16, 2011 at 5:33 PM, Thomas Kluyver <<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>> wrote:<br>
>><br>
>> On 16 October 2011 10:18, Phyo Arkar <<a href="mailto:phyo.arkarlwin@gmail.com">phyo.arkarlwin@gmail.com</a>> wrote:<br>
>>><br>
>>> Luckily i am loving ipython qtconsole and i wanna implement it inside a<br>
>>> tab of ninja-ide , is that easy?<br>
>><br>
>> It should be! The Qt console is designed as a Qt widget that you can<br>
>> embed. I know the Spyder IDE is already working on this for an upcoming<br>
>> version:<br>
>><br>
>><br>
>> <a href="http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/ipython.py" target="_blank">http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/ipython.py</a><br>
>><br>
>> <a href="http://code.google.com/p/spyderlib/source/browse/spyderlib/plugins/ipython.py" target="_blank">http://code.google.com/p/spyderlib/source/browse/spyderlib/plugins/ipython.py</a><br>
>><br>
>> Other people on this list should be able to give you more information,<br>
>> when their timezones are awake.<br>
>><br>
>> Thomas<br>
><br>
><br>
</div>> _______________________________________________<br>
> IPython-User mailing list<br>
> <a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
><br>
><br>
</blockquote></div><br>