-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qtwebkit used, release overdue #98
Comments
Apparently it is a bug to be using qtwebkit. https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html |
@gdt what QGIS version are you running there ? |
|
@gdt I tried to check where we are using qtwebkit and did a PR, could you check if that resolves the issue for you? If not could you please install the https://plugins.qgis.org/plugins/firstaid/ and share with me the stack trace you get when you try to start the plugin |
I uninstalled the released version of the plugin. I cloned the repo and checked out the webkit branch. i zipped it up, and did install plugin from zip. It still fails, but with firstaid I have more insight. In utilities.py, get_ui_class, the try/except around the import
ends up setting the variables according to the else branch. That seems wrong, but I edited the code to not import and just use the webengine tokens, so I/we can debug why the import fails separately. After forcing to QWebEngineView, I still got an import error:
and looking at local variables I see that nothing was substituted into
|
In
|
@gdt Can you please make sure that the QWebEngineView is installed. Try the following:
Then you can run the import
|
I did not explicitly clear pycache (in the parcel_plugin dir) but the mod times all track the sources. I can run that import from system python with no errors. I am using qgis packaged in pkgsrc, where all the python modules are in the system load path.
I see lots of (c++ mangled) symbols that make sense. But, progress in diagnosing: I opened the python console and pasted it, and got:
|
qgis/QGIS#49512 seems relevant. |
I also had the same issue before I installed it with pip. I haven't tested the 3D stuff to see if it still works after my pip install.
The other solution would be extensive to refactor the UI selector to use something else if QtWebEngineView and Qt 3d cannot be used at the same time. |
I'm not sure if there is anything else that I should be testing for you, guessing not at this point. It looks like this will be difficult to fix, and I get it things get fixed when someone has enough time and spends it -- so I'm guessing this issue will just remain open until that happens. I'm subscribed to the ticket of course, so feel free to ask me to test if that's helpful. |
I'm running qgis on NetBSD via pkgsrc, and qtwebkit has been removed, in favor of a chrome-based webview. This plugin is now failing to load. I see the last release was a long time ago.
Could someone comment on
Thanks,
Greg
The text was updated successfully, but these errors were encountered: