Downloading Testdata fails

Issue #196 closed
Fabian Thiel created an issue

New session, clean Box reinstallation. Don't know why there are permission issues.

2018-10-23T10:12:13     WARNING    Traceback (most recent call last):
              File "C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\enmapbox\dependencycheck.py", line 194, in onCompleted
              os.remove(pathLocalZip)
             PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:/Users/geo_fath/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins\\enmapboxplugin\\enmapboxtestdata.zip'

Comments (9)

  1. Andreas Janz
    • bitbucket seams to have some problems. clicking on the tag v0.4 to download the data stops on my machine at 4 MB of 30MB

    • downloading the repo as zip works

    @jakimowb better upload the zip to HU-Box

  2. Benjamin Jakimow

    @janzandr as you are responsible for enmap-box-testdata, please

    1. ensure a working download location (e.g. enmap-box-testdata repo download section?)
    2. change URL_TESTDATA in enmapbox/init.py accordingly:
    URL_TESTDATA = r'https://bitbucket.org/hu-geomatics/enmap-box-testdata/get/master.zip'
    
  3. Benjamin Jakimow

    https://bitbucket.org/hu-geomatics/enmap-box-testdata/get/master.zip works fine on my system and from webbrowser

    The dependencycheck.py missingTestdata()->bool failed because testdata init.py does not include "hymap" etc. I reduced the dependency check to:

    def missingTestdata()->bool:
        """
        Returns (True, message:str) if testdata can not be loaded,
         (False, None) else
        :return: (bool, str)
        """
        try:
            import enmapboxtestdata
            assert os.path.isfile(enmapboxtestdata.enmap)
            return False
        except Exception as ex:
            print(ex, file=sys.stderr)
            return True
    
  4. Log in to comment