sourcepole / qgis-wps-client

GNU General Public License v2.0
13 stars 12 forks source link

QtXmlPatterns #10

Open Gustry opened 3 years ago

Gustry commented 3 years ago

I just tried to install it this morning, but I got an "Import Error" as soon as I tried to enable it:

ModuleNotFoundError
No module named 'PyQt5.QtXmlPatterns'

I saw in the code

from PyQt5.QtXmlPatterns import QXmlQuery  # TODO move this to qgis.PyQt.QtXmlPatterns when possible QtXmlPatterns

I'm not sure what I should do, but according to the comments, it seems a known issue? So maybe add a try except ImportError with a nicer error message?

I'm going to check how to install it.

Gustry commented 3 years ago

On Ubuntu : sudo apt install python3-pyqt5.qtxmlpatterns solved the problem.

A better error message and advice in the plugin would be welcome.