django-cms migration issue on postgresql TypeError while migrating the models in postgresql

24 views
Skip to first unread message

Marutesh Maru

unread,
Apr 19, 2019, 4:37:36 AM4/19/19
to django CMS developers
`django-cms`: When i tried to perform `python manage.py migrate` in postgresql, it is returning a `TypeError` but it is not giving any error in `sqlite3`.

This is my full traceback:

    File "manage.py", line 22, in <module>
        execute_from_command_line(sys.argv)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
        utility.execute()
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
        self.execute(*args, **cmd_options)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
        output = self.handle(*args, **options)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 204, in handle
        fake_initial=fake_initial,
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/db/migrations/executor.py", line 115, in migrate
        state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
        state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
        state = migration.apply(state, schema_editor)
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/cms/migrations/0019_set_pagenode.py", line 68, in apply
        connection.introspection.get_table_description(connection.cursor(), 'cms_page')
      File "/home/vagrant/.virtualenvs/pmvp/lib/python3.6/site-packages/django/db/backends/postgresql/introspection.py", line 87, in get_table_description
        )) for line in cursor.description
      File "/home/vagrant/.virtualenvs/pmvp/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'

Can anyone help me out?

L33 MB

unread,
Apr 27, 2019, 8:49:25 AM4/27/19
to django-cms...@googlegroups.com
Can you use python3 with django 1.1 correctly?

--
Message URL: https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to django-cms-devel...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-cms-devel...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-cms-developers/75713000-0ef8-4e45-aa9e-e55e74a2271f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
MB coming soon

benzkji

unread,
Jun 17, 2019, 9:46:03 AM6/17/19
to django CMS developers
sure you found out, in the meantime...for others coming here: https://github.com/divio/django-cms/issues/6666 

short: pin your psycopg2 version below 2.8.
Reply all
Reply to author
Forward
0 new messages