Discussion:
[Erp5-dev] manage_add_ERP5Site: AttributeError on getIdGenerator
Mauro Ziliani
2009-09-09 15:44:55 UTC
Permalink
Hi all.
Adding an ERP5 Site from zope ZMI the following error will generate:
Any advice?

I'm working on Debian Lenny and I have followed erp5.raskon.ru istructions.

Best regards.
Mauro

2009-09-09 17:42:47 ERROR Zope.SiteErrorLog
http://mazisystem.selfip.com:8080/manage_addProduct/ERP5/manage_addERP5Site
Traceback (most recent call last):
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 114, in publish
request, bind=1)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
94, in manage_addERP5Site
reindex=reindex)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1258, in create
reindex=reindex, **kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1702, in setup
self.setupERP5Core(p,**kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1744, in setupERP5Core
id = template_tool.generateNewId()
File "/home/erp5/erp5-buildout/erp5/products/ERP5Type/Core/Folder.py",
line 242, in generateNewId
id_generator = self.getIdGenerator()
AttributeError: getIdGenerator
Muhamad Reza
2009-09-09 17:20:45 UTC
Permalink
Post by Mauro Ziliani
Hi all.
Any advice?
I'm working on Debian Lenny and I have followed erp5.raskon.ruistructions.
Best regards.
Mauro
2009-09-09 17:42:47 ERROR Zope.SiteErrorLog
http://mazisystem.selfip.com:8080/manage_addProduct/ERP5/manage_addERP5Site
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 114, in publish
request, bind=1)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
94, in manage_addERP5Site
reindex=reindex)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1258, in create
reindex=reindex, **kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1702, in setup
self.setupERP5Core(p,**kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1744, in setupERP5Core
id = template_tool.generateNewId()
File "/home/erp5/erp5-buildout/erp5/products/ERP5Type/Core/Folder.py",
line 242, in generateNewId
id_generator = self.getIdGenerator()
AttributeError: getIdGenerator
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
Hi Mauro,

I know that your problem because I got almost same problem when created ERP5
site. Perhaps, that's problem was occurred because your ERP5 buildout failed
to install.

However, Could you please print the ERP5 buildout result ?.
Make sure that all buildout packages are complete installed.

Best Regards,

Reza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20090910/242db023/attachment.htm>
Boris Kocherov
2009-09-09 18:18:25 UTC
Permalink
As i see you use not patched version Zope.
If you remark two lines try again run commands:

cd /home/erp5/erp5-buildout
sudo -u erp5 hg revert buildout.cfg # warning revertig you changes
sudo -u erp5 hg pull
sudo -u erp5 hg up
sudo -u erp5 bin/buildout -v
sudo /etc/init.d/erp5-buildout stop
sudo /etc/init.d/erp5-buildout start

and add site it would be worked now.
Post by Mauro Ziliani
Hi all.
Any advice?
I'm working on Debian Lenny and I have followed erp5.raskon.ru istructions.
Best regards.
Mauro
2009-09-09 17:42:47 ERROR Zope.SiteErrorLog
http://mazisystem.selfip.com:8080/manage_addProduct/ERP5/manage_addERP5Site
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 114, in publish
request, bind=1)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
94, in manage_addERP5Site
reindex=reindex)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1258, in create
reindex=reindex, **kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1702, in setup
self.setupERP5Core(p,**kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1744, in setupERP5Core
id = template_tool.generateNewId()
File "/home/erp5/erp5-buildout/erp5/products/ERP5Type/Core/Folder.py",
line 242, in generateNewId
id_generator = self.getIdGenerator()
AttributeError: getIdGenerator
_______________________________________________
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.
Boris Kocherov
2009-09-09 18:25:08 UTC
Permalink
Hmm i forget for full reinstall it needs run rm .installed.cfg

cd /home/erp5/erp5-buildout
sudo -u erp5 rm .installed.cfg
sudo -u erp5 hg revert buildout.cfg # warning revertig you changes
sudo -u erp5 hg pull
sudo -u erp5 hg up
sudo -u erp5 bin/buildout -v
sudo /etc/init.d/erp5-buildout stop
sudo /etc/init.d/erp5-buildout start
Post by Boris Kocherov
As i see you use not patched version Zope.
cd /home/erp5/erp5-buildout
sudo -u erp5 hg revert buildout.cfg # warning revertig you changes
sudo -u erp5 hg pull
sudo -u erp5 hg up
sudo -u erp5 bin/buildout -v
sudo /etc/init.d/erp5-buildout stop
sudo /etc/init.d/erp5-buildout start
and add site it would be worked now.
Post by Mauro Ziliani
Hi all.
Any advice?
I'm working on Debian Lenny and I have followed erp5.raskon.ru istructions.
Best regards.
Mauro
2009-09-09 17:42:47 ERROR Zope.SiteErrorLog
http://mazisystem.selfip.com:8080/manage_addProduct/ERP5/manage_addERP5Site
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 114, in publish
request, bind=1)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File
"/home/erp5/erp5-buildout/parts/zope2/lib/python/ZPublisher/Publish.py",
line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
94, in manage_addERP5Site
reindex=reindex)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1258, in create
reindex=reindex, **kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1702, in setup
self.setupERP5Core(p,**kw)
File "/home/erp5/erp5-buildout/erp5/products/ERP5/ERP5Site.py", line
1744, in setupERP5Core
id = template_tool.generateNewId()
File "/home/erp5/erp5-buildout/erp5/products/ERP5Type/Core/Folder.py",
line 242, in generateNewId
id_generator = self.getIdGenerator()
AttributeError: getIdGenerator
_______________________________________________
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.
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
Loading...