[PyQt] plugin "pyqt5qmlplugin" not found

Cody Scott cody at perspexis.com
Thu Feb 2 14:50:46 GMT 2017


If I copy the libpyqt5qmlplugin.so into the Charts directory then I get an
error about

ImportError: PyCapsule_Import could not import module "sip"

Traceback (most recent call last):
  File "/home/siecje/Downloads/PyQt5_gpl-5.7.2.dev1701201828/
examples/quick/tutorials/extending/chapter6-plugins/Charts/chartsplugin.py",
line 41, in <module>
    from PyQt5.QtQml import qmlRegisterType, QQmlExtensionPlugin
ImportError: /usr/lib/python2.7/dist-packages/PyQt5/QtQml.so: undefined
symbol: PyExc_RuntimeError

file:///home/siecje/Downloads/PyQt5_gpl-5.7.2.dev1701201828/
examples/quick/tutorials/extending/chapter6-plugins/app.qml:42 module
"Charts" is not installed


On Mon, Jan 30, 2017 at 9:22 AM, Cody Scott <cody at perspexis.com> wrote:

> I ran configure providing the qmake path for Qt and then make and make
> install.
>
> On Sat, Jan 28, 2017 at 10:03 AM, Phil Thompson <
> phil at riverbankcomputing.com> wrote:
>
>> On 27 Jan 2017, at 7:26 pm, Cody Scott <cody at perspexis.com> wrote:
>> >
>> > I'm trying to use a Python type with qmlscene.
>> >
>> > http://pyqt.sourceforge.net/Docs/PyQt5/qml.html#writing-pyth
>> on-plugins-for-qmlscene
>> >
>> > I'm trying to run the example from `examples/quick/tutorials/exte
>> nding/chapter6-plugins/`
>> >
>> >
>> > $ QML2_IMPORT_PATH=. ~/Qt/5.7/gcc_64/bin/qmlscene app.qml
>> > file:///path/to/app.qml:42 module "Charts" plugin "pyqt5qmlplugin" not
>> found
>> >
>> > It appears I do have the pyqt5qmlplugin.
>> >
>> > $ ls ~/Qt/5.7/gcc_64/plugins/PyQt5/
>> > libpyqt5qmlplugin.so*
>>
>> How did you install PyQt? It's not included in the wheels.
>>
>> Phil
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170202/906cacd3/attachment-0001.html>


More information about the PyQt mailing list