You should remove everything from its folder and check it out again.
Post by Åukasz NowakHello,
I'm preparing to create working packages for debian-like distributions
of ERP5.
I have funny error. I've already patch tarfile.py[1] and installation
of system works fine - I'm able to install any BT.
But while running unit test which imports erp5_trade I've got attached
error message.
I hope it is last thing, which stops me from providing .deb of ERP5 to
community, so any tips are welcome.
Regards,
Luke
------------------------------------------------------------------------
$ ./ERP5Type/tests/runUnitTest.py -v --portal_id=erp5 --save testXMLMatrix
SOFTWARE_HOME: /home/shufla/erp5/lib/python
INSTANCE_HOME: /home/shufla/work/erp5instance/unit_test
Loading Zope, please stand by ./usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)
../usr/lib/zope/lib/python/Products/CMFMailIn/__init__.py:16: DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions' is a deprecated compatiblity alias for 'Products.CMFCore.permissions'; please use the new module instead.
from Products.CMFCore import utils, CMFCorePermissions
done (0.866s)
Adding ERP5TypeTestCase user ...
Adding erp5 ERP5 Site ... done (25.267s)
Adding erp5_base business template ... done (9.750s)
File "/home/shufla/work/erp5instance/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 619, in setupERP5Site
portal.portal_templates.download(url, id=id_)
File "/home/shufla/work/erp5instance/Products/ERP5/Tool/TemplateTool.py", line 374, in download
bt.importFile(dir=1, file=file_list, root_path=name)
File "/home/shufla/work/erp5instance/unit_test/Products/ERP5/Document/BusinessTemplate.py", line 4652, in importFile
getattr(self, item_name).importFile(bta)
File "/home/shufla/work/erp5instance/unit_test/Products/ERP5/Document/BusinessTemplate.py", line 444, in importFile
bta.importFiles(klass=self)
File "/home/shufla/work/erp5instance/unit_test/Products/ERP5/Document/BusinessTemplate.py", line 273, in importFiles
klass._importFile(file_name, file)
File "/home/shufla/work/erp5instance/unit_test/Products/ERP5/Document/BusinessTemplate.py", line 579, in _importFile
obj = connection.importFile(file, customImporters=customImporters)
File "/home/shufla/erp5/lib/python/ZODB/ExportImport.py", line 77, in importFile
return customImporters[magic](self, file, clue)
File "/home/shufla/erp5/lib/python/OFS/XMLExportImport.py", line 119, in importXML
return jar.importFile(outfile,clue)
File "/home/shufla/erp5/lib/python/ZODB/ExportImport.py", line 85, in importFile
t.commit(1)
File "/home/shufla/work/erp5instance/Products/ERP5Type/patches/Transaction.py", line 96, in commit
ncommitted += self._commit_objects(objects)
File "/home/shufla/erp5/lib/python/ZODB/Transaction.py", line 356, in _commit_objects
jar.commit(o, self)
File "/home/shufla/erp5/lib/python/ZODB/Connection.py", line 344, in commit
getattr(self, method_name)(transaction, *args, **kw)
File "/home/shufla/erp5/lib/python/ZODB/ExportImport.py", line 130, in _importDuringCommit
raise POSException.ExportError, 'Truncated export file'
ExportError: Truncated export file
Ran Unit test of XMLMatrix (installation failed)
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev