Error in migration: askbot:0127_save_category_tree_as_json

asked 2013-05-17 23:07:06 -0600

kporangehat gravatar image

Doing an initial install from the github devel repo as a new project, I'm trying to run the initial migrations. It gets to 0127 and dies

Database is Postgres 9.2.

$ python migrate askbot

And here's what I'm getting:

 > askbot:0120_auto__add_field_groupprofile_moderate_email__add_field_postrevision_em
 > askbot:0121_auto__add_field_groupprofile_is_open__add_field_groupprofile_preapprov
 > askbot:0122_auth_user__add_subscribed_tag_field
 > askbot:0123_setup_postgres_user_search
 > askbot:0124_auto__add_field_post_is_private__add_field_replyaddress_reply_action
 > askbot:0125_add_show_tags_field_to_user
 > askbot:0126_add_field__auth_user__is_fake
 > askbot:0127_save_category_tree_as_json
Error in migration: askbot:0127_save_category_tree_as_json
DoesNotExist: Setting matching query does not exist. Lookup parameters were {'key': 'CATEGORY_TREE'}
edit retag flag offensive close merge delete


Please try "python migrate askbot 0127 --fake" then repeat your command. I will look into this issue tomorrow.

Evgeny gravatar imageEvgeny ( 2013-05-17 23:09:28 -0600 )edit

Thanks! That worked and the rest of the migrations completed without complaint.

kporangehat gravatar imagekporangehat ( 2013-05-17 23:11:54 -0600 )edit

FYI, this came up on django 1.5.1. I've since rolled back to 1.4.5 and did not encounter this issue.

kporangehat gravatar imagekporangehat ( 2013-05-22 00:33:38 -0600 )edit

I had similar problem and fixed it with replacing CATEGORY_TREE with its valuse from settings like: CATEGORY_TREE = '[["dummy",[]]]'

wdmytriy gravatar imagewdmytriy ( 2013-12-20 04:28:43 -0600 )edit