Python3.5.9 and UnicodeDecodeError in ZODB/fsIndex.py

Etienne Robillard <[email protected]> Wed, 18 Oct 2017 08:02:23 -0400
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
Hi all,

I've got an issue after having upgraded to Python3 and ZODB 5.3.0:

erob@marina:/home/www/isotopesoftware.ca/trunk$ bin/runzeo.sh
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
------
2017-10-18T07:56:04 INFO ZEO.runzeo (26525) opening storage '1' using 
FileStorage
------
2017-10-18T07:56:04 ERROR ZODB.FileStorage loading index
Traceback (most recent call last):
   File 
"/usr/local/lib/python3.5/dist-packages/ZODB-5.3.0-py3.5.egg/ZODB/FileStorage/FileStorage.py", 
line 465, in _restore_index
     info = fsIndex.load(index_name)
   File 
"/usr/local/lib/python3.5/dist-packages/ZODB-5.3.0-py3.5.egg/ZODB/fsIndex.py", 
line 134, in load
     v = unpickler.load()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 99: 
ordinal not in range(128)
Traceback (most recent call last):
   File "/usr/local/bin/runzeo", line 11, in <module>
     load_entry_point('ZEO', 'console_scripts', 'runzeo')()
   File 
"/usr/local/lib/python3.5/dist-packages/ZEO-5.1.0-py3.5.egg/ZEO/runzeo.py", 
line 392, in main
     s.main()
   File 
"/usr/local/lib/python3.5/dist-packages/ZEO-5.1.0-py3.5.egg/ZEO/runzeo.py", 
line 153, in main
     self.open_storages()
   File 
"/usr/local/lib/python3.5/dist-packages/ZEO-5.1.0-py3.5.egg/ZEO/runzeo.py", 
line 207, in open_storages
     self.storages[opener.name] = opener.open()
   File 
"/usr/local/lib/python3.5/dist-packages/ZODB-5.3.0-py3.5.egg/ZODB/config.py", 
line 207, in open
     return FileStorage(config.path, **options)
   File 
"/usr/local/lib/python3.5/dist-packages/ZODB-5.3.0-py3.5.egg/ZODB/FileStorage/FileStorage.py", 
line 306, in __init__
     read_only=read_only,
   File 
"/usr/local/lib/python3.5/dist-packages/ZODB-5.3.0-py3.5.egg/ZODB/FileStorage/FileStorage.py", 
line 1619, in read_index
     raise FileStorageFormatError(name)
ZODB.FileStorage.FileStorage.FileStorageFormatError: /var/db/zodb/blogs.fs


Is my ZODB database depending strictly on python2.7 ?

TIA,

Etienne

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.