[PyQt] missing os.statvfs for ARM
Thijs Triemstra
lists at collab.nl
Thu Aug 4 16:33:44 BST 2016
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),
Cheers,
Thijs
More information about the PyQt
mailing list