Discussion:
[Erp5-dev] Erp5 buildout on Debian Lenny
Mauro Ziliani
2009-09-08 09:23:44 UTC
Permalink
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError

I have installed zope2.10 also for my webapps.

Any idea about this error?

Best regards
Mauro
Boris Kocherov
2009-09-09 06:33:53 UTC
Permalink
try run commands:
cd /home/erp5/erp5-buildout/parts/zope2
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt pop -af
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt push -a
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
Best regards
Mauro
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Mauro Ziliani
2009-09-09 07:19:18 UTC
Permalink
The file patches-zope is not found in /home/erp5/erp5-buildout
Where I can find it?
Post by Boris Kocherov
cd /home/erp5/erp5-buildout/parts/zope2
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt pop -af
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt push -a
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
Best regards
Mauro
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
Boris Kocherov
2009-09-09 18:28:19 UTC
Permalink
Post by Mauro Ziliani
The file patches-zope is not found in /home/erp5/erp5-buildout
Where I can find it?
It real issue thank for reporting.
I reorganize my repos and lose it folders.
Now it fixed.
Post by Mauro Ziliani
Post by Boris Kocherov
cd /home/erp5/erp5-buildout/parts/zope2
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt pop -af
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt push -a
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
Best regards
Mauro
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Mauro Ziliani
2009-09-09 18:42:26 UTC
Permalink
Well done.
This solve the problem about AttribureError: getIdGenerator.
Post by Boris Kocherov
Post by Mauro Ziliani
The file patches-zope is not found in /home/erp5/erp5-buildout
Where I can find it?
It real issue thank for reporting.
I reorganize my repos and lose it folders.
Now it fixed.
Post by Mauro Ziliani
Post by Boris Kocherov
cd /home/erp5/erp5-buildout/parts/zope2
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt pop -af
QUILT_PATCHES=/home/erp5/erp5-buildout/patches-zope sudo -u erp5 quilt push -a
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
Best regards
Mauro
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
Eus
2009-09-09 08:13:49 UTC
Permalink
Hi Ho!

Please see my reply interleaved with your message below.
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
I experience the same thing here.
My fix is to force the use of `patch' command instead of `quilt' by
commenting the following two lines
in /home/erp5/erp5-buildout/buildout.cfg by typing `#' at the beginning
of the two lines:

--- 8< ------
patch-command =
QUILT_PATCHES=${buildout:directory}/patches-zope quilt push -a
--- 8< ------

After that, repeat the buildout process by entering:
sudo -u erp5 bin/buildout -v
Post by Mauro Ziliani
Best regards
Mauro
--
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/jf?referrer=4445
Boris Kocherov
2009-09-09 18:00:57 UTC
Permalink
Post by Eus
Hi Ho!
Please see my reply interleaved with your message below.
Post by Mauro Ziliani
Goodmorning.
I try to install erp5 buildout (as written in erp5.raskcon.ru).
But I reach the following assertion error.
An internal error occured due to a bug in either zc.buildout or in a
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1659, in main
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 532, in install
File
"/tmp/tmpXyERcN/zc.buildout-1.4.1-py2.4.egg/zc/buildout/buildout.py",
line 1203, in _call
File
"/home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py",
line 249, in install
assert os.system(patch_command) == 0
AssertionError
I have installed zope2.10 also for my webapps.
Any idea about this error?
I experience the same thing here.
My fix is to force the use of `patch' command instead of `quilt' by
commenting the following two lines
in /home/erp5/erp5-buildout/buildout.cfg by typing `#' at the beginning
--- 8< ------
patch-command =
QUILT_PATCHES=${buildout:directory}/patches-zope quilt push -a
--- 8< ------
It very important lines not remark it!
Post by Eus
sudo -u erp5 bin/buildout -v
Post by Mauro Ziliani
Best regards
Mauro
--
Best regards,
Eus (FSF member #4445)
In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.
Join free software movement today! It is free as in freedom, not as in
free beer!
Join: http://www.fsf.org/jf?referrer=4445
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Eus
2009-09-10 01:19:33 UTC
Permalink
Hi Ho!

On Wed, 2009-09-09 at 22:00 +0400, Boris Kocherov wrote:

[snip]
Post by Boris Kocherov
Post by Eus
My fix is to force the use of `patch' command instead of `quilt' by
commenting the following two lines
in /home/erp5/erp5-buildout/buildout.cfg by typing `#' at the beginning
--- 8< ------
patch-command =
QUILT_PATCHES=${buildout:directory}/patches-zope quilt push -a
--- 8< ------
It very important lines not remark it!
Yup, I think you are right since then I get the following error:
AttribureError: getIdGenerator

However, I dare to change it because of the following logic
in /home/erp5/erp5-buildout/parts/z2i/plone.recipe.zope2install/src/plone/recipe/zope2install/__init__.py line 249 that barks about AssertionError:

--- 8< -----------
# apply a patch to zope before build
patch_command = options.get('patch-command', None)
patch = options.get('patch', None)
if patch_command:
assert os.system(patch_command) == 0
if patch:
assert os.system('patch -p1 < %s' % patch) == 0
--- 8< -----------

At a glance, I understood that if patch_command is unavailable, then
patch will be used. Heh, I bet the patch is not applied because patch is
None. I should have been more careful.

But, it is true that if patch_command is unavailable, then patch will be
used if it is set. Is that true?

And, what is the meaning of `%' operator in: 'patch -p1 < %s' % patch ?
--
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/jf?referrer=4445
Boris Kocherov
2009-09-10 09:21:37 UTC
Permalink
Post by Eus
However, I dare to change it because of the following logic
--- 8< -----------
# apply a patch to zope before build
patch_command = options.get('patch-command', None)
patch = options.get('patch', None)
assert os.system(patch_command) == 0
assert os.system('patch -p1 < %s' % patch) == 0
--- 8< -----------
But, it is true that if patch_command is unavailable, then patch will be
used if it is set. Is that true?
It is not true.
If patch set: patch will be used.
Post by Eus
And, what is the meaning of `%' operator in: 'patch -p1 < %s' % patch ?
http://www.python.org/doc/
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Eus
2009-09-10 09:37:08 UTC
Permalink
Hi Ho!
Post by Boris Kocherov
Post by Eus
However, I dare to change it because of the following logic
--- 8< -----------
# apply a patch to zope before build
patch_command = options.get('patch-command', None)
patch = options.get('patch', None)
assert os.system(patch_command) == 0
assert os.system('patch -p1 < %s' % patch) == 0
--- 8< -----------
But, it is true that if patch_command is unavailable, then patch will be
used if it is set. Is that true?
It is not true.
If patch set: patch will be used.
Ah, a common mistake that I made when glancing through code.

Well, basically I just want to force the use `patch' instead of `quilt'.
Post by Boris Kocherov
Post by Eus
And, what is the meaning of `%' operator in: 'patch -p1 < %s' % patch ?
http://www.python.org/doc/
I skimmed the doc to no avail. That's why I asked ;-)

But, daring to assume `%' as a modulo operator, I googled for "python
string modulo" and found the light:
http://www.informit.com/articles/article.aspx?p=28790&seqNum=2

That corresponds to
http://docs.python.org/library/stdtypes.html#string-formatting

Okay, thank you for your help, Boris! :-)
--
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/jf?referrer=4445
Boris Kocherov
2009-09-10 10:12:38 UTC
Permalink
Post by Eus
Ah, a common mistake that I made when glancing through code.
Well, basically I just want to force the use `patch' instead of `quilt'.
It is simple: use patch instead quilt ;)
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Loading...