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 Warp Not Found Error #8

Closed
gillins opened this issue Mar 7, 2017 · 5 comments
Closed

Gdal Warp Not Found Error #8

gillins opened this issue Mar 7, 2017 · 5 comments
Labels
bug Something isn't working major

Comments

@gillins
Copy link
Member

gillins commented Mar 7, 2017

Original report by Nathan Thomas (Bitbucket: nathanmthomas, GitHub: nathanmthomas).


Hello,

I often use RIOS as a quick way to mask out portions of a given scene using a mask (e.g. a watermask). Sometimes the resolution and projections do not match so I like the '.setReferenceImage' function within RIOS to take care of this on the fly, thus eliminating some steps I have to perform beforehand. This has always worked well for me, but recently I have had the issue:

'raise rioserrors.GdalWarpNotFoundError(msg)
rios.rioserrors.GdalWarpNotFoundError: Unable to run gdalwarp'

I have recently built a new environment for the software I use (Pete's development env so I could use the updates to TuiView I requested). I followed Pete's instructions for installing RIOS, but my env is a little hacked together due to now renamed and conflicting dependancies.

Before I try hacking around with my env again, I wanted to check if this could be an internal RIOS bug?

Thanks, Nathan

@gillins
Copy link
Member Author

gillins commented Mar 7, 2017

Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).


Hi Nathan,

I would say it is pretty unlikely to be an internal bug in RIOS. That part of the code has not been changed in several years.

To test your environment, just type
gdalwarp --help
and it should give you the help for the gdalwarp command. If not, then RIOS will also not be able to find it.

If this works OK, then there is something very subtle going on. However, I would still be very surprised if it internal in RIOS - I suspect your environment.

cheers
Neil

@gillins
Copy link
Member Author

gillins commented Mar 8, 2017

Original comment by Nathan Thomas (Bitbucket: nathanmthomas, GitHub: nathanmthomas).


Thanks Neil,

I did forget to mention that 'gdalwarp' works fine, which was why I was perplexed as to why RIOS couldn't find it. A new release of RSGISLib is due this month so I intend on rebuilding my environment when it is released. I'll provide an update if I still have problems after a clean install.

Thanks, Nathan

@gillins
Copy link
Member Author

gillins commented May 7, 2017

Original comment by Daniel Clewley (Bitbucket: danclewley, GitHub: danclewley).


I'm assuming this has been installed through conda. Could the problem be that $GDAL_DATA hasn't been set properly, which would cause gdalwarp to fail?

You could try installing rios in a new environment to make sure the latest conda-forge build works (https://github.com/conda-forge/rios-feedstock).

As this sounds like a build issue rather than one within RIOS would it be worth closing this and it if is still a problem with the latest conda-forge rios build opening a new issue there.

@gillins
Copy link
Member Author

gillins commented Jun 1, 2017

Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).


Since we did not hear anything back, I am assuming that the problem went away after a clean install.

@gillins gillins closed this as completed Jun 1, 2017
@gillins
Copy link
Member Author

gillins commented Jun 1, 2017

Original comment by Nathan Thomas (Bitbucket: nathanmthomas, GitHub: nathanmthomas).


Yes, I rebuilt my environment and it's sorted. My env was a bit of a mess
so a clean up seems to to have fixed it.

Cheers, Nathan

@gillins gillins added major bug Something isn't working labels Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant