Building problem with buildout?

2 messages Options
Embed this post
Permalink
Geert Verhaag () Building problem with buildout?
Reply Threaded More More options
Print post
Permalink
Hi,

I've tried to start from scratch setting up my development environment for testing our live plone-3.1.5.1 based website.

So I installed all the necessary prerequisites and did a

paster create -t plone3_buildout mydevenvironment,

and next

python bootstrap.py. All this worked!

But the next step, the buildout, gives the following problem when it tries to install zope:

......
Installing zope2.
running build_ext
creating zope.proxy
copying zope/proxy\proxy.h -> zope.proxy
building 'AccessControl.cAccessControl' extension
error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the
compiler, but it isn't installed.
While:
  Installing zope2.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1519, in
main
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 473, in i
nstall
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1101, in
_call
  File "D:\TEMP\PLONE3151_21-7-2009_instance\LRCBSiteDev\eggs\plone.recipe.zope2install-3.1-py2.4.egg\plone\recipe\zope2
install\__init__.py", line 228, in install
    'build_ext', '-i',
AssertionError

I've installed Python-2.4.4 and MinGW-5.1.4, and added both to my PATH!

The command gcc --version yields on my Windows XP system:

gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I posted this problem last week also on the General Questions forum however, but didn't get any useful hints to tackle this problem.

Even the simple buildout.cfg file:

[buildout]
parts = instance

[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.11.3/Zope-2.11.3-final.tgz

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 8080

gives exactly the same error message!

Well, I hope someone can give me a hint on this, because I'm lost now? Thanks in advance!

Regards,
Geert Verhaag
Geert Verhaag () Re: Building problem with buildout?
Reply Threaded More More options
Print post
Permalink
Hi,

PROBLEM SOLVED!

Well, it turned out that my python installation didn't use the correct default compiler!

When I issued the python command:

python setup.py build_ext -i --compiler = mingw32

it worked.

So  I added the lines

[build]
compiler = mingw32

to the disutils.cfg file and that was it!

And of course all this was mentioned in the "Configure Distutils to use MinGW" section of the README file of the mydevenvironment directory!!!!!!!!!!

Sorry!

Regards,
Geert

Geert Verhaag wrote:
Hi,

I've tried to start from scratch setting up my development environment for testing our live plone-3.1.5.1 based website.

So I installed all the necessary prerequisites and did a

paster create -t plone3_buildout mydevenvironment,

and next

python bootstrap.py. All this worked!

But the next step, the buildout, gives the following problem when it tries to install zope:

......
Installing zope2.
running build_ext
creating zope.proxy
copying zope/proxy\proxy.h -> zope.proxy
building 'AccessControl.cAccessControl' extension
error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the
compiler, but it isn't installed.
While:
  Installing zope2.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1519, in
main
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 473, in i
nstall
  File "c:\docume~1\z873114\locals~1\temp\tmplktuat\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1101, in
_call
  File "D:\TEMP\PLONE3151_21-7-2009_instance\LRCBSiteDev\eggs\plone.recipe.zope2install-3.1-py2.4.egg\plone\recipe\zope2
install\__init__.py", line 228, in install
    'build_ext', '-i',
AssertionError

I've installed Python-2.4.4 and MinGW-5.1.4, and added both to my PATH!

The command gcc --version yields on my Windows XP system:

gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I posted this problem last week also on the General Questions forum however, but didn't get any useful hints to tackle this problem.

Even the simple buildout.cfg file:

[buildout]
parts = instance

[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.11.3/Zope-2.11.3-final.tgz

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 8080

gives exactly the same error message!

Well, I hope someone can give me a hint on this, because I'm lost now? Thanks in advance!

Regards,
Geert Verhaag