geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
178 stars 117 forks source link

os.stat_result has no attribute st_blksize on windows #463

Closed omerlevko closed 1 year ago

omerlevko commented 5 years ago

Description

when i execute a process in pywps-flask(on windows) i get an error (on topic) the error stacktrace leads to https://github.com/geopython/pywps/blob/d90a12416fc0377d803409921ec1dae2f9cd6c05/pywps/inout/storage.py#L111

the error doesn't occurs on linux operating system.

Environment

Steps to Reproduce

set up pywps-flask, run it and execute a process

Additional Information

michahashkes commented 5 years ago

This has also been happening to me. Any updates? Can anyone direct me and I'll try to fix it myself?

cehbrecht commented 5 years ago

The block size seems to work on linux only: https://docs.python.org/3/library/os.html#os.stat_result.st_blocks

I can't say how to make this work on windows. We probably don't won't to support windows for production use, only for development. So, if there is no better solution we may skip the "available disk space" check on windows.

eran-pinhas commented 5 years ago

We probably don't won't to support windows for production use, only for development. So, if there is no better solution we may skip the "available disk space" check on windows.

Legit. I agree

Zeitsperre commented 1 year ago

Fixed with #476