What steps will reproduce the problem?
1.Get source from trunk
2.run manage.py syncdb
3.run manage.py load_arcade_games
What is the expected output? What do you see instead?
error:
================================================================================
Downloading and processing game feeds. This may take a while.
Processing Mochi Games feed...
Traceback (most recent call last):
File "manage.py", line 19, in <module>
execute_manager(settings)
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
340, in execute_manager
utility.execute()
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 77, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 96, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 178, in handle
return self.handle_noargs(**options)
File
"/home/kapa/workspace/pinax/external_apps/arcade/management/commands/load_arcade
_games.py",
line 9, in handle_noargs
daily_cron.import_all()
File
"/home/kapa/workspace/pinax/external_apps/arcade/scripts/daily_cron.py",
line 66, in import_all
feed_run()
File
"/home/kapa/workspace/pinax/external_apps/arcade/scripts/daily_cron.py",
line 58, in feed_run
updated, added = process_feed(feed.feed_type, games)
File
"/home/kapa/workspace/pinax/external_apps/arcade/scripts/daily_cron.py",
line 47, in process_feed
adapter.postprocess(game)
File "/home/kapa/workspace/pinax/external_apps/arcade/adapters/mochi.py",
line 56, in postprocess
game.tags = game.game_tags
File "/home/kapa/workspace/pinax/external_apps/tagging/managers.py", line
65, in __set__
Tag.objects.update_tags(instance, value)
File "/home/kapa/workspace/pinax/external_apps/tagging/models.py", line
55, in update_tags
TaggedItem._default_manager.create(tag=tag, object=obj)
File "/usr/lib/python2.5/site-packages/django/db/models/manager.py", line
99, in create
return self.get_query_set().create(**kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line
313, in create
obj.save(force_insert=True)
File "/usr/lib/python2.5/site-packages/django/db/models/base.py", line
307, in save
self.save_base(force_insert=force_insert, force_update=force_update)
File "/usr/lib/python2.5/site-packages/django/db/models/base.py", line
379, in save_base
result = manager._insert(values, return_id=update_pk)
File "/usr/lib/python2.5/site-packages/django/db/models/manager.py", line
138, in _insert
return insert_query(self.model, values, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py", line
888, in insert_query
return query.execute_sql(return_id)
File
"/usr/lib/python2.5/site-packages/django/db/models/sql/subqueries.py", line
308, in execute_sql
cursor = super(InsertQuery, self).execute_sql(None)
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py",
line 1723, in execute_sql
cursor.execute(sql, params)
File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", line
19, in execute
return self.cursor.execute(sql, params)
File
"/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py", line
167, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.IntegrityError: columns tag_id, content_type_id, object_id are not
unique
What version of the product are you using? On what operating system?
trunk
Please provide any additional information below.
Original issue reported on code.google.com by grzegorz...@gmail.com on 30 Sep 2008 at 12:49
Original issue reported on code.google.com by
grzegorz...@gmail.com
on 30 Sep 2008 at 12:49