[Zope-dev] Re: Showstopper UnicodeDecodeError on Zope import???

Nick Bower nicholas.bower at jrc.it
Fri Oct 8 11:10:49 EDT 2004


Andreas Jung wrote:
 > Are you really sure that the source and destination instance are running
 > the *same*
 > setup (means same Zope and Plone versions)?
 >
 > -aj

As sure as one can be when comparing a Plone 2.0.3 all-in-one windows 
distribution with a custom built zope 2.7.0/zope2.7.2 + plone 2.0.3 (all 
combinations tried) Unix server environment.  (Not really basically)

But surely no-one will advise me that this should matter for the 
purposes of importing/exporting as long as both are Plone 2.0.3.

Besides, the problem is not consistent between linux servers of same 
versions (just compiled on different distros) and AFAIK, there's no 
reason why objects should not be portable in this way because although 
the exception mentions CMFCore.CMFCatalog* and CMFPlone, the actual 
catch is way down in ZCTextIndex and ZCatalog which is Zope.  Or am I wrong?

nick


> 
> --On Freitag, 8. Oktober 2004 16:41 Uhr +0200 Nick Bower 
> <nicholas.bower at jrc.it> wrote:
> 
>> I'm trying to import a zexp export (a Plone site actually) from a windows
>> workstation to a zope server I built on Linux RH9 but it fails with a
>> UnicodeDecodeError:
>>
>> ...
>> Module Products.ZCTextIndex.Lexicon, line 69, in sourceToWordIds
>> Module Products.ZCTextIndex.Lexicon, line 135, in _getWordIdCreate
>>
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 5:
>> orginal not in range(128).
>>
>> What is confusing is that the zexp *will* import to another linux zope
>> build I have (on Mdk10) and sys.getdefaultencoding() and
>> locale.getdefaultlocale() on the 2 linux machines are almost the same
>> (the working one reports "en_GB, utf"/ascii and the non-working one
>> reports "en_US, utf"/ascii), so I think this is a red herring.  I can't
>> for the life of me work out what is going wrong as I built python myself
>> on both Linux machines exactly the same.
>>
>> Can anyone help me please???
>>
>> Thanks, Nick
>>
>> _______________________________________________
>> Zope-Dev maillist  -  Zope-Dev at zope.org
>> http://mail.zope.org/mailman/listinfo/zope-dev
>> **  No cross posts or HTML encoding!  **
>> (Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope )
> 
> 
> 
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )
> 



More information about the Zope-Dev mailing list