<br><br><div class="gmail_quote">2009/6/2 David Boddie <span dir="ltr"><<a href="mailto:dboddie@trolltech.com">dboddie@trolltech.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue Jun 2 08:20:38 BST 2009, Michael Thompson wrote:<br>
<br>
> 2009/5/30 David Boddie <david at <a href="http://boddie.org.uk" target="_blank">boddie.org.uk</a>><br>
<div class="im">><br>
> > On Thu, 28 May 2009 13:49:22 +0100, Michael Thompson wrote:<br>
> > > I'm trying to load a custom plugin in designer, on Ubuntu jaunty.<br>
> > ><br>
> > > I have tried running qtdemo from the python-qt4-doc package but the<br>
> > > plugins do not appear in designer.<br>
> ><br>
> > Do you mean that you tried running the plugins.py example from the<br>
> > examples/designer/plugins directory?<br>
><br>
> yes I'm running<br>
><br>
> /usr/share/doc/python-qt4-doc/examples/designer/plugins<br>
><br>
> python plugins.py<br>
<br>
</div>OK, I've just tried this, and it's one of those annoying cases where it works<br>
for me, but not for you. :-</blockquote><div> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="im"><br>
<snip><br>
><br>
> I'm running from the examples directory without installing the plugins<br>
> anywhere.<br>
<br>
</div>Yes, I tried that, too, and it just worked, so I'm wondering if something<br>
is misconfigured somehow. Just for comparison, I have installed these<br>
packages for PyQt4 and Qt Designer:<br>
<br>
python-qt4 4.4.4-2ubuntu6 Python bindings for Qt4<br>
python-qt4-common 4.4.4-2ubuntu6 Shared files for PyQt4<br>
python-qt4-doc 4.4.4-2ubuntu6 Documentation and examples for PyQt4<br>
qt4-designer 4.5.0-0ubuntu4.1 graphical designer for Qt 4 applications<br>
</blockquote><div><br>I ran an strace and grepped for plugins and python and noticed the following possibly missing files.<br><br>stat64("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4", 0xbf9f4f74) = -1 ENOENT (No such file or directory)<br>
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
stat64("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip", 0xbf9f2d24) = -1 ENOENT (No such file or directory)<br>open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sipmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br><br>I then installed the following additional packages and now it works, so I think there is a missing dependency amongst the list below.<br>
<br>sudo apt-get install python-qt-dev python-qt4-dev python-sip4 python-sip4-dev<br></div><br>Should I file a bug (where)?<br><br>Thanks (for re-assuring me it worked on your end).<br><br>Michael<br><br></div><br>