[SOLVED] Re: [PyQt] Can't load custom python plugins in qt4 designer
Michael Thompson
michaelnt at gmail.com
Tue Jun 2 14:16:31 BST 2009
2009/6/2 David Boddie <dboddie at trolltech.com>
> On Tue Jun 2 08:20:38 BST 2009, Michael Thompson wrote:
>
> > 2009/5/30 David Boddie <david at boddie.org.uk>
> >
> > > On Thu, 28 May 2009 13:49:22 +0100, Michael Thompson wrote:
> > > > I'm trying to load a custom plugin in designer, on Ubuntu jaunty.
> > > >
> > > > I have tried running qtdemo from the python-qt4-doc package but the
> > > > plugins do not appear in designer.
> > >
> > > Do you mean that you tried running the plugins.py example from the
> > > examples/designer/plugins directory?
> >
> > yes I'm running
> >
> > /usr/share/doc/python-qt4-doc/examples/designer/plugins
> >
> > python plugins.py
>
> OK, I've just tried this, and it's one of those annoying cases where it
> works
> for me, but not for you. :-
>
>
> <snip>
> >
> > I'm running from the examples directory without installing the plugins
> > anywhere.
>
> Yes, I tried that, too, and it just worked, so I'm wondering if something
> is misconfigured somehow. Just for comparison, I have installed these
> packages for PyQt4 and Qt Designer:
>
> python-qt4 4.4.4-2ubuntu6 Python bindings for Qt4
> python-qt4-common 4.4.4-2ubuntu6 Shared files for PyQt4
> python-qt4-doc 4.4.4-2ubuntu6 Documentation and examples for PyQt4
> qt4-designer 4.5.0-0ubuntu4.1 graphical designer for Qt 4
> applications
>
I ran an strace and grepped for plugins and python and noticed the following
possibly missing files.
stat64("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4",
0xbf9f4f74) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/PyQt4.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip",
0xbf9f2d24) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sipmodule.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/doc/python-qt4-doc/examples/designer/plugins/sip.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
I then installed the following additional packages and now it works, so I
think there is a missing dependency amongst the list below.
sudo apt-get install python-qt-dev python-qt4-dev python-sip4
python-sip4-dev
Should I file a bug (where)?
Thanks (for re-assuring me it worked on your end).
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090602/4566b056/attachment.html
More information about the PyQt
mailing list