wagtail / wagtail-localize

Translation plugin for Wagtail CMS
https://wagtail-localize.org/
Other
222 stars 84 forks source link

wagtail_localize does not seem to work with Wagtail 5.2 #734

Closed wimfeijen closed 10 months ago

wimfeijen commented 10 months ago

After installation of Wagtail 5.2 and running python manage.py shell, I get the following error. I am using wagtail-localize==1.6.

File "[...]/lib/python3.9/site-packages/wagtail_localize/wagtail_hooks.py", line 23, in from .views import ( File "[...]/lib/python3.9/site-packages/wagtail_localize/views/edit_translation.py", line 63, in from wagtail_localize.side_panels import LocalizedPageSidePanels File "[...]/lib/python3.9/site-packages/wagtail_localize/side_panels.py", line 2, in from wagtail.admin.ui.side_panels import PagePreviewSidePanel, PageSidePanels ImportError: cannot import name 'PagePreviewSidePanel' from 'wagtail.admin.ui.side_panels' ([...]/lib/python3.9/site-packages/wagtail/admin/ui/side_panels.py)

(In the above code, I omitted the location of our virtualenv directory and replaced that with [...])

zerolab commented 10 months ago

733 is a start for the compatibility issue

catilgan-nextension commented 10 months ago

See my comment for other issues with wagtail_localize as well: https://github.com/aekong/wagtail-localize/pull/1#issuecomment-1792146516

zerolab commented 10 months ago

I've now opened #735, there is a link to a build with that version and I'd appreciate testing with real projects

wimfeijen commented 10 months ago

Thanks for picking this up so quickly. We will plan testing the update (but it might take us a while).