enricofer / go2streetview

22 stars 22 forks source link

Application fails to find image at valid location #87

Closed danno-x closed 1 month ago

danno-x commented 1 month ago

I have been using the plugin successfully for years.
I am using the latest version of the plugin.

I was using the plugin yesterday fine. Today the plugin fails to return the Streetview as expected.

I have valid API key (I tried with a new key as well).

Viewing the debugger I am seeing this result:

image

I have looked at Streetview though Google Maps and it is showing the Streetview as expected.

Any thoughts?

nunottx commented 1 month ago

image

error in the code, i bet google changed the code again.

danno-x commented 1 month ago

I reviewed the debug and I am seeing the same error as described by @nunottx

dougw133 commented 1 month ago

Same for me

enricofer commented 1 month ago

As I said https://github.com/enricofer/go2streetview/issues/77#issuecomment-1816119963 The last available running google streetview javascript library is no longer running with the obsolete Qt Webkit bundled with QGIS. So go2streetview is now not running anymore. It's a long history, Qt Webkit is bugged and unmaintained and we all look forwards to migrate to Qt WebEngine library based on chromium. The support should be now available in Qgis 3.36 https://changelog.qgis.org/en/entry/2607 and I'm investigating for porting the plugin to the new webengine. I apologize, but I'm working in my spare time and much code have to be completely rewritten. So for now I can't anticipate when a new running plugin version will be available.

dougw133 commented 1 month ago

Thanks for the update and your continued efforts and work on this

danno-x commented 1 month ago

Thanks @enricofer. Your work on this project and the creation of this plugin is greatly appreciated.

FYI - this is my No.1 used plugin on QGIS and I hope you are able to successfully complete the port to Qt WebEngine.

aquaerica21 commented 1 month ago

image

error in the code, i bet google changed the code again.

Hi everyone,

I wanted to add that I'm getting an error message on a different function than @nunottx running QGIS 3.28 on MacOS Monterey 12.7.5.

I'm pretty new to QGIS and python, but like danno-x said, it's my most used plug-in for my university research so I hope it can get fixed soon.

Screen Shot 2024-05-28 at 17 04 36

enricofer commented 1 month ago

I submitted a first Qt WebEngine implementation available from QGIS 3.36 : https://github.com/enricofer/go2streetview/tree/v10 Please test is and report bugs

alexeygribko commented 1 month ago

Hello @enricofer. Thank you for your support and efforts!

I'm trying to test the latest version of your plugin. I installed QGIS 3.36.3 on MacOS. When I try to install a plugin from a zip archive I get the following exception.

Screenshot 2024-05-30 at 12 00 29

I am getting the same import error in Python console:

image

I'm guess you are using QGIS on Windows. I'm wondering if this is platform dependent or if you had to do additional configuration after installing QGIS 3.36 on Windows.

enricofer commented 1 month ago

Hi, you should install pyqt5 bindings for Qt WebEngine > 5.15.6 I don't know how to solve this in MacOs. In Ubuntu you should do this sudo apt install python3-pyqt5.qtwebengine=5.15.6 Or in windows you should check python3-pyqtwebengine item in qggeo4w setup Screenshot (242)

enricofer commented 1 month ago

The new plugin version is now published

enricofer commented 1 month ago

@alexeygribko please share solution

alexeygribko commented 1 month ago

Hello @enricofer. I have some progress. But not complete success yet.

Here are my steps in detail:

  1. Install QGIS 3.36. Run it for the first time to pass MacOS's check for an unidentified developer and quit.

  2. Using the terminal, install PyQtWebEngine in the Python environment used by QGIS.

    /Applications/QGIS.app/Contents/MacOS/bin/python3 -m pip install PyQtWebEngine==5.15.6
    Screenshot 2024-05-31 at 13 56 56
  3. Launch QGIS and install the plugin from the cloud repository as usual. Now it's not raising ImportError!

  4. Something goes wrong when I try to use the plugin 🥲 Screen Recording 2024-05-31 at 14 31 17

nunottx commented 1 month ago

Hi, you should install pyqt5 bindings for Qt WebEngine > 5.15.6 I don't know how to solve this in MacOs. In Ubuntu you should do this sudo apt install python3-pyqt5.qtwebengine=5.15.6 Or in windows you should check python3-pyqtwebengine item in qggeo4w setup Screenshot (242)

After i upgraded the plugin i received the same error as @alexeygribko , followed your instructions on windows 10 pro with QGIS 3.36.3 and worked like a charm.

OSGeo4W Setup, searching for Webengine and mark it, and install, fast and simple.

Thank you @enricofer for the fast update and all guys that helped achieve it.

image

Herbert-Khrill commented 1 month ago

Hi, you should install pyqt5 bindings for Qt WebEngine > 5.15.6 I don't know how to solve this in MacOs. In Ubuntu you should do this sudo apt install python3-pyqt5.qtwebengine=5.15.6 Or in windows you should check python3-pyqtwebengine item in qggeo4w setup Screenshot (242)

After i upgraded the plugin i received the same error as @alexeygribko , followed your instructions on windows 10 pro with QGIS 3.36.3 and worked like a charm.

OSGeo4W Setup, searching for Webengine and mark it, and install, fast and simple.

Thank you @enricofer for the fast update and all guys that helped achieve it.

Worked also for me by but I had to point to the right folder as installing this dependance python3-pyqt5.qtwebengine with the qggeo4w setup. A first attempt didn't work. Thank you

danno-x commented 4 weeks ago

@enricofer - Thanks mate. Took a bit to sort out qtwebengine but I got it working. It actually seems faster to render now but that might just be me?

Regardless - thanks for your fast response and for maintaining this awesome plugin. Legend!