#4016: i.modis.import Attribute Error ---------------------------+------------------------- Reporter: gabrieldeluca | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: Component: Addons | Version: unspecified Keywords: | CPU: Unspecified Platform: Linux | ---------------------------+------------------------- Running GRASS GIS 7.8.2, in Ubuntu 18.04 (bionic).
I have installed `pymodis` library via `pip3` succesfully. Also, I have installed `i.modis` add-on. I have created an executable bash file, named `import_modis.sh`, to download MODIS Land Surface Temperature products: {{{ #!/bin/bash i.modis.download settings=$HOME/settings \ product=lst_terra_monthly_5600 \ tile=h11v05 \ startday=2015-01-01 endday=2017-12-31 \ folder=/tmp }}} Where `settings` is the name of a text file in my home folder, with one line for my user and one line for my password at earthexplorer site. When I run: `grass78 /home/ga/grassdata/nc_basic_spm_grass7/modis_lst --exec sh import_modis.sh`, it returns: {{{ Starting GRASS GIS... Cleaning up temporary files... Executing <sh import_modis.sh> ... WxPython missing, no GUI enabled Traceback (most recent call last): File "/home/ga/.grass7/addons/scripts/i.modis.download", line 274, in <module> sys.exit(main()) File "/home/ga/.grass7/addons/scripts/i.modis.download", line 246, in main prod = product(produ).returned() File "/home/ga/.grass7/addons/etc/i.modis/rmodislib.py", line 302, in returned if self.products.keys().count(self.prod) == 1: AttributeError: 'dict_keys' object has no attribute 'count' Execution of <sh import_modis.sh> finished. Cleaning up default sqlite database ... Cleaning up temporary files... }}} I could not find information to help me solve if it is a problem in my implementation. Nor did I find a similar previous report here. Any detail or clarification that is necessary do not hesitate to ask me. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/4016> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev