Hi folks,
I want to start using Windmill with Plone. There's even an integration
package:
http://pypi.python.org/pypi/niteoweb.windmill.
Now, the stable Plone 3.x is still using Python 2.4. There's also the
soon-to-go-alpha Plone 4, which runs on Python 2.6. I'm able to run
Windmill on the latter, but not on Python 2.4. I'm using Mac OSX 10.6
(Snow Leopard).
I think the problem is the ctypes module. Here's what happens when I
try to install the windmill egg in a virtualenv. The best of my
Googling is failing to find the cause of this. Does anyone have any
clues?
Cheers,
Martin
$ virtualenv --python=python2.4 windmill
Already using interpreter /opt/python/python-2.4/bin/python2.4
Using real prefix '/opt/python/parts/opt'
New python executable in windmill/bin/python2.4
Also creating executable in windmill/bin/python
Installing
distribute...........................................................................................................................................................................done.
$ cd windmill/
$ ./bin/easy_install windmill
Searching for windmill
Reading
http://pypi.python.org/simple/windmill/
Reading
http://www.getwindmill.com/
Reading
http://windmill.osafoundation.org/
Best match: windmill 1.3
Downloading
http://pypi.python.org/packages/source/w/windmill/windmill-1.3.tar.gz#md5=1f5a8fca648beeaacbfc8f0e01d41c8c
Processing windmill-1.3.tar.gz
Running windmill-1.3/setup.py -q bdist_egg --dist-dir /var/folders/CS/
CSVVQU2TGaiQYSKA+4-NNE+++TI/-Tmp-/easy_install-45gMeO/windmill-1.3/egg-
dist-tmp-bl8xVP
zip_safe flag not set; analyzing archive contents...
windmill.browser.__init__: module references __file__
windmill.conf.global_settings: module references __file__
windmill.dep._functest.collector: module references __file__
windmill.dep._simplejson.tests.__init__: module references __file__
windmill.management.commands.test_windmill: module references __file__
windmill2.browser.firefox: module references __file__
Adding windmill 1.3 to easy-install.pth file
Installing windmill script to /Users/optilude/tmp/python/windmill/bin
Installed /Users/optilude/tmp/python/windmill/lib/python2.4/site-
packages/windmill-1.3-py2.4.egg
Processing dependencies for windmill
Searching for ctypes
Reading
http://pypi.python.org/simple/ctypes/
Reading
http://sourceforge.net/project/showfiles.php?group_id=71702
Reading
http://starship.python.net/crew/theller/ctypes.html
Best match: ctypes 1.0.2
Downloading
http://downloads.sourceforge.net/project/ctypes/ctypes/1.0.2/ctypes-1.0.2.tar.gz
Processing ctypes-1.0.2.tar.gz
Running ctypes-1.0.2/setup.py -q bdist_egg --dist-dir /var/folders/CS/
CSVVQU2TGaiQYSKA+4-NNE+++TI/-Tmp-/easy_install-tmZ-ys/ctypes-1.0.2/egg-
dist-tmp-LGb389
warning: no files found matching 'MANIFEST'
warning: no files found matching 'NEWS.txt'
warning: no files found matching 'ctypes/.CTYPES_DEVEL'
Configuring static FFI library:
cd build/temp.macosx-10.6-i386-2.4/libffi && env CFLAGS='' '/private/
var/folders/CS/CSVVQU2TGaiQYSKA+4-NNE+++TI/-Tmp-/easy_install-tmZ-ys/
ctypes-1.0.2/source/libffi/configure'
checking build system type... i686-apple-darwin10.0.0
checking host system type... i686-apple-darwin10.0.0
checking target system type... i686-apple-darwin10.0.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 16
checking whether byte ordering is bigendian... no
checking whether .eh_frame section should be read-only... no
checking for __attribute__((visibility("hidden")))... no
configure: creating ./config.status
config.status: creating include/ffi.h
config.status: creating fficonfig.py
config.status: creating fficonfig.h
config.status: linking /private/var/folders/CS/CSVVQU2TGaiQYSKA+4-NNE++
+TI/-Tmp-/easy_install-tmZ-ys/ctypes-1.0.2/source/libffi/src/darwin/
ffitarget.h to include/ffitarget.h
config.status: linking /private/var/folders/CS/CSVVQU2TGaiQYSKA+4-NNE++
+TI/-Tmp-/easy_install-tmZ-ys/ctypes-1.0.2/source/libffi/include/
ffi_common.h to include/ffi_common.h
config.status: executing include commands
config.status: executing src commands
In file included from source/_ctypes.c:110:
build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:161: error:
expected specifier-qualifier-list before ‘ffi_abi’
build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:183: error:
expected specifier-qualifier-list before ‘ffi_sarg’
build/temp.macosx-10.6-i386-2.4/libffi/include/ffi.h:267: error:
expected declaration specifiers or ‘...’ before ‘ffi_abi’
In file included from source/_ctypes.c:126:
source/ctypes.h:71: error: expected specifier-qualifier-list before
‘ffi_closure’
source/_ctypes.c: In function ‘CDataType_in_dll’:
source/_ctypes.c:304: warning: format not a string literal and no
format arguments
source/_ctypes.c: In function ‘CFuncPtr_FromDll’:
source/_ctypes.c:2795: warning: format not a string literal and no
format arguments
source/_ctypes.c: In function ‘CFuncPtr_clear’:
source/_ctypes.c:3422: error: ‘ffi_info’ has no member named ‘pcl’
error: Setup script exited with error: command 'gcc' failed with exit
status 1