Last time I checked, mysql.connector hasn't issued a release that's compatible with Django 1.9.
On Monday, February 8, 2016 at 7:37:36 AM UTC-5, Richard la Croix wrote:
-- On Monday, February 8, 2016 at 7:37:36 AM UTC-5, Richard la Croix wrote:
I just upgraded from 1.8.8 to 1.9.2 and using Python version 3.4.3.
The included Django migrations (admin.0002_logentry_remove_auto_add and auth.0007_alter_validators_ add_error_messages) applied succesfully.
The following migration of a model update failed with error:
TypeError: can't multiply sequence by non-int of type 'tuple'
However, the migration actually went thru correctly and is inserted into the 'django_migrations' table.
When I execute 'migrate' again, it responds with 'No migrations to apply.' and then again error message:
TypeError: can't multiply sequence by non-int of type 'tuple'
Anybody had a similar experience or has an idea?
regards,
Richard
Complete traceback:
(MyPyEnv) C:\PycharmProjects\resortinfo>python manage.py migrate
Operations to perform:
Apply all migrations: resorts, sessions, hbase, auth, guardian, contenttypes, admin
Running migrations:
No migrations to apply.
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\MyPyEnv\lib\site-packages\django\core\management\__init_ _.py", line 353, in execute_from_command_line
utility.execute()
File "C:\MyPyEnv\lib\site-packages\django\core\management\__init_ _.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\MyPyEnv\lib\site-packages\django\core\management\base. py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\MyPyEnv\lib\site-packages\django\core\management\base. py", line 399, in execute
output = self.handle(*args, **options)
File "C:\MyPyEnv\lib\site-packages\django\core\management\ commands\migrate.py", line 204, in handle
emit_post_migrate_signal(self.verbosity, self.interactive, connection.alias)
File "C:\MyPyEnv\lib\site-packages\django\core\management\sql.py" , line 50, in emit_post_migrate_signal
using=db)
File "C:\MyPyEnv\lib\site-packages\django\dispatch\dispatcher.py" , line 192, in send
response = receiver(signal=self, sender=sender, **named)
File "C:\MyPyEnv\lib\site-packages\django\contrib\auth\ management\__init__.py", line 126, in create_permissions
Permission.objects.using(using).bulk_create(perms)
File "C:\MyPyEnv\lib\site-packages\django\db\models\query.py", line 450, in bulk_create
self._batched_insert(objs_without_pk, fields, batch_size)
File "C:\MyPyEnv\lib\site-packages\django\db\models\query.py", line 1056, in _batched_insert
using=self.db)
File "C:\MyPyEnv\lib\site-packages\django\db\models\manager.py", line 122, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\MyPyEnv\lib\site-packages\django\db\models\query.py", line 1039, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "C:\MyPyEnv\lib\site-packages\django\db\models\sql\compiler. py", line 1059, in execute_sql
for sql, params in self.as_sql():
File "C:\MyPyEnv\lib\site-packages\django\db\models\sql\compiler. py", line 1047, in as_sql
result.append(self.connection.ops.bulk_insert_sql(fields, placeholder_rows))
File "C:\MyPyEnv\lib\site-packages\mysql\connector\django\ operations.py", line 223, in bulk_insert_sql
return "VALUES " + ", ".join([items_sql] * num_values)
TypeError: can't multiply sequence by non-int of type 'tuple'
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c51f05f-e1a8-414d-a890-f0787faeb513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment