Replies: 1 comment 2 replies
-
I cannot replicate your error but I notice that the plugin is unstable. I also get errors some time but not the same as yours. Can you check the following:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear All,
When I try to download the Meteorological Data using the tool in QGIS3.
It showed task failed and the log was below:
It said AttributeError: 'NoneType' object has no attribute 'flush'
Do you have any idea about this issue? Thank you very much.
QGIS version: 3.20.2-Odense
QGIS code revision: 9f59a156
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.3.1
GEOS version: 3.9.1-CAPI-1.14.2
PROJ version: Rel. 8.1.0, July 1st, 2021
PDAL version: 2.3.0 (git-version: eac774)
Processing algorithm…
Algorithm 'Meteorological Data: Download data (ERA5)' starting…
Input parameters:
{ 'CRS' : QgsCoordinateReferenceSystem('EPSG:3007'), 'DATEINIEND' : '2011-01-02T00:00:00', 'DATEINISTART' : '2011-01-01T00:00:00', 'INPUT_POINT' : '147817.489404,6398707.504913 [EPSG:3007]', 'OUTPUT_DIR' : 'TEMPORARY_OUTPUT' }
SuPy version: 2021.7.22
INPUT PARAMETERS:
lat = 57.707513023619306
lon = 11.963389448367192
Start = 2011-01-01T00:00:00
End = 2011-01-02T00:00:00
C:/Users/SCH/AppData/Local/Temp/processing_ScwueZ/ef5cb8aa4b0641188edec00e1add94ab/OUTPUT_DIR
Traceback (most recent call last):
File "C:\Users/XXX/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\copernicusera5_algorithm.py", line 160, in processAlgorithm
sp.util.gen_forcing_era5(lat, lon, startDate, endDate, dir_save=outputDir)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\supy\util_era5.py", line 704, in gen_forcing_era5
list_fn_sfc, list_fn_ml = load_filelist_era5(
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\supy\util_era5.py", line 611, in load_filelist_era5
download_era5(
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\supy\util_era5.py", line 511, in download_era5
download_cds(path_dir_save / fn_sfc, dict_req)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\supy\util_era5.py", line 444, in download_cds
c.retrieve(**dict_req)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\cdsapi\api.py", line 350, in retrieve
result.download(target)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\cdsapi\api.py", line 173, in download
return self._download(self.location, self.content_length, target)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\cdsapi\api.py", line 123, in _download
with tqdm(
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\tqdm\std.py", line 1112, in init
self.sp = self.status_printer(self.fp)
File "C:\Users\XXX\AppData\Roaming\Python\Python39\site-packages\tqdm\std.py", line 340, in status_printer
sys.stderr.flush()
AttributeError: 'NoneType' object has no attribute 'flush'
Execution failed after 0.25 seconds
Loading resulting layers
Algorithm 'Meteorological Data: Download data (ERA5)' finished
Beta Was this translation helpful? Give feedback.
All reactions