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

UnsupportedOperation: fileno #25

Closed
timea-kl opened this issue Jun 10, 2020 · 2 comments
Closed

UnsupportedOperation: fileno #25

timea-kl opened this issue Jun 10, 2020 · 2 comments

Comments

@timea-kl
Copy link

Hi,

I've run into the below error when the raster inputs have different extent, I am running it from spyder (python 3). Any advice appreciated. Thanks

image

@neilflood
Copy link
Member

So, the first thing to note is that you will get an error if the images are not on the same grid, unless you specify one as the reference grid (see ApplierControls.setReferenceImage, or setReferencePixgrid). This enables RIOS to resample the other images to match that one. So, first question is - have you specified a reference image?

Having said that, it looks like the error report about this is itself causing an error. So the next question is - have you modified the loggingstream (e.g. with ApplierControls.setLoggingStream) ? It looks like it has a 'stdout' object which is not equivalent to sys.stdout.

This might be something which spyder has modified, so the next test would be to run it outside spyder, and see if you get the same problem. I don't use spyder myself, so not sure exactly how it handles capturing stdout/stderr. However, lots of people use it, so I presume it mostly works.

If all these things are OK, then could you describe how you installed RIOS and GDAL? It looks like you used conda - did you get all packages from the same channel?

@timea-kl
Copy link
Author

Thanks, apparently the problem is with spyder, it was running straight from python without any error. Also doing a bit of digging into the issue I saw many people had similar problem with spyder.
Thanks for the support and for rios :). I think we can close this!

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

2 participants