Just upgraded to 1.1, can't start development server, TypeError

6 views
Skip to first unread message

eculver

unread,
Oct 14, 2009, 2:18:38 AM10/14/09
to Django users
I just tried upgrade to django 1.1, ran ./manage.py runserver, but was
promptly halted due to this exception:

...

File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/django/utils/translation/trans_real.py", line 180, in
_fetch
app = import_module(appname)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/utils/importlib.py", line 35, in
import_module
__import__(name)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/__init__.py", line 1, in
<module>
from django.contrib.admin.options import ModelAdmin, HORIZONTAL,
VERTICAL
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/options.py", line 5, in
<module>
from django.contrib.contenttypes.models import ContentType
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/contenttypes/models.py", line
1, in <module>
from django.db import models
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/db/__init__.py", line 57, in <module>
'TIME_ZONE': settings.TIME_ZONE,
TypeError: __init__() takes exactly 1 argument (2 given)

Everything worked fine in 1.0.4 before the upgrade. Seems like it may
be an obvious upgrade problem/oversight on my part. Any ideas?

Lakshman Prasad

unread,
Oct 14, 2009, 4:09:18 AM10/14/09
to django...@googlegroups.com
Seems like, some of the apps that you have in settings.py INSTALLED_APPS are there in the pythonpath for python2.5 and not for python2.6.

You will need to do a easy_install-2.6 (or a corresponding pip/distribute equivalent) package_name

eculver

unread,
Oct 14, 2009, 11:11:48 PM10/14/09
to Django users
Not so sure about that. Here are my installed apps:

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'myproject.api',
'myproject.pages',
'myproject.contact_form',
'myproject.albums',
'myproject.paypalcart',
'myproject.messaging',
)

None of them are being pulled from my python path? Am I missing
something obvious?

Evgeny

unread,
Nov 10, 2009, 3:39:58 PM11/10/09
to Django users
Same problem here. Any ideas?
Thanks!

Evgeny

unread,
Nov 10, 2009, 3:57:06 PM11/10/09
to Django users
I think I found a workaround:
first completely delete previous django installation, then install
1.1.1

the problem went away for me after this manipulation.

davenaff

unread,
Jan 1, 2010, 8:05:40 PM1/1/10
to Django users
In my case, I had to remove mysql_replicated as our db backend. We're
no longer using mysql_replicated so I haven't tried to find the source
of the incompatibility, but this was the source of this error message
for us.

eculver

unread,
Jan 25, 2010, 7:49:07 PM1/25/10
to Django users
What worked for me was what Evgeny suggested. I blew away all of my
previous Django install and then proceeded to do the happy dance.
Reply all
Reply to author
Forward
0 new messages