[Zope] import/export errors

Paul Winkler pw_lists at slinkp.com
Mon Aug 30 10:17:18 EDT 2004


On Mon, Aug 30, 2004 at 09:50:55AM -0400, nwingfield at dixon-hughes.com wrote:
> 
> 
> 
> 
> Having exported a ZEXP file from one Zope instance (Zope 2.7.2, Python
> 2.3.3), I get the following error when trying to import the ZEXP into
> another Zope instance (Zope 2.6.2, Python 2.1.3).  I've never before seen
> this error, and I'm wondering if anyone can help.
> 
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 98, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 39, in call_object
>   Module OFS.ObjectManager, line 530, in manage_importObject
>   Module OFS.ObjectManager, line 546, in _importObjectFromFile
>   Module ZODB.ExportImport, line 79, in importFile
>   Module ZODB.Transaction, line 235, in commit
>   Module ZODB.Transaction, line 350, in _commit_objects
>   Module ZODB.Connection, line 305, in commit
>   Module ZODB.ExportImport, line 148, in _importDuringCommit
> SystemError: Failed to import class struct_time from module time

See the python library reference docs.
time.struct_time is new since python 2.2.
Something in your .zexp contains one.

You could try running the 2.6.2 server on python 2.3.3.
It should basically work OK.
Better would be to upgrade to 2.7.x.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list