[PyQt] missing os.statvfs for ARM

Phil Thompson phil at riverbankcomputing.com
Mon Aug 15 12:58:52 BST 2016


On 4 Aug 2016, at 4:33 pm, Thijs Triemstra <lists at collab.nl> wrote:
> 
> Hi,
> 
> Was getting this error for a py3.5.1 ARM build (raspberrypi, not
> android): AttributeError: module 'os' has no attribute 'statvfs'
> 
> After enabling it for Android _stat.c was built and included, see patch
> below. Maybe default=1, win=0 makes more sense?
> 
> diff -r 12ef76e33e19 pyqtdeploy/python/pyconfig.py
> --- a/pyqtdeploy/python/pyconfig.py	Tue Jun 14 15:02:22 2016 +0100
> +++ b/pyqtdeploy/python/pyconfig.py	Thu Aug 04 17:28:00 2016 +0200
> @@ -1073,7 +1073,7 @@
>     Config('HAVE_SYS_SOCKET_H', default=1),
> 
>     # Define to 1 if you have the <sys/statvfs.h> header file.
> -    Config('HAVE_SYS_STATVFS_H', ios=1, linux=1, osx=1),
> +    Config('HAVE_SYS_STATVFS_H', ios=1, linux=1, osx=1, android=1),
> 
>     # Define to 1 if you have the <sys/stat.h> header file.
>     Config('HAVE_SYS_STAT_H', default=1),

That doesn't make any sense. How does enabling for Android make any difference if you are not targetting Android?

Phil


More information about the PyQt mailing list