movingpandas / qgis-processing-trajectory

Trajectory tools for the QGIS Processing toolbox
GNU General Public License v3.0
45 stars 16 forks source link

Show user-friendly error & installation instructions #24

Closed marklit closed 1 month ago

marklit commented 3 months ago

Without MovingPandas installed there is an ugly error message that comes up when you try and install this QGIS plugin. I found the following installs on machines without needing Conda or any other requirements beyond QGIS. Perhaps this could be listed in the description that comes up when you see the plugin's description in the Manage and Install Plugins dialog?

  1. Plugins Menu -> Python Console
import pip
pip.main(['install', 'movingpandas'])
  1. Restart QGIS

  2. Plugins Menu -> Manage and Install Plugins

  3. Select the "All" tab to the left and search for "Trajectools"

  4. Click Install in the bottom right.

anitagraser commented 3 months ago

In the past, pip install often failed on windows and sometimes on Ubuntu. I prefer to avoid potentially ruining people's working QGIS python environment. However, I agree that there should be a user friendly error message.

anitagraser commented 1 month ago

Just tested on OSGeo4W and getting ModuleNotFoundError: No module named 'pip'