TauDEM pit remove problem

692 views
Skip to first unread message

Awel Seid

unread,
Sep 17, 2022, 9:07:16 PM9/17/22
to QSWAT
Hello, dear Chris and the rest.

I have been suffering from this TauDEM pit remove problem for so long. I have studied and applied the solutions suggested in this group and the YouTube, but none of them helped. It is also worrisome  for me to learn that this issue has been reported in this group at least since 2015. No definite software update solution is given so far. 
I uninstalled and reinstalled QSWAT and SWATEditor several times with no luck. I also tried  TauDEM5x86Bin.zip (thank you Benjamin) and deal with msmpi_dll, still with no luck. I even downloaded and updated the MS-MPI. I am using 64 bit machine with Windows 11.
At this point I observed that after renaming the _dll to .dll, and uploading my .tif file, the .dll  reveres back to _dll whenver I click the 'Create streams' button and "Problem with TauDEM PitRemove: please examine output above" message appears. This has been annoying for so long.
Is this related with incompatibility between QSWAT 3.9 version 1.5.2 which is written with python 3.7 and QGIS 3.22.10, which might be written with python 3.9? Or else?
Please help. Thanks.

Chris George

unread,
Sep 18, 2022, 8:35:52 AM9/18/22
to Awel Seid, QSWAT
Hello,

I am sorry this has been such a pain. I think I now have a solution,
and I would like you to install
https://bitbucket.org/ChrisWGeorge/qswat3/downloads/QSWAT3_9install1.5.10.exe.

Please let me know if this works.

Meanwhile I should explain that the code intentionally renames msmpi.dll
back to msmpi_dll if it discovers an existing msmpi.dll from an msmpi
installation.

The problem is caused by different versions of a library GDAL:
Geospatial Data Abstraction Library. The TauDEM programs including
PitRemove supplied with QSWAT are compiled using this library, and so is
QGIS. Problems ensue when the versions of GDAL used are different.

Chris

On 9/18/2022 2:07 AM, Awel Seid wrote:
> Hello, dear Chris and the rest.
>
> I have been suffering from this TauDEM pit remove problem for so long. I
> have studied and applied the solutions suggested in this group and the
> YouTube, but none of them helped. It is also worrisome  for me to learn
> that this issue has been reported in this group at least since 2015. No
> definite software update solution is given so far.
> I uninstalled and reinstalled QSWAT and SWATEditor several times with no
> luck. I also tried  TauDEM5x86Bin.zip (thank you Benjamin) and deal with
> msmpi_dll, still with no luck. I even downloaded and updated the MS-MPI.
> I am using 64 bit machine with Windows 11.
> At this point I observed that *after renaming the _dll to .dll, and
> uploading my .tif file, the .dll  reveres back to _dll *whenver I click
> the 'Create streams' button and "Problem with TauDEM PitRemove: please
> examine output above" message appears. This has been annoying for so long.
> Is this related with incompatibility between QSWAT 3.9 version 1.5.2
> which is written with python 3.7 and QGIS 3.22.10, which might be
> written with python 3.9? Or else?
> Please help. Thanks.
>
> --
> 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/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com <https://groups.google.com/d/msgid/qswat/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Awel Seid

unread,
Sep 18, 2022, 7:04:03 PM9/18/22
to QSWAT
Hello dear Chris, my 'savior' :-)

The  QSWAT3_9install1.5.10.exe you provided worked perfectly for me. This is awesome. Good job. After being stuck for weeks and tried a number of 'solutions' to resolve the PitRemove issue,  finally my day has come to kick frustrations. 
Cheers and many thanks.

Awel

miyuru gunathilake

unread,
Oct 16, 2022, 11:13:13 AM10/16/22
to QSWAT

Hello Awel,

I am also facing the same issue. I installed 'QSWAT3_9install1.5.10.exe'. But didnt give me a solution. 
Hope you can give me some advise 
Miyuru

Daniel Karran

unread,
Oct 20, 2022, 7:35:38 AM10/20/22
to QSWAT
Hi everyone,

I seem to be having similar problems. I have been using QSWAT as a teaching tool at my college for the past two years and was using the older QSWAT 3 for QGIS 3.16. Excited to update my QGIS version for this tool, I Installed QGIS 3.22 and QSWAT3_9. Right away problems ensue. When I click on "delineate watershed", I get the following error message: 

