[PyQt] plugin "pyqt5qmlplugin" not found

Cody Scott cody at perspexis.com
Thu Feb 2 15:46:34 GMT 2017


I get the same error after I installed for Python3. With the python3 path

ImportError: PyCapsule_Import could not import module "sip"

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

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



On Thu, Feb 2, 2017 at 10:01 AM, Cody Scott <cody at perspexis.com> wrote:

> I just noticed that that is using a python2.7 path. I'm going to install
> PyQt5 again but for Python3 for sure.
>
>
> On Thu, Feb 2, 2017 at 9:50 AM, Cody Scott <cody at perspexis.com> wrote:
>
>> 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/exampl
>> es/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/5776f5bd/attachment.html>


More information about the PyQt mailing list