I have created the database with utf8_bin collation.
The siteconfig_siteconfiguration had a blog instead of text.
Recreated it with the default one (~ latin1) and it was working like a
charm.

Cheers,
Bela

On Jan 27, 6:37 pm, Christian Hammond <[email protected]> wrote:
> I've been unable to duplicate this. This almost looks like an issue internal
> to Django, but I can't be sure what it is.
>
> Can you send me the output of:
>
> SELECT * FROM siteconfig_siteconfiguration\G
>
> from the MySQL command line.
>
> Christian
>
> --
> Christian Hammond - [email protected]
> VMware, Inc.
>
> On Mon, Jan 26, 2009 at 8:52 PM, teki <[email protected]> wrote:
>
> > Empty mysql database, Django-1.0.2_final, Djblets-0.5alpha1,
> > ReviewBoard-1.0alpha1, python 2.5, osx 10.5.
>
> > * Installing the site...
> > Building site directories ... OK
> > Building site configuration files ... OK
> > Creating database ... Creating table django_admin_log
> > Creating table auth_permission
> > Creating table auth_group
> > Creating table auth_user
> > Creating table auth_message
> > Creating table django_content_type
> > Creating table django_site
> > Creating table django_session
> > Creating table siteconfig_siteconfiguration
> > Creating table accounts_reviewrequestvisit
> > Creating table accounts_profile
> > Creating table changedescs_changedescription
> > Creating table diffviewer_filediff
> > Creating table diffviewer_diffset
> > Creating table diffviewer_diffsethistory
> > Creating table reviews_group
> > Creating table reviews_defaultreviewer
> > Creating table reviews_screenshot
> > Creating table reviews_reviewrequest
> > Creating table reviews_reviewrequestdraft
> > Creating table reviews_comment
> > Creating table reviews_screenshotcomment
> > Creating table reviews_review
> > Creating table scmtools_tool
> > Creating table scmtools_repository
> > Creating table django_project_version
> > Creating table django_evolution
> > Installing baseline version
> > Evolutions in diffviewer baseline: add_parent_diffs
> > Evolutions in reviews baseline: change_descriptions
> > Evolutions in scmtools baseline: bugzilla_url_charfield
> > Traceback (most recent call last):
> >  File "/usr/local/bin/rb-site", line 5, in <module>
> >    pkg_resources.run_script('ReviewBoard==1.0alpha1', 'rb-site')
> >  File "/System/Library/Frameworks/Python.framework/Versions/2.5/
> > Extras/lib/python/pkg_resources.py", line 448, in run_script
>
> >  File "/System/Library/Frameworks/Python.framework/Versions/2.5/
> > Extras/lib/python/pkg_resources.py", line 1166, in run_script
> >    script_code = compile(script_text,script_filename,'exec')
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 1231, in <module>
> >    main(sys.argv[1:])
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 1226, in main
> >    command.run()
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 863, in run
> >    self.show_install_status()
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 1085, in show_install_status
> >    site.sync_database)
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 470, in step
> >    func()
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 182, in sync_database
> >    self.run_manage_command("syncdb", ["--noinput"])
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/EGG-INFO/scripts/rb-site", line 220, in run_manage_command
> >    execute_manager(reviewboard.settings, [__file__, cmd] + params)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/__init__.py", line 340, in execute_manager
> >    utility.execute()
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/__init__.py", line 295, in execute
> >    self.fetch_command(subcommand).run_from_argv(self.argv)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/base.py", line 192, in run_from_argv
> >    self.execute(*args, **options.__dict__)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/base.py", line 219, in execute
> >    output = self.handle(*args, **options)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/base.py", line 348, in handle
> >    return self.handle_noargs(**options)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/commands/syncdb.py", line 101, in handle_noargs
> >    emit_post_sync_signal(created_models, verbosity, interactive)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/core/management/sql.py", line 205, in emit_post_sync_signal
> >    interactive=interactive)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/dispatch/dispatcher.py", line 148, in send
> >    response = receiver(signal=self, sender=sender, **named)
> >  File "/Library/Python/2.5/site-packages/ReviewBoard-1.0alpha1-
> > py2.5.egg/reviewboard/admin/management/sites.py", line 24, in
> > init_siteconfig
> >    siteconfig, is_new = SiteConfiguration.objects.get_or_create
> > (site=site)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/manager.py", line 96, in get_or_create
> >    return self.get_query_set().get_or_create(**kwargs)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/query.py", line 332, in get_or_create
> >    return self.get(**kwargs), False
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/query.py", line 304, in get
> >    num = len(clone)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/query.py", line 160, in __len__
> >    self._result_cache = list(self.iterator())
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/query.py", line 280, in iterator
> >    obj = self.model(*row[index_start:])
> >  File "/Library/Python/2.5/site-packages/Djblets-0.5alpha1-py2.5.egg/
> > djblets/siteconfig/models.py", line 54, in __init__
> >    models.Model.__init__(self, *args, **kwargs)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/db/models/base.py", line 266, in __init__
> >    signals.post_init.send(sender=self.__class__, instance=self)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/dispatch/dispatcher.py", line 148, in send
> >    response = receiver(signal=self, sender=sender, **named)
> >  File "/Library/Python/2.5/site-packages/Djblets-0.5alpha1-py2.5.egg/
> > djblets/util/fields.py", line 160, in post_init
> >    value = self.loads(value)
> >  File "/Library/Python/2.5/site-packages/Djblets-0.5alpha1-py2.5.egg/
> > djblets/util/fields.py", line 170, in loads
> >    val = simplejson.loads(s, encoding=settings.DEFAULT_CHARSET)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/__init__.py", line 324, in loads
> >    return cls(encoding=encoding, **kw).decode(s)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/decoder.py", line 321, in decode
> >    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/decoder.py", line 338, in raw_decode
> >    obj, end = self._scanner.iterscan(s, **kw).next()
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/scanner.py", line 53, in iterscan
> >    rval, next_pos = action(m, context)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/decoder.py", line 173, in JSONObject
> >    raise ValueError(errmsg("Expecting property name", s, end))
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/decoder.py", line 37, in errmsg
> >    lineno, colno = linecol(doc, pos)
> >  File "/Library/Python/2.5/site-packages/Django-1.0.2_final-py2.5.egg/
> > django/utils/simplejson/decoder.py", line 28, in linecol
> >    lineno = doc.count('\n', 0, pos) + 1
> > TypeError: count() takes exactly one argument (3 given)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to