I've had the same problem on my Mac just now.
It seems like this is an issue with django-timezones

Try to install dev version from here:
pip install -e 
git://github.com/brosner/django-timezones.git#egg=django-timezones

Andrew

On Aug 9, 1:40 pm, Daniel França <daniel.fra...@gmail.com> wrote:
> Thanx for all the help,
> I tried to run on Sqlite3, and I don't if it's bad or good news, but there's
> error even in Sqlite3
>
> just when I tried to create the db (syncdb) I get just after I input my
> users data or when I try to create a user in shell:
> Traceback (most recent call last):
>   File "manage.py", line 31, in <module>
>     execute_from_command_line()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/__init__.py",
> line 429, in execute_from_command_line
>     utility.execute()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/__init__.py",
> line 379, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/base.py",
> line 191, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/base.py",
> line 218, in execute
>     output = self.handle(*args, **options)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/base.py",
> line 347, in handle
>     return self.handle_noargs(**options)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/commands/syncdb.py",
> line 103, in handle_noargs
>     emit_post_sync_signal(created_models, verbosity, interactive, db)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/sql.py",
> line 185, in emit_post_sync_signal
>     interactive=interactive, db=db)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/dispatch/dispatcher.py",
> line 162, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/contrib/auth/management/__init__.py",
> line 44, in create_superuser
>     call_command("createsuperuser", interactive=True)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/__init__.py",
> line 166, in call_command
>     return klass.execute(*args, **defaults)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/core/management/base.py",
> line 218, in execute
>     output = self.handle(*args, **options)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/contrib/auth/management/commands/createsuperuser.py",
> line 134, in handle
>     User.objects.create_superuser(username, email, password)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/contrib/auth/models.py",
> line 133, in create_superuser
>     u = self.create_user(username, email, password)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/contrib/auth/models.py",
> line 129, in create_user
>     user.save(using=self._db)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/base.py",
> line 435, in save
>     self.save_base(using=using, force_insert=force_insert,
> force_update=force_update)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/base.py",
> line 543, in save_base
>     created=(not record_exists), raw=raw)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/dispatch/dispatcher.py",
> line 162, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File
> "/Users/danielfranca/workspace/django/view/tint/apps/account/models.py",
> line 61, in create_account
>     account, created =
> Account.objects.get_or_create(user=instance,timezone='America/Sao_Paulo')
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/manager.py",
> line 135, in get_or_create
>     return self.get_query_set().get_or_create(**kwargs)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 366, in get_or_create
>     return self.get(**kwargs), False
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 336, in get
>     num = len(clone)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 81, in __len__
>     self._result_cache = list(self.iterator())
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 269, in iterator
>     for row in compiler.results_iter():
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/sql/compiler.py",
> line 672, in results_iter
>     for rows in self.execute_sql(MULTI):
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/sql/compiler.py",
> line 727, in execute_sql
>     cursor.execute(sql, params)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/backends/util.py",
> line 15, in execute
>     return self.cursor.execute(sql, params)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/backends/sqlite3/base.py",
> line 200, in execute
>     return Database.Cursor.execute(self, query, params)
> sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported
> type.
>
> I don't know if has something todo, but my Mac OSX is is english, and my
> timezone is São Paulo - Brazil.
>
> Daniel-Francas-MacBook-Pro:tint danielfranca$ python manage.py shell
> 2.7 (r27:82508, Jul  3 2010, 20:17:05)
> [GCC 4.0.1 (Apple Inc. build 5493)]
> Python 2.7 (r27:82508, Jul  3 2010, 20:17:05)
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)>>> from django.contrib.auth.models import User
> >>> new_user = create_user('teste','te...@gmail.com','teste')
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
> NameError: name 'create_user' is not defined>>> new_user = 
> User.objects.create_user('teste','te...@gmail.com','teste')
>
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/contrib/auth/models.py",
> line 129, in create_user
>     user.save(using=self._db)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/base.py",
> line 435, in save
>     self.save_base(using=using, force_insert=force_insert,
> force_update=force_update)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/base.py",
> line 543, in save_base
>     created=(not record_exists), raw=raw)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/dispatch/dispatcher.py",
> line 162, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File
> "/Users/danielfranca/workspace/django/view/tint/apps/account/models.py",
> line 61, in create_account
>     account, created =
> Account.objects.get_or_create(user=instance,timezone='America/Sao_Paulo')
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/manager.py",
> line 135, in get_or_create
>     return self.get_query_set().get_or_create(**kwargs)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 366, in get_or_create
>     return self.get(**kwargs), False
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 336, in get
>     num = len(clone)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 81, in __len__
>     self._result_cache = list(self.iterator())
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/query.py",
> line 269, in iterator
>     for row in compiler.results_iter():
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/sql/compiler.py",
> line 672, in results_iter
>     for rows in self.execute_sql(MULTI):
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/models/sql/compiler.py",
> line 727, in execute_sql
>     cursor.execute(sql, params)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/backends/util.py",
> line 15, in execute
>     return self.cursor.execute(sql, params)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packa 
> ges/django/db/backends/sqlite3/base.py",
> line 200, in execute
>     return Database.Cursor.execute(self, query, params)
> InterfaceError: Error binding parameter 0 - probably unsupported type.
>
> On Mon, Aug 9, 2010 at 10:53 AM, Russell Keith-Magee <
>
>
>
> russ...@keith-magee.com> wrote:
> > I use PostgreSQL on my Mac as well as MySQL, and I've had many fewer
> > problems with PostgreSQL than I've had with MySQL.
>
> > My personal opinion: Ignore all the ports/fink stuff, and get a good
> > native PostgreSQL install:
>
> >http://postgresqlformac.com
>
> > The 8.4.3 installer has some known problems (easy to fix if you know
> > what they are, but easier to avoid if this is your first time), but
> > other than that, this is a pretty reliable source of installers and
> > native tools. Once you've got the database installed, psycopg2
> > installs from source fairly cleanly.
>
> > Yours,
> > Russ Magee %-)
>
> > On 8/9/10, lukaszb <lukaszbalcer...@gmail.com> wrote:
> > > I haven't read all the comments here but if you've just started
> > > working on osx you should definitely check out
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to