Problem with TauDEM PitRemove

228 views
Skip to first unread message

José Manuel Muñoz Guijarro

unread,
Jul 19, 2020, 10:52:06 AM7/19/20
to qs...@googlegroups.com

Dear all,

I updated QSWAT recently from QSWAT 1.9 for QGIS 2.6.1 to QSWAT3 for QGIS 3.10, and now, when I try to create the streams or the watershed from a DEM file I get this error:


------------------- TauDEM command: -------------------


C:\Program Files\Microsoft MPI\Bin\mpiexec.exe -n 1 C:\SWAT\SWATEditor\TauDEM5Bin\PitRemove -z D:\Valdenoches - Hidrología\swat\arroyo\Source\arroyo.tif -fel D:\Valdenoches - Hidrología\swat\arroyo\Source\arroyofel.tif



" ERROR: unable to allocate launching block


*** Problem with TauDEM PitRemove: please examine output above. *** "


I tried to uninstall and re-install, I searched in the forum for similar problems but I have not been able to solve it with the solutions I found and I could apply (I also tried to download TauDEM executable in https://drive.google.com/file/d/0B852HLR87YyVdmRXX3JDNi1yX28/view?usp=drive_web but the file doesn't exist).

I also tried to go back and re-install QGIS 2.6.1 and QSWAT 1.9 (in March, last time I used QSWAT, it worked fine), but now I get this error message:

" An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/Users/jmmun/.qgis2/python/plugins\QSWAT\delineation.py", line 370, in btnSetDEM
    self.setDefaultNumCells(demLayer)
  File "C:/Users/jmmun/.qgis2/python/plugins\QSWAT\delineation.py", line 861, in setDefaultNumCells
    if not self.setDimensions(demLayer):
  File "C:/Users/jmmun/.qgis2/python/plugins\QSWAT\delineation.py", line 896, in setDimensions
    command = 'gdalsrsinfo -p -o wkt "{0}" > "{1}"'.format(demPrj, demPrjTxt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 25: ordinal not in range(128) "

For your knowledge in case it is important these are my OS and current software characteristics:

OS

64 bit OS (processor x64). I  updated recently Windows 10 to Windows 10 version 2004.

QGIS

QGIS version

3.10.7-A Coruña
(32-bit)

QGIS code revision

7b4ca4c8d0

Compiled against Qt

5.11.2

Running against Qt

5.11.2

Compiled against GDAL/OGR

3.0.4

Running against GDAL/OGR

3.0.4

Compiled against GEOS

3.8.1-CAPI-1.13.3

Running against GEOS

3.8.1-CAPI-1.13.3

Compiled against SQLite

3.29.0

Running against SQLite

3.29.0

PostgreSQL Client Version

11.5

SpatiaLite Version

4.3.0

QWT Version

6.1.3

QScintilla2 Version

2.10.8

Compiled against PROJ

6.3.2

Running against PROJ

Rel. 6.3.2, May 1st, 2020

OS Version

Windows 10 (10.0)

Active python plugins

AnotherDXF2Shape;
attributePainter;
autoSaver;
batch_hillshader-master;
Beeline;
BivariateLegend;
BufferByPercentage;
CalculateGeometry;
cartogram3;
CoordGuesser;
d3datavis;
DataPlotly;
dzetsaka;
EasyCustomLabeling;
firstaid;
FreehandRasterGeoreferencer;
GeoCoding;
geosearch_dk;
go2streetview;
GpxSegmentImporter;
ImportEpanetInpFiles;
instantprint;
LAStools;
profiletool;
Spanish_Inspire_Catastral_Downloader;
tuflow;
db_manager;
MetaSearch;
processing;
QSWAT3

QSWAT

QSWAT version: 1.0


Minimum QGIS version: 3.0


Python version: 3.7


Current restrictions:

- runs only in Windows

- 32-bit QGIS must be used

Thank you very much for your help in advance.

Yours sincerely,
José Manuel Muñoz Guijarro

Chris George

unread,
Jul 19, 2020, 11:14:09 AM7/19/20
to José Manuel Muñoz Guijarro, qs...@googlegroups.com
Dear José,

The second problem is easily solved, I think. I believe it is caused by
the non-ASCII character in the path: looks like the í in Hidrología.

The first problem I have not seen before. It is a problem with MPI
rather than QSWAT, and suggestions on the web include not having
non-ASCII characters in the path to where it is being run. So this may
perhaps be fixed in the same way.

If this does not solve the first problem, try running without MPI. You
seem to have set the number of processes to 1, so you would not really
be using it in any case. Set the number of processes to 0 and MPI will
not be run.

Chris
> _
> OS_
>
> 64 bit OS (processor x64). I updated recently Windows 10 to Windows 10
> version 2004.
>
> _QGIS_
>
> QGIS version
>
>
>
> 3.10.7-A Coruña
> (32-bit)
>
>
>
> QGIS code revision
>
>
>
> 7b4ca4c8d0 <https://github.com/qgis/QGIS/commit/7b4ca4c8d0>
> _QSWAT_
>
> QSWAT version: 1.0
>
>
> Minimum QGIS version: 3.0
>
>
> Python version: 3.7
>
>
> Current restrictions:
>
> - runs only in Windows
>
> - 32-bit QGIS must be used
>
> Thank you very much for your help in advance.
>
> Yours sincerely,
>
> José Manuel Muñoz Guijarro
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswat+un...@googlegroups.com
> <mailto:qswat+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qswat/CADV4nXbF-4BEv24hcUSDasmrn4Qa4G5n20PxaWmVnM6KVRnAvA%40mail.gmail.com
> <https://groups.google.com/d/msgid/qswat/CADV4nXbF-4BEv24hcUSDasmrn4Qa4G5n20PxaWmVnM6KVRnAvA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

José Manuel Muñoz Guijarro

unread,
Jul 20, 2020, 5:32:13 AM7/20/20
to Chris George, qs...@googlegroups.com
Dear Chris,

Thank you very much.

Yes, the problem was the "í" in "Hidrología", I changed to "Hidrologia" and the errors disappeared in both cases, for QSWAT3 and for QSWAT 1.9, independently of to have set the number of processes to 1 or 0 (I tried both cases).

Thank you, thank you very much again. And also for the speed of the answer.

Well, nice to meet you and have a nice day.

Yours sincerely,

José Manuel Muñoz Guijarro
Reply all
Reply to author
Forward
0 new messages