dtarb / TauDEM

Terrain Analysis Using Digital Elevation Models (TauDEM) software for hydrologic terrain analysis and channel network extraction.
http://hydrology.usu.edu/taudem
Other
224 stars 115 forks source link

Issue running TauDEM 5.3.5 on ArcGIS 10.3.1 #91

Open jlg046 opened 7 years ago

jlg046 commented 7 years ago

We are trying to use TauDEM5.3.5 to run pit removal and other tools for a hydro lab. We ran this successfully last year with the previous version of TauDEM and ArcGIS 10.3. This year, our lab machines are are running Windows 10 64-bit education and we have upgraded to ArcGIS 10.3.1. Our Python installer is Anaconda 4. When we try to run the pit remove tool (either from ArcToolbox or from the stand alone TauDEM executable we get the attached error message.

The toolbox works on my personal laptop which does not have Anaconda or any stand-alone Python - only what installs along with the TauDEM 5.3.5 Complete Windows installer.

We are wondering if the TauDEM package might be looking for a specific pathway (see attached screenshot). Has anyone experienced this and can anyone advise?

Thanks, Janine Glathar jlg046@bucknell.edu

taudemerr

pkdash commented 7 years ago

Janine - Can you let me know if the lab machine has the following directory paths where TauDEM5.3.5 has been installed? These paths are created by the TauDEM installer.

C:\Program Files\GDAL C:\GDAL

Also let me know if the above paths are included in Windows path.

jlg046 commented 7 years ago

Hi Pabitra,

Yes, we have both of those directories at the pathways you list. Also, the PATH variable has those directory pathways.

Thanks, Janine

On Mon, Sep 19, 2016 at 12:23 PM, Pabitra Dash notifications@github.com wrote:

Janine - Can you let me know if the lab machine has the following directory paths where TauDEM5.3.5 has been installed? These paths are created by the TauDEM installer.

C:\Program Files\GDAL C:\GDAL

Also let me know if the above paths are included in Windows path.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dtarb/TauDEM/issues/91#issuecomment-248042077, or mute the thread https://github.com/notifications/unsubscribe-auth/AFSWZGgWcuASIrddirbwodHAp9atbLLdks5qrrbygaJpZM4KAoeq .

Janine Glathar

Digital Pedagogy & Scholarship Specialist for GIS

Library & Information Technology, Bucknell University

Lewisburg, PA 17837 (570) 577-1990 jlg046@bucknell.edu

Lat 40.954052° Long -76.882604°

pkdash commented 7 years ago

Janine - What version of Python is on the lab machine?

pkdash commented 7 years ago

Janine - I was able to reproduce this error with Anaconda installation. Howerver, I am yet to find out the cause of this error.

pkdash commented 7 years ago

Janine - I was able to fix this issue on my machine running Anaconda. This is a workaround solution that you can try. You should find this file msvcr100.dll in C:\Windows\System32. Copy that file over to C:\Anaconda2. Then run any TauDEM tools to see if the issue got resolved.

If it resolve this issue, then, you can run the following command on all lab machines where Anaconda and TauDEM are installed: > conda install vs2010_runtime

jlg046 commented 7 years ago

Fantastic!! Thanks so much for your help. We will try this fix in our lab and I'll report back to you. Thanks again for your quick help!

Sent from my iPhone

On Sep 20, 2016, at 12:18 PM, Pabitra Dash notifications@github.com wrote:

Janine - I was able to fix this issue on my machine running Anaconda. This is a workaround solution that you can try. You should find this file msvcr100.dll in C:\Windows\System32. Copy that file over to C:\Anaconda2. Then run any TauDEM tools to see if the issue got resolved.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lr030 commented 7 years ago

Hi Pabitra,

I am a colleague of Janine. We tried to solve the issue using your solution. Unfortunately it didn't work. It gave us the same error message. Please find the pic below for our installed C++ libraries. Another one we would like to mention is that we have both Anaconda2 & Anaconda3 installed, as well as Python2.7 installed from ArcGIS. Will this be too confusing for TauDEM? Any other thought?

Thank you! Luyang installed

solomonvimal commented 7 years ago

Hi Pabitra @pkdash,

I have the same issue with my Windows 7 laptop although I have all the dependencies installed. TauDEM does not seem to work from the command line or from ArcGIS. I couldn't resolve it following your solution.

However, very strangely, TauDEM works when I call its executable files from within QGIS (2.16.1). I tried to dig into the QGIS toolbox settings (Python files attached) to see why this is so, but did not manage to figure it out. Maybe you can take a look at it?

TauDEM_QGIS_settings.zip

Thanks, Solomon

dtarb commented 7 years ago

Sorting out these dependencies for configurations with multiple versions of python is difficult, especially when we do not have machines with this configuration, so it may take a while. It would help if you are able to figure out what dependencies are being used on machines where this does not work.

TauDEM only uses Python for its "wrapper" functions to construct the command line from the TauDEM inputs. The TauDEM command line functions are written in C++, use MPI dependencies and GDAL libraries. GDAL libraries and Microsoft runtime and MPI dependencies are installed with TauDEM, but if there are existing versions of these on the machine that are different, and these appear first on the effective path then you can get problems. It is often helpful to see if you can first get command line functions running, as this isolates the problem to one set of dependencies, then when the Python wrappers are used, the challenge becomes making sure that the environment where the command line is executed is the same. We'll keep plugging away at this, but without understanding the paths and dependencies on machines with multiple versions of Python, GDAL and Microsoft runtime libraries sorting this out is not easy and may take a while.

We are also working on a new version of TauDEM that will use a later version of Microsoft C++ and MPI. I'd prefer to @pkdash to focus sorting out dependencies on that version rather than the current 5.3.5 version. Hopefully we can post a pre-release version of this soon for you to try.

ChiranjibChaudhuri commented 7 years ago

Hello, Do I need to add path to Python27 as well in the "Path"?

With regards, Chiranjib

dtarb commented 7 years ago

@ChiranjibChaudhuri what is the context for your question. I do not think you have to add Python27 to the path if you are working in ArcGIS as using the Python that ArcGIS installs for its scripts. If you have a different set up, then I do not know.

ChiranjibChaudhuri commented 7 years ago

Hi David, I had both MS MPI and MPICH2 in my path. I think, they were conflicting while calling for mpiexe. Removing MPICH2 from path solved the problem. It's working alright now.

With regards, Chiranjib

GebiawAyele commented 6 years ago

When I add the TAUDEM in to ArcGIS 10.3 from "C:\Program Files\TauDEM\TauDEM5Arc", it works. My PC has anaconda3 installed.