Re: error psycopg in Django/MacOSX

Daniele Varrazzo <[email protected]> Fri, 6 Aug 2010 01:19:32 +0100
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
2010/8/5 Daniel Fran=E7a <[email protected]>:
> I think I found exactly where the error happens and I reproduced it in the
> shell:
>>>> from django.contrib.auth.models import User
>>>> new_user =3D User.objects.create_user("daniel", "[email protected]=
om",
>>>> "daniel")
> Traceback (most recent call last):
...
> DatabaseError: can't adapt type 'US/Eastern'
> it's when I try to create a new user, maybe it has nothing to do with
> psycopg, right?

The error is raised by psycopg, but it is due to some external cause.
I've installed Python 2.7 and easy_installed django 1.2.1 and psycopg
2.2.2: With this setup on Linux I can't reproduce your bug (the user
is created correctly). So the problem seems related to osx or to the
way you have put together your packages.

I can't be more helpful, sorry: I am not an osx user.

-- Daniele