collective / fourdigits.seo

SEO add on for Plone 4
Other
1 stars 0 forks source link

Error on uninstalling #1

Open djowett opened 8 years ago

djowett commented 8 years ago

Unfortunately if I uninstall the product & remove it from buildout, then the next time I run my Plone site I get this:

    2016-05-26 15:37:24 WARNING OFS.Uninstalled Could not import class 'UserDataSchemaProvider' from module 'fourdigits.seo.overrides.userdata'
    2016-05-26 15:37:24 ERROR ZODB.Connection Couldn't load state for 0x2f
    Traceback (most recent call last):
      File "/home/daniel/dev/Plone/buildout-cache-UCS2/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 860, in setstate
        self._setstate(obj)
      File "/home/daniel/dev/Plone/buildout-cache-UCS2/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 914, in _setstate
        self._reader.setGhostState(obj, p)
      File "/home/daniel/dev/Plone/buildout-cache-UCS2/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 612, in setGhostState
        state = self.getState(pickle)
      File "/home/daniel/dev/Plone/buildout-cache-UCS2/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 605, in getState
        return unpickler.load()
      File "/home/daniel/dev/Plone/Development/client438_simplified/lib/python2.7/copy_reg.py", line 48, in _reconstructor
        obj = object.__new__(cls)
    TypeError: ('object.__new__(UserDataSchemaProvider) is not safe, use persistent.Persistent.__new__()', <function _reconstructor at 0x7fe532bc5320>, (<class 'fourdigits.seo.overrides.userdata.UserDataSchemaProvider'>, <type 'object'>, None))
    > /home/daniel/dev/Plone/Development/client438_simplified/lib/python2.7/copy_reg.py(48)_reconstructor()
    -> obj = object.__new__(cls)

The only way to get around this is to keep the product in buildout.

jaroel commented 8 years ago

I don't think we ever uninstalled it :)