nsidc / qgreenland-plugin

Other
4 stars 2 forks source link

Download and Manage Data steps throwing Python errors on Windows #55

Open hsimonoko opened 2 years ago

hsimonoko commented 2 years ago
  1. An editorial board member has reported errors while using the plugin on Windows. Both the Download Data and Manage Data steps of the plugin throw Python errors (txt files of stack traces provided). These files correspond with QGIS versions 3.22.2 and 3.16.11. System is Windows 10 Enterprise version 21H2.

The "StackStraceDownloadData" text file shows an error related to a missing attribute on the QGreenland​ object. Perhaps there's some specific setup we need to do in Windows that isn't currently being done? The second error looks like download mirror hasn't been chosen yet (or the choice didn't get saved?).

StackTraceManageData.txt StackTraceDownloadData.txt

  1. Education & Outreach team member Alyse Thurber also gets an error message (uses OSX and 3.22.4 of QGIS). Here are her errors:

unnamed

ghtmtt commented 2 years ago

it seems that the error is due to the missing self.downloading_url string derived from the URL chosen. Is this happening with all the Windows installations or just on a single computer?

The variable is defined here: https://github.com/nsidc/qgreenland-plugin/blob/main/qgreenland_dowload.py#L182 and it is retrieved with this function: https://github.com/nsidc/qgreenland-plugin/blob/main/qgreenland_server.py#L58

Some print debugging can help to understand where the error is