Discussion:
[Erp5-dev] General Ledger - ImportError
Bartłomiej Górny
2006-01-14 16:46:33 UTC
Permalink
Checked out cvs this afternoon - General Legder throws an ImportError:

Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.ERP5Form.Report, line 144, in __call__
Module Products.ERP5Form.PDFTemplate, line 147, in pt_render
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <PDFTemplate at /erp5cztery/report_view used for
/erp5cztery/AccountModule_viewGeneralLedgerReport>
Module TAL.TALInterpreter, line 190, in __call__
Module TAL.TALInterpreter, line 234, in interpret
Module TAL.TALInterpreter, line 650, in do_defineMacro
Module TAL.TALInterpreter, line 234, in interpret
Module TAL.TALInterpreter, line 409, in do_optTag_tal
Module TAL.TALInterpreter, line 394, in do_optTag
Module TAL.TALInterpreter, line 389, in no_tag
Module TAL.TALInterpreter, line 234, in interpret
Module TAL.TALInterpreter, line 611, in do_loop_tal
Module Products.PageTemplates.TALES, line 206, in setRepeat
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5cztery/report_view
- Line 94, Column 0
- Expression: <PythonExpr report_method()>
- Names:
{'container': <ERP5Site instance at 438131d0>,
'context': <Folder at /erp5cztery/accounting_module>,
'default': <Products.PageTemplates.TALES.Default instance at
0x40c72fec>,
'form': <ERP5Report at
/erp5cztery/AccountModule_viewGeneralLedgerReport used for
/erp5cztery/accounting_module>,
'here': <Folder at /erp5cztery/accounting_module>,
'loop': <SafeMapping instance at 45f0d0a0>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x40c720ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 45f0d0a0>,
'report_method': <PythonScript at
/erp5cztery/AccountModule_getGeneralLedgerReportSectionList used for
/erp5cztery/accounting_module>,
'request': <HTTPRequest,
URL=http://erpik/erp5cztery/accounting_module/AccountModule_viewGeneralLedgerReport>,
'root': <Application instance at 436e23b0>,
'template': <ERP5Report at
/erp5cztery/AccountModule_viewGeneralLedgerReport used for
/erp5cztery/accounting_module>}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
- __traceback_info__: report_method()
Module Python expression "report_method()", line 1, in <expression>
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 323, in _exec
Module None, line 91, in AccountModule_getGeneralLedgerReportSectionList
- <PythonScript at
/erp5cztery/AccountModule_getGeneralLedgerReportSectionList used for
/erp5cztery/accounting_module>
- Line 91
Module AccessControl.ZopeGuards, line 312, in guarded_apply
Module AccessControl.ZopeGuards, line 334, in builtin_guarded_apply
Module Products.ERP5.Tool.SimulationTool, line 503, in getInventoryList
Module Shared.DC.ZRDB.DA, line 458, in __call__
- <SQL instance at 4619e770>
Module App.Extensions, line 169, in getBrain
Module App.Extensions, line 148, in getObject
- __traceback_info__: ('/var/lib/zope/Extensions/InventoryBrain.py',
'InventoryBrain.py')
Module /var/lib/zope/Extensions/InventoryBrain.py, line 15, in ?
ImportError: No module named ERP5Globals
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
Jérôme Perrin
2006-01-14 19:23:41 UTC
Permalink
Post by Bartłomiej Górny
Module /var/lib/zope/Extensions/InventoryBrain.py, line 15, in ?
ImportError: No module named ERP5Globals
When installing ERP5 from rpm, /var/lib/zope/Extensions/InventoryBrain.py is a
symlink
to /usr/lib/zope/lib/python/Products/ERP5/Extenstions/InventoryBrain.py .
LiveCD is made from RPM, so this rule apply here too.

If you have checked out products from CVS in /var/lib/zope/Products/, you have
to manually update the symlink so
that /var/lib/zope/Extensions/InventoryBrain.py points
to /var/lib/zope/Products/ERP5/Extensions/InventoryBrain.py
--
J?rome
Loading...