Initialize Database on Centos 5.4 Error
Forum » WikiPBX / Technical Support » Initialize Database on Centos 5.4 Error
Started by: lluisrieralluisriera
On: 1271844182|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
rss icon RSS: New posts
Initialize Database on Centos 5.4 Error
lluisrieralluisriera 1271844182|%e %b %Y, %H:%M %Z|agohover

Hi,

I've followed instructions from Centos Howtos found in this wiki but I'm stucked in the Initialize Databe Step.

In /usr/src/wikipbx/wikipbx I execute python manage.py syncdb and occurs next error:

[root@wikipbx wikipbx]# python manage.py syncdb
/opt/python2.6/lib/python2.6/site-packages/django/core/management.py:12: DeprecationWarning: the sets module is deprecated
from sets import Set as set
/opt/python2.6/lib/python2.6/site-packages/django/contrib/sessions/models.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import base64, md5, random, sys, datetime
Error: Couldn't install apps, because there were errors in one or more models:
wikipbx.wikipbxweb: init() got an unexpected keyword argument 'max_length'
[root@wikipbx wikipbx]#

Any help would be appreciated :-)

Best Regards,

Lluís

Reply  |  Options
Unfold Initialize Database on Centos 5.4 Error by lluisrieralluisriera, 1271844182|%e %b %Y, %H:%M %Z|agohover
Re: Initialize Database on Centos 5.4 Error
stas_shtinstas_shtin 1271845616|%e %b %Y, %H:%M %Z|agohover

Are you installing trunk version of WikiPBX? We're moving to a newer version of Django that is not backwards-compatible to older code. I think that for now it's better to install 0.8 release.

Reply  |  Options
Unfold Re: Initialize Database on Centos 5.4 Error by stas_shtinstas_shtin, 1271845616|%e %b %Y, %H:%M %Z|agohover
Re: Initialize Database on Centos 5.4 Error
lluisrieralluisriera 1271861460|%e %b %Y, %H:%M %Z|agohover

Yes, I've installed 0.8 release and moved some steps forward

thanks

Reply  |  Options
Unfold Re: Initialize Database on Centos 5.4 Error by lluisrieralluisriera, 1271861460|%e %b %Y, %H:%M %Z|agohover
Re: Initialize Database on Centos 5.4 Error
stas_shtinstas_shtin 1271862943|%e %b %Y, %H:%M %Z|agohover

Well, one of the changes in WikiPBX between version 0.8 and trunk is that one of the arguments to Django database models was renamed from maxlength to max_length. As your error message mentions max_length, you have installed trunk of wikipbx which won't work with installation instructions for previous versions. You should be using release version of wikipbx (see 0.8 install guide notes).

Reply  |  Options
Unfold Re: Initialize Database on Centos 5.4 Error by stas_shtinstas_shtin, 1271862943|%e %b %Y, %H:%M %Z|agohover
Re: Initialize Database on Centos 5.4 Error
lluisrieralluisriera 1271865295|%e %b %Y, %H:%M %Z|agohover

Sorry…first I installed trunk then release 0.8, so I've been able to move forward, you're right :-)

Reply  |  Options
Unfold Re: Initialize Database on Centos 5.4 Error by lluisrieralluisriera, 1271865295|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License