[Silva-general] upgrade error
David Gillies
d.gillies at ucl.ac.uk
Thu Apr 30 11:50:07 CEST 2009
Kit,
Yes, I did but the only other messages were relating upgrading of
AutoTOCs. I changed the index_object function to output the path of
the object to the log similar to how Andy recommended on Monday or
Tuesday and found it that way. I would have got back sooner but was
on leave and am just catching up on things.
david
On 29 Apr 2009, at 10:57, Kit BLAKE wrote:
> David, I assume you checked the log? No mention of the object with
> the problem?
>
> Kit
>
> On 26 Apr 2009, at 00:40, David Gillies wrote:
>
>> Hi all,
>>
>> We are trying to upgrade from Silva 1.5.9 to Silva 1.6.3 but when
>> we do
>> the content upgrade we get the following error:
>>
>> 2009-04-25T17:53:04 ERROR Zope.SiteErrorLog
>> http://wwwcm-d.ucl.ac.uk:8121/silva/service_extensions/upgrade_all
>> Traceback (most recent call last):
>> File "/usr/local/zope-2.8.8/lib/python/ZPublisher/Publish.py", line
>> 114, in publish
>> request, bind=1)
>> File "/usr/local/zope-2.8.8/lib/python/ZPublisher/mapply.py", line
>> 88, in mapply
>> if debug is not None: return debug(object,args,context)
>> File "/usr/local/zope-2.8.8/lib/python/ZPublisher/Publish.py", line
>> 40, in call_object
>> result=apply(object,args) # Type s<cr> to step into published
>> object.
>> File "/data/Zope/instance9a/Products/Silva/ExtensionService.py",
>> line 105, in upgrade_all
>> self.get_root().upgrade_silva()
>> File "/data/Zope/instance9a/Products/Silva/Root.py", line 214, in
>> upgrade_silva
>> upgrade.registry.upgrade(self, from_version, to_version)
>> File "/data/Zope/instance9a/Products/Silva/upgrade.py", line 172,
>> in upgrade
>> self.upgradeTree(root, version)
>> File "/data/Zope/instance9a/Products/Silva/upgrade.py", line 115,
>> in upgradeTree
>> o = self.upgradeObject(o, version)
>> File "/data/Zope/instance9a/Products/Silva/upgrade.py", line 93, in
>> upgradeObject
>> obj = upgrader.upgrade(obj)
>> File "/data/Zope/instance9a/Products/Silva/upgrade_160.py", line
>> 106, in upgrade
>> obj.index_object()
>> File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>> CatalogPathAwareness.py", line 99, in index_object
>> self.default_catalog).catalog_object(self, self.getPath())
>> File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>> ZCatalog.py", line 567, in catalog_object
>> update_metadata=update_metadata)
>> File "/usr/local/zope-2.8.8/lib/python/Products/ZCatalog/
>> Catalog.py", line 360, in catalogObject
>> blah = x.index_object(index, object, threshold)
>> File "/data/Zope/instance9b/Products/ProxyIndex/ProxyIndex.py",
>> line 156, in index_object
>> return index_object(documentId, wrapper, threshold)
>> File "/usr/local/zope-2.8.8/lib/python/Products/PluginIndexes/
>> TextIndex/TextIndex.py", line 313, in index_object
>> for word in list(splitter(source,encoding=encoding)):
>> File "/usr/local/zope-2.8.8/lib/python/Products/PluginIndexes/
>> TextIndex/Lexicon.py", line 167, in Splitter
>> return self.SplitterFunc(astring, words)
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
>> position 91: ordinal not in range(128)
>>
>> I'm not sure which object is causing it. Any ideas how we can find
>> it?
>>
>> david
>>
>>
>>
>>
>> --
>> =========
>> David Gillies
>> Web Support Officer
>> Web Services
>> =========
>>
>>
>> _______________________________________________
>> silva-general mailing list
>> silva-general at lists.infrae.com
>> https://lists.infrae.com/mailman/listinfo/silva-general
>
> --
> Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
>
>
More information about the silva-general
mailing list