Psycopg 2.8 has just been released and breaks compatibility in django CMS.
When building a project with latest django CMS the build should succeed.
When building a project with latest django CMS the build is failing.
The issue has been resolved for 3.4, 3.5 and 3.6 on Divio Cloud. Manually pinning psycopg<2.8 will fix the issue in a project.
To be more precise, I stumbled across this error as well.
It happens during this migration:
Applying cms.0019_set_pagenode...
line 68, in apply
connection.introspection.get_table_description(connection.cursor(), 'cms_page')
File "lib/python3.6/site-packages/django/db/backends/postgresql/introspection.py", line 87, in get_table_description
)) for line in cursor.description
File "lib/python3.6/site-packages/django/db/backends/postgresql/introspection.py", line 87, in <listcomp>
)) for line in cursor.description
TypeError: sequence index must be integer, not 'slice'
I confirm that this behaviour happens, pinning<2.8 'workarounds', but having 2 years after the last major release, I thing that the migrations should be fixed in order to support the new version.
The same behaviour.
Thanks for submitting issue.
Same here too. Is there any workaround ?
As we already said:
Pin psycopg2==2.7.7 in your requirement.txt and run a pip install
psycopg2==2.7.7
El jue., 11 abr. 2019 20:02, v582ijay notifications@github.com escribió:
Same here too. Is there any workaround ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/divio/django-cms/issues/6666#issuecomment-482229061,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKi19fbXQ2LZCHVDaQnf5fYCjN48udfks5vf3iigaJpZM4cdE6A
.
Same here.
Just FYI this is a Django bug solved in 2.2+ only (see https://code.djangoproject.com/ticket/30331)
The only solution (documented by django itself) for 2.1 and below is using psycopg2 2.7.x as reported here. There is no available fix in django CMS
Closing as < Django 2.2 is no longer supported. Resolved in Django 2.2+
Most helpful comment
Just FYI this is a Django bug solved in 2.2+ only (see https://code.djangoproject.com/ticket/30331)
The only solution (documented by django itself) for 2.1 and below is using psycopg2 2.7.x as reported here. There is no available fix in django CMS