Re: Python3.5.9 and UnicodeDecodeError in ZODB/fsIndex.py
Etienne Robillard <[email protected]> Wed, 18 Oct 2017 08:23:38 -0400
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Hi Jason, It looks like this tool requires ZODB 3.x. I'm not sure it is compatible with ZODB 5.3.0. Is there any way to export/import the content of a ZODB database using JSON fixtures? Best Regards, Etienne Le 2017-10-18 à 08:13, Jason Madden a écrit : > FileStorages (and in general, ZODB databases) created with Python 2.7 cannot be used under Python 3, and vice versa. > > There is a tool to migrate a Python 2 database to Python 3 that you could try: http://zodbpy3migrate.readthedocs.io/en/latest/ > >> On Oct 18, 2017, at 07:02, Etienne Robillard <[email protected]> wrote: >> >> 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. > -- Etienne Robillard [email protected] http://www.isotopesoftware.ca/ -- 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.