"Cannot find executable mpiexec in the system or msmpi.dll in C:\SWAT\SWATEditor\TauDEM5Bin: TauDEM functions will not run. Install MPI or reinstall QSWAT"

First off, QSWAT3_9 installer places the Folder TauDEM539Bin at the path C:\SWAT\SWATEditor, not TauDEM5Bin, so QSWAT is looking for a folder that hasn't been installed. Second, msmpi.dll is copied into TauDEM539Bin as msmpi_dll, which has already been addressed in this message thread. My fix so far has been to change the folder named TauDEM539Bin to TauDEM5Bin and the msmpi_dll file to msmpi.dll . Furthermore, I installed the link that Chris has posted in this thread and now everything seems to be working.

My question is, will these bugs be fixed so I can use QSWAT3_9 for my classes or should I just go back to using the old version?

Sincerely, 

Daniel Karran 

Chris George

unread,
Oct 20, 2022, 2:36:52 PM10/20/22
to Daniel Karran, QSWAT
Hi Daniel,

I am sorry the problems with TauDEM and MPI have been causing you problems.

The error message you encountered was wrong: it should have referred to
TauDEM539Bin, which is the directory currently holding the TauDEM tools.

There is a new version at
https://bitbucket.org/ChrisWGeorge/qswat3/downloads/QSWAT3_9install1.5.11.exe
which I think fixes the problems. Please try it for yourself. Let me
know if any problems recur, but I think you will find it fine for your
classes.

Chris
> https://bitbucket.org/ChrisWGeorge/qswat3/downloads/QSWAT3_9install1.5.10.exe <https://bitbucket.org/ChrisWGeorge/qswat3/downloads/QSWAT3_9install1.5.10.exe>.
> https://groups.google.com/d/msgid/qswat/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com <https://groups.google.com/d/msgid/qswat/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com> <https://groups.google.com/d/msgid/qswat/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/qswat/0c8f0e10-cfbf-43cf-b889-f649fada0fffn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> 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/3c5b9736-eeb7-49a1-bfee-d2acbe9f7e02n%40googlegroups.com <https://groups.google.com/d/msgid/qswat/3c5b9736-eeb7-49a1-bfee-d2acbe9f7e02n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Michael Perkins

unread,
Oct 21, 2022, 8:32:19 AM10/21/22
to QSWAT
Is there a fix for the 32-bit versions? I have QGIS 3.1616 installed with QSWAT3 using Office 32-bit products on a 64-bit machine as recommended by the website. I have tried all the remedies as well including the  msmpi_dll to  msmpi.dll fix. I have had no luck with anything.

Mike

Floor Hermans

unread,
Nov 3, 2022, 12:13:00 PM11/3/22
to QSWAT
Hi everyone!
I am stuck for a while now with similar problems. I use the same versions as Mike (QGIS 3.16.16, QSWAT3, Office 32-bit, 64-bit machine). Does anyone have any suggestions how to fix this?

Best,
Floor
Op vrijdag 21 oktober 2022 om 14:32:19 UTC+2 schreef mtp...@gmail.com:

Floor Hermans

unread,
Nov 3, 2022, 12:13:00 PM11/3/22
to QSWAT
Hi,

I am using the same versions as Mike and stuck for a long time now. I would love to know if there is a solution to fix this problem for the 32-bit versions.

Best,
Floor

Op vrijdag 21 oktober 2022 om 14:32:19 UTC+2 schreef mtp...@gmail.com:
Is there a fix for the 32-bit versions? I have QGIS 3.1616 installed with QSWAT3 using Office 32-bit products on a 64-bit machine as recommended by the website. I have tried all the remedies as well including the  msmpi_dll to  msmpi.dll fix. I have had no luck with anything.

chris.g...@gmail.com

unread,
Nov 3, 2022, 1:47:07 PM11/3/22
to QSWAT
I sent Mike a new TauDEM539Bin, https://drive.google.com/file/d/1vcKP0S-1jQw1pOag4JemS_LjoafCxL5J/view?usp=share_link, to replace the contents of C:\SWAT\SWATEditor\TauDEM539Bin, but he said that did not work.  He solved the problem by renaming (or removing) C:\SWAT\SWATEditor\TauDEM539Bin  so that QSWAT used the older C:\SWAT\SWATEditor\TauDEM5Bin.

Get back to me if neither of these work for you.

Chris
Reply all
Reply to author
Forward
0 new messages