Is it possible to Migrate addons from plone 4 to plone 6

Is there any way to migrate a plone 4 compatible to plone 6 as of now i am installing "collective.googleauthenticator" to Plone 6 .

after adding this to my addons i am getting this error>>

ImportError: cannot import name 'IPossibleSite' from 'zope.location.interfaces' (/home/user/Plone-dev/plone6/eggs/zope.location-4.3-py3.9.egg/zope/location/interfaces.py)

sys:1: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 8080)>

Midhlaj Nk via Plone Community wrote at 2022-12-30 10:30 +0000:

Is there any way to migrate a plone 4 compatible to plone 6 as of now i am installing "collective.googleauthenticator" to Plone 6 .

after adding this to my addons i am getting this error>>

ImportError: cannot import name 'IPossibleSite' from 'zope.location.interfaces' (/home/user/Plone-dev/plone6/eggs/zope.location-4.3-py3.9.egg/zope/location/interfaces.py)

IPossibleSite is defined in zope.component.interfaces
(no longer zope.location.interfaces).

so how to fix it ?

Midhlaj Nk via Plone Community wrote at 2023-1-2 03:51 +0000:

so how to fix it ?

You check whether there is a newer addon version -- compatible with the
Plone version you would like to use. If this is the case,
you "pin" this version in your buildout configuration.

If this is not the case, you could contact the addon auther
and ask him/her about the support plan and roadmap.
If you are satisfied by the answer, you can wait.
Otherwise, you could try to fix the code yourself (or hire
someone who does it for you).

1 Like