Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdal dll missing #192

Closed
jbreng opened this issue Dec 6, 2018 · 5 comments
Closed

gdal dll missing #192

jbreng opened this issue Dec 6, 2018 · 5 comments

Comments

@jbreng
Copy link

jbreng commented Dec 6, 2018

I got the same error about my DEM tif not existing or not being valid as this post:

#19 (comment)

I changed the path env't. variable to include both the pathway to MPI and TauDEM executables and restarted my computer. That didn't resolve my issue. Then, I ran the suggested command line which resulted in this error:

image

I do have both GDAL paths that Ronda mentions in her post added to my path variable- "C:\GDAL" and "C:\Program Files (x86)\GDAL". But, the "C:\GDAL" path does not actually exist and I could not find the gdal201.dll file in the "C:\Program Files (x86)\GDAL" folder.

How do I go about fixing this particular issue while maintaining functionality in my GDAL Python package and not messing up my path variables? As you can tell, I'm not especially computer savvy, especially about installing dependencies and path variables so your help is appreciated. Thank you for your help!

Originally posted by @jbreng in #19 (comment)

@dtarb
Copy link
Owner

dtarb commented Dec 6, 2018

The file gdal201.dll should be in "C:\Program Files\GDAL". This is where the GDAL installer bundled with the TauDEM installer puts it by default. I suggest you do a search on your C drive for this file and then add its location to your path.

This is a bit tricky because there are separate 32 bit and 64 bit implementations of TauDEM and GDAL. Your computer seems likely to be 64 bit (the presence of the folder "C:\Program Files (x86)" as a separate folder indicates this. Any GDAL version in "C:\Program Files (x86)" is likely to be 32 bit and not to work with the 64 bit TauDEM that would have been installed by default.

The content of C:\GDAL is a Python GDAL implementation. This is only used by a few of the TauDEM functions (more specialized ones associated with terrain stability mapping). It should also have been installed by the TauDEM installer. You may be able to install them separately, but this is a bit tricky. I suggest rerunning the TauDEM installer, making sure you have admin permissions to let the GDAL installs work.

@jbreng
Copy link
Author

jbreng commented Dec 6, 2018

Thank you for your response. Yes, my laptop is 64-bit.

I searched my C drive for gdal201.dll and it didn't come up. I do have a gdal202.dll file in my "C:\Program Files (x86)\GDAL" for what it's worth.

But, it sounds like you're saying the GDAL version in "C\Program Files (x86)" is 32 bit and useless with the default 64 bit TauDEM anyways. I should note that my "TauDEM" folder is in my "C:\Program Files" folder so I wonder if my TauDEM is 32 bit?

Also, since I don't have a C:\GDAL folder in my laptop, does that mean I somehow do not have the Python GDAL implementation installed by default during TauDEM installation? I am able to "import gdal" in IDLE.

At this point, should I just uninstall TauDEM using "unins000.exe" file? It seems like I've made quite the mess and it would be best to reinstall 64 bit TauDEm, making sure all the file paths are included in my path env't. variable and files are in the correct file pathways. I don't want to mess up my ability to import gdal in IDLE though!

Frankly, my lack of computer literacy is making me overly cautious to try unfamiliar things on a work laptop! Any time you can provide is very much appreciated.

@dtarb
Copy link
Owner

dtarb commented Dec 6, 2018

I'd probably advise getting a sysadmin who knows about the work laptop setup to help you.

Then, with them try unistall TauDEM from the control panel remove programs. Then try reinstall. This should also install the necessary GDAL libraries.

There is a possibility that the newer gdal201 on your computer is preventing installation of gdal201 that TauDEM uses. The sysadmin may be able to figure out how to install in different locations so that both versions can sit side by side. I have had reports that others have successfully compiled TauDEM with the newer GDAL versions. You could pursue that, but recompiling requires some computer saviness.

@jbreng
Copy link
Author

jbreng commented Dec 6, 2018

Thank you for the advice. I very much appreciate your suggestions and time!

@jbreng jbreng closed this as completed Dec 6, 2018
@micpy
Copy link

micpy commented May 28, 2020

HELP: Error in ArcMap 10.3.1
File "C:\Program Files\TauDEM\TauDEM5Arc\PitRemove.py", line 61, in
arcpy.CalculateStatistics_management(outFile)
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 14618, in CalculateStatistics
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Raster Dataset

Then I tried running it in cmd. This is the error I experienced:
"PitRemove.exe - Entry Point Not Found" [TauDEM537]
image

Note:
I experienced the same error with TauDEM535
My unit is 64-bit.
I already added to my Path the following:
C:\Program Files\Microsoft MPI\Bin\mpiexec.exe;C:\Program Files\Microsoft HPC Pack 2012\Bin\mpiexec.exe;C:\Program Files\GDAL;C:\Program Files\Microsoft HPC Pack 2012;C:\Program Files\TauDEM;C:\Program Files\TauDEM\TauDEM5Exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants