Problems running migrations

139 views
Skip to first unread message

John

unread,
Mar 23, 2012, 7:28:20 AM3/23/12
to Merengue Developers
Running migrations for collab:
- Nothing to migrate.
- Loading initial data for collab.
Installed 9 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "manage.py", line 70, in <module>
execute_manager(settings)
File "/home/john/workspace/hive_online/hiveonline/merengue/base/
management/__init__.py", line 166, in execute_manager
utility.execute()
File "/home/john/workspace/hive_online/hiveonline/merengue/base/
management/__init__.py", line 144, in execute
command.run_from_argv(self.argv)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/core/management/base.py", line 191, in
run_from_argv
self.execute(*args, **options.__dict__)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/south/management/commands/migrate.py", line 105, in
handle
ignore_ghosts = ignore_ghosts,
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/south/migration/__init__.py", line 205, in migrate_app
post_migrate.send(None, app=app_label)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/john/workspace/hive_online/hiveonline/merengue/base/
models.py", line 865, in post_migrate_handler
enable_active_plugins()
File "/home/john/workspace/hive_online/hiveonline/merengue/pluggable/
__init__.py", line 173, in enable_active_plugins
from merengue.pluggable.utils import enable_plugin,
get_plugin_module_name, reload_models_cache
File "/home/john/workspace/hive_online/hiveonline/merengue/pluggable/
utils.py", line 734, in <module>
from merengue.section.admin import register as register_section
File "/home/john/workspace/hive_online/hiveonline/merengue/section/
admin.py", line 33, in <module>
from merengue.section.forms import MenuAdminModelForm
File "/home/john/workspace/hive_online/hiveonline/merengue/section/
forms.py", line 29, in <module>
class DocumentSectionForm(forms.ModelForm):
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/forms/models.py", line 205, in __new__
opts.exclude, opts.widgets, formfield_callback)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/forms/models.py", line 159, in fields_for_model
formfield = f.formfield(**kwargs)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/db/models/fields/__init__.py", line 1037, in
formfield
return super(TextField, self).formfield(**defaults)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/db/models/fields/__init__.py", line 420, in
formfield
defaults = {'required': not self.blank, 'label':
capfirst(self.verbose_name), 'help_text': self.help_text}
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/utils/functional.py", line 259, in wrapper
return func(*args, **kwargs)
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/utils/text.py", line 8, in <lambda>
capfirst = lambda x: x and force_unicode(x)[0].upper() +
force_unicode(x)[1:]
File "/home/john/workspace/virtual/hive_online27/local/lib/python2.7/
site-packages/django/utils/encoding.py", line 93, in force_unicode
raise DjangoUnicodeDecodeError(s, *e.args)
django.utils.encoding.DjangoUnicodeDecodeError: 'ascii' codec can't
decode byte 0xc3 in position 4: ordinal not in range(128). You passed
in <transmeta.LazyString object at 0x2f24090> (<class
'transmeta.LazyString'>)


This is a clean install

any pointers please

yvess

unread,
Mar 27, 2012, 10:57:35 AM3/27/12
to merengue-...@googlegroups.com
I have the same error. Tested it with sqlite and postgres. 
Clean install on Mac OS X Lion, Python 2.6, virtualenv enviroment. 

yves

Manuel Saelices

unread,
Mar 27, 2012, 12:33:19 PM3/27/12
to merengue-...@googlegroups.com
Hello,

I cannot reproduce the error.

Could you put a import pdb; pdb.set_trace() in the /home/john/workspace/virtual/
hive_online27/local/lib/python2.7/
site-packages/django/db/models/fields/__init__.py file and tell me what is the self.verbose_name to point me what is the field which produces a encoding error?

Thank you for the report.

Regards,
Manuel Saelices.

2012/3/23 John <youvej...@gmail.com>



--
Manuel Saelices
msae...@yaco.es

Yaco Sistemas
http://www.yaco.es/
C/ Rioja 5, 41004 Sevilla
Móvil    +34 606 039 750
Teléfono +34 954 500 057
Fax      +34 954 500 929

Perseo

unread,
Apr 5, 2012, 10:02:41 PM4/5/12
to Merengue Developers
Hello, I also had the same problem when migrating, I've tried several
times, either with: sudo easy_install merengue or the installation of
subversion in a clean install and following all the steps of the
installation

perseo@perseo-desktop:~/desdelinux$ python manage.py syncdb
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table cmsutils_parameter
Creating table tagging_tag
Creating table tagging_taggeditem
Creating table thumbnail_kvstore
Creating table tinyimages_tinyimage
Creating table tinyimages_tinyfile
Creating table rating_vote
Creating table captcha_captcha
Creating table south_migrationhistory
Creating table threadedcomments_threadedcomment
Creating table threadedcomments_freethreadedcomment
Creating table threadedcomments_testmodel
Creating table oot_writertemplate
Creating table oembed_providerrule
Creating table oembed_storedoembed
Creating table notification_noticetype
Creating table notification_noticesetting
Creating table notification_notice
Creating table notification_noticequeuebatch
Creating table notification_observeditem
Creating table announcements_announcement
Creating table themes_theme
Creating table action_registeredaction

You just installed Django's auth system, which means you don't have
any superusers defined.
Would you like to create one now? (yes/no): no
Installing custom SQL ...
Installing indexes ...
Installed 61 object(s) from 1 fixture(s)

Synced:

> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.admin
> django_extensions
> debug_toolbar
> cmsutils
> transhette
> tagging
> sorl.thumbnail
> pagination
> mptt
> tinyimages
> rating
> captcha
> south
> threadedcomments
> johnny
> oot
> oembed
> ajax_select
> notification
> announcements
> merengue.theming
> merengue.action
> website

Not synced (use migrations):
- autoreports
- merengue.registry
- merengue.pluggable
- merengue.multimedia
- merengue.perms
- merengue.workflow
- merengue.base
- merengue.section
- merengue.block
- merengue.viewlet
- merengue.portal
- merengue.collection
- merengue.review
- merengue.collab
(use ./manage.py migrate to migrate these)


Everything is great I write to:

python manage.py migrate

The error I get is:


perseo@perseo-desktop:~/desdelinux$ python manage.py migrate
Running migrations for autoreports:
- Migrating forwards to
0002_auto__del_field_report_report_filter_fields__del_field_report_advanced.
> autoreports:0001_initial
> autoreports:
0002_auto__del_field_report_report_filter_fields__del_field_report_advanced
- Loading initial data for autoreports.
No fixtures found.
Running migrations for portal:
- Migrating forwards to 0004_add_field_portallink_visible_by_roles.
> portal:0001_initial
> portal:0002_auto__add_field_portallink_slug
> portal:0003_auto__add_field_portallink_image
> portal:0004_add_field_portallink_visible_by_roles
- Loading initial data for portal.
No fixtures found.
Running migrations for collection:
- Migrating forwards to 0007_chg_field_collection_limit.
> collection:0001_initial
> collection:
0002_auto__add_field_collectiondisplayfield_show_label__add_field_collectio
> collection:0003_auto__add_collectiondisplayfieldfilter
> collection:0004_auto__add_field_collection_filtering_section
> collection:
0005_auto__add_feedcollection__add_feeditem__add_field_collectiondisplayfie
> collection:0006_auto__add_field_collection_limit
> collection:0007_chg_field_collection_limit
- Loading initial data for collection.
No fixtures found.
Running migrations for review:
- Migrating forwards to 0002_auto__del_field_reviewtask_assigned_to.
> review:0001_initial
> review:0002_auto__del_field_reviewtask_assigned_to
- Loading initial data for review.
No fixtures found.
Running migrations for collab:
- Migrating forwards to 0002_transmeta_fields.
> collab:0001_initial
> collab:0002_transmeta_fields
- Loading initial data for collab.
Installed 9 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "manage.py", line 70, in <module>
execute_manager(settings)
File "/home/perseo/desdelinux/merengue/base/management/__init__.py",
line 166, in execute_manager
utility.execute()
File "/home/perseo/desdelinux/merengue/base/management/__init__.py",
line 144, in execute
command.run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/
south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/
south/migration/__init__.py", line 194, in migrate_app
post_migrate.send(None, app=app_label)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/perseo/desdelinux/merengue/base/models.py", line 865, in
post_migrate_handler
enable_active_plugins()
File "/home/perseo/desdelinux/merengue/pluggable/__init__.py", line
173, in enable_active_plugins
from merengue.pluggable.utils import enable_plugin,
get_plugin_module_name, reload_models_cache
File "/home/perseo/desdelinux/merengue/pluggable/utils.py", line
734, in <module>
from merengue.section.admin import register as register_section
File "/home/perseo/desdelinux/merengue/section/admin.py", line 33,
in <module>
from merengue.section.forms import MenuAdminModelForm
File "/home/perseo/desdelinux/merengue/section/forms.py", line 29,
in <module>
class DocumentSectionForm(forms.ModelForm):
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/forms/models.py", line 205, in __new__
opts.exclude, opts.widgets, formfield_callback)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/forms/models.py", line 159, in fields_for_model
formfield = f.formfield(**kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/fields/__init__.py", line 1037, in formfield
return super(TextField, self).formfield(**defaults)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/fields/__init__.py", line 420, in formfield
defaults = {'required': not self.blank, 'label':
capfirst(self.verbose_name), 'help_text': self.help_text}
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/utils/functional.py", line 259, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/utils/text.py", line 8, in <lambda>
capfirst = lambda x: x and force_unicode(x)[0].upper() +
force_unicode(x)[1:]
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/utils/encoding.py", line 93, in force_unicode
raise DjangoUnicodeDecodeError(s, *e.args)
django.utils.encoding.DjangoUnicodeDecodeError: 'ascii' codec can't
decode byte 0xc3 in position 4: ordinal not in range(128). You passed
in <transmeta.LazyString object at 0x9d2a66c> (<class
'transmeta.LazyString'>)

Due to this error I could not continue the proof of CMS :(. I am using
sqlite3 as database manager and I tested with Ubuntu 10.04 (i686) and
Kubuntu 12.04 (i686) both in virtualbox, I wanted to try the cms
before using it in my production team (Kubuntu 11.10 (i686)) :P

If you need more information of the error or my team, please just
notify. Greetings and sorry for my translation made ​​by google
translate.

Running migrations for autoreports:
- Migrating forwards to
0002_auto__del_field_report_report_filter_fields__del_field_report_advanced.
> autoreports:0001_initial
> autoreports:
0002_auto__del_field_report_report_filter_fields__del_field_report_advanced
- Loading initial data for autoreports.
No fixtures found.
Running migrations for registry:
- Migrating forwards to 0004_add_traceback_field.
> registry:0001_initial
> registry:0002_add_order_to_registry
> registry:0003_auto__add_field_registereditem_broken
> registry:0004_add_traceback_field
- Loading initial data for registry.
No fixtures found.
Running migrations for pluggable:
- Migrating forwards to 0002_new_meta_info_field.
> pluggable:0001_initial
> pluggable:0002_new_meta_info_field
- Loading initial data for pluggable.
No fixtures found.
Running migrations for multimedia:
- Migrating forwards to 0003_update_oembed_rules.
> multimedia:0001_initial
> multimedia:0002_create_file_models
> multimedia:0003_update_oembed_rules
- Loading initial data for multimedia.
No fixtures found.
Running migrations for perms:
- Migrating forwards to 0017_add_cache_perms.
> base:0001_initial
> perms:0001_initial
> workflow:0001_initial
> perms:0002_auto__chg_field_objectpermission_content
> perms:0003_adding_perms
> perms:0004_adding_manage_plugin_content
> perms:0005_adding_manage_plugin_content
> perms:0006_adding_slug_to_perms_role_step0
> perms:0007_adding_slug_to_perms_role_step1
> perms:0008_adding_slug_to_perms_role_step2
> perms:0009_adding_role_anonymoususer
> perms:0010_add_contenttypes_to_default_perms
> perms:0011_adding_perms
> perms:
0012_auto__add_unique_objectpermission_content_role_permission
> perms:0013_auto__add_accessrequest
> perms:0014_auto__add_field_accessrequest_permission
> perms:
0015_auto__add_field_accessrequest_state__add_field_accessrequest_is_done
> perms:0016_auto
> perms:0017_add_cache_perms
- Loading initial data for perms.
Installed 20 object(s) from 1 fixture(s)
Running migrations for workflow:
- Nothing to migrate.
- Loading initial data for workflow.
Installed 1 object(s) from 1 fixture(s)
Running migrations for base:
- Migrating forwards to 0019_add_contenttypes_to_default_perms.
> base:0002_metadesc
> base:0003_commentable
> base:0004_meta_desc
> base:0005_unique_slug
> base:0006_auto__del_field_basecontent_is_autolocated
> base:0007_mark_portal_migration_as_done_if_needed
> base:
0008_auto__add_field_basecontent_name_es__add_field_basecontent_name_en__ad
> base:0009_add_adquire_global_permissions_field
> base:0010_add_no_changeable_fields
> base:0011_add_cached_plain_text_fields
> base:0011_add_field_contactinfo_name
> base:0012_add_has_related_blocks_field
> base:0013_add_basecontent_ordering
> base:0014_add_workflow_state_field
> base:0015_unset_default_adquire_global_permissions
> base:0016_add_field_basecontent_participants
> base:0017_remove_unique_constraint_in_slugs
> base:0018_set_again_default_adquire_global_permissions
> base:0019_add_contenttypes_to_default_perms
- Loading initial data for base.
No fixtures found.
Running migrations for section:
- Migrating forwards to 0023_add_visible_by_roles_m2m.
> section:0001_initial
> section:0002_create_document_section
> section:0003_remove_videos_field_to_document
> section:0004_add_order_basesection
> section:0005_drop_uniqueness_in_contentlink
> section:0006_add_order_to_section_contents
> section:0007_document_section_blank
> section:
0008_auto__add_viewletlink__del_field_basesection_main_menu_template__del_f
> section:0009_auto__del_carousel__del_field_document_carousel
> section:0010_auto__del_field_document_photo
> section:0012_fix_menu_slugs
> section:0013_auto__add_field_customstyle_css_chunk
> section:0014_add_custom_style_images
> section:0015_set_nullable_customstyle_css_chunk
> section:0016_section_as_base_content_step1
> section:0017_section_as_base_content_step2
> section:0018_section_as_base_content_step3
> section:0019_add_abs_link_target_and_class
> section:0020_del_permanent_field
> section:0021_add_field_menu_help_text
> section:0022_add_menu_status
> section:0023_add_visible_by_roles_m2m
- Loading initial data for section.
Installed 9 object(s) from 1 fixture(s)
Running migrations for block:
- Migrating forwards to
0011_auto__chg_field_registeredblock_cache_timeout.
> block:0001_initial
> block:
0002_add_field_registeredblock_shown_in_urls_and_hidden_in_urls
> block:0003_auto__add_blockcontentrelation
> block:0004_add_field_blockcontentrelation_config
> block:0005_add_fields_blockcontentrelation_overwrite
> block:
0006_auto__del_blockcontentrelation__add_field_registeredblock_content__add
> block:0007_add_field_registeredblock_is_fixed
> block:0008_add_fixed_place
> block:0009_add_cache_fields_registeredblock
> block:0010_update_portallinkblocks
> block:0011_auto__chg_field_registeredblock_cache_timeout
- Loading initial data for block.
No fixtures found.
Running migrations for viewlet:
- Migrating forwards to 0002_add_viewletlink.
> viewlet:0001_initial
> viewlet:0002_add_viewletlink
- Loading initial data for viewlet.
No fixtures found.
Running migrations for portal:
- Migrating forwards to 0004_add_field_portallink_visible_by_roles.
> portal:0001_initial
> portal:0002_auto__add_field_portallink_slug
> portal:0003_auto__add_field_portallink_image
> portal:0004_add_field_portallink_visible_by_roles
- Loading initial data for portal.
No fixtures found.
Running migrations for collection:
- Migrating forwards to 0007_chg_field_collection_limit.
> collection:0001_initial
> collection:
0002_auto__add_field_collectiondisplayfield_show_label__add_field_collectio
> collection:0003_auto__add_collectiondisplayfieldfilter
> collection:0004_auto__add_field_collection_filtering_section
> collection:
0005_auto__add_feedcollection__add_feeditem__add_field_collectiondisplayfie
> collection:0006_auto__add_field_collection_limit
> collection:0007_chg_field_collection_limit
- Loading initial data for collection.
No fixtures found.
Running migrations for review:
- Migrating forwards to 0002_auto__del_field_reviewtask_assigned_to.
> review:0001_initial
> review:0002_auto__del_field_reviewtask_assigned_to
- Loading initial data for review.
No fixtures found.
Running migrations for collab:
- Migrating forwards to 0002_transmeta_fields.
> collab:0001_initial
> collab:0002_transmeta_fields
- Loading initial data for collab.
Installed 9 object(s) from 1 fixture(s)
Traceback (most recent call last):
File "manage.py", line 70, in <module>
execute_manager(settings)
File "/home/perseo/desdelinux/merengue/base/management/__init__.py",
line 166, in execute_manager
utility.execute()
File "/home/perseo/desdelinux/merengue/base/management/__init__.py",
line 144, in execute
command.run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/
south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg/
south/migration/__init__.py", line 194, in migrate_app
post_migrate.send(None, app=app_label)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/perseo/desdelinux/merengue/base/models.py", line 865, in
post_migrate_handler
enable_active_plugins()
File "/home/perseo/desdelinux/merengue/pluggable/__init__.py", line
173, in enable_active_plugins
from merengue.pluggable.utils import enable_plugin,
get_plugin_module_name, reload_models_cache
File "/home/perseo/desdelinux/merengue/pluggable/utils.py", line
734, in <module>
from merengue.section.admin import register as register

On 27 mar, 11:33, Manuel Saelices <msaeli...@yaco.es> wrote:
> Hello,
>
> I cannot reproduce the error.
>
> Could you put a import pdb; pdb.set_trace() in the
> /home/john/workspace/virtual/
> hive_online27/local/lib/python2.7/
> site-packages/django/db/models/fields/__init__.py file and tell me what is
> the self.verbose_name to point me what is the field which produces a
> encoding error?
>
> Thank you for the report.
>
> Regards,
> Manuel Saelices.
>
> 2012/3/23 John <youvejustl...@gmail.com>
> Manuel Saelicesmsaeli...@yaco.es
>
> Yaco Sistemashttp://www.yaco.es/

Manuel Saelices

unread,
Apr 9, 2012, 3:19:56 AM4/9/12
to merengue-...@googlegroups.com
Finally I worked out that was due to the last 0.6.7 transmeta version.

There are two ways to fix the error:
 1. Install dowgrade the transmeta to 0.6.6 version: pip install django-transmeta==0.6.6 or easy_install django-transmeta==0.6.6
 2. Install Merengue 0.8.2, which fix this error.

Regards,
Manuel Saelices.


2012/4/6 Perseo <icaro....@gmail.com>



--
Manuel Saelices
msae...@yaco.es

Yaco Sistemas

John

unread,
Aug 28, 2012, 1:25:04 PM8/28/12
to merengue-...@googlegroups.com
Thanks for information. I'll give it a try later
Reply all
Reply to author
Forward
0 new messages