Ask Your Question

object.__init__() takes no parameters

asked 2013-10-14 12:49:16 -0600

anshprat gravatar image

updated 2013-10-15 09:11:53 -0600


I am trying to do a build of 0.7.49 in fedora rpm. I get the following error when running setup after the rpm build..

<mock-chroot>[root@apps-fp-oi-00000340 /]# askbot-setup 

Deploying Askbot - Django Q&A forum application
Problems installing? -> please email

To CANCEL - hit Ctr-C at any time

Enter directory path (absolute or relative) to deploy
askbot. To choose current directory - enter "."
> /opt

Please select database engine:
1 - for postgresql, 2 - for sqlite, 3 - for mysql, 4 - oracle (type 1/2/3/4)
> 2
Please enter database file name
> w
Copying files: 
* django.wsgi 
Creating settings file
Traceback (most recent call last):
  File "/usr/bin/askbot-setup", line 9, in <module>
    load_entry_point('askbot==0.7.49', 'console_scripts', 'askbot-setup')()
  File "/usr/lib/python2.7/site-packages/askbot/deployment/", line 126, in askbot_setup
  File "/usr/lib/python2.7/site-packages/askbot/deployment/", line 186, in deploy_askbot
  File "/usr/lib/python2.7/site-packages/askbot/deployment/", line 192, in deploy_into
    settings_contents = SettingsTemplate(context).render()
  File "/usr/lib/python2.7/site-packages/askbot/deployment/", line 13, in __init__
    super(SettingsTemplate, self).__init__(context=context, **kwargs)
TypeError: object.__init__() takes no parameters

The same works fine on epel-6 build.

is it a python2.6 vs 2.7 issue?

reference srpm -

edit retag flag offensive close merge delete


Do you still have this issue? what is your current dependencies libraries version? Could you do a pip freeze and update the question with the result?

Fitoria gravatar imageFitoria ( 2013-10-16 07:46:48 -0600 )edit

It could be that you have previous version of askbot-setup script that is incompatible with the current version of Askbot. Make sure to remove all remnants of the previous version on your system, or better - install into a new virtual environment.

Evgeny gravatar imageEvgeny ( 2013-10-25 14:31:32 -0600 )edit

@Fitoria : sorry, was tied up, will get you a pip freeze. @Evgeny nope, am running it in a fresh chroot, no other installs.

anshprat gravatar imageanshprat ( 2013-10-27 07:40:56 -0600 )edit

<mock-chroot>[root@apps-fp-oi-00000340 /]# pip freeze Babel==1.3 Coffin==0.3.7 Django==1.4.8 IPy==0.75 Jinja2==2.7.1 MarkupSafe==0.18 Pillow==2.2.1 Pygments==1.4 South==0.8.2 Sphinx==1.1.3 Unidecode==0.04.13 akismet==0.2.0 amqp==1.2.1 amqplib==1.0.2 askbot==0.7.49 beautifulsoup4==4.3.1 billiard== chardet==2.0.1 django-appconf==0.6 django-authenticator==0.1.5 django-avatar==2.0a2 django-compressor==1.3 django-countries==1.3 django-extra-form-fields==0.0.1 django-followit==0.0.3 django-keyedcache==1.4-6 django-kombu==0.9.4 django-picklefield==0.3.0 django-recaptcha-works==0.3.4 django-registration==0.8 django-robots==0.8.1 django-threaded-multihost==1.4-1 django-tinymce==1.5.1b4 docutils==0.11 html5lib==1.0b2 httplib2==0.7.7 import-utils==0.0.1 iniparse==0.4 kombu==2.5.14 lockfile==0 ...(more)

anshprat gravatar imageanshprat ( 2013-10-27 08:38:30 -0600 )edit

pyliblzma==0.5.3 pystache==0.5.3 python-daemon==1.6 python-dateutil==1.5 python-openid==2.2.5 python-wordpress-xmlrpc==1.5 pytz==2012d pyxattr==0.5.1 recaptcha-client==1.0.6 rpm-python==4.11.1 sanction==0.1.4 sepolicy==1.1 simplejson==3.2.0 six==1.4.1 urlgrabber==3.9.1 versiontools==1.9.1 wsgiref==0.1.2 yum-metadata-parser==1.1.4

anshprat gravatar imageanshprat ( 2013-10-27 08:38:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-29 14:08:36 -0600

Evgeny gravatar image

In Askbot pystache dependency version is frozen at 0.3.1, you have a later version, this must be the problem. Please ask maintainer of the fedora rpm to fix this.

You might obtain more reproducible result when installing Askbot via virtualenv and the python methods ("pip install" or "python develop").

edit flag offensive delete link more


hi, the problem is pystache 0.3.1 is outdated and deprecated for latest fedora. Present stable pystache is 0.5.3-2 for fedora. I will see if I can patch askbot to work with the the newer pystache. Any specific reason to freeze the version?

anshprat gravatar imageanshprat ( 2013-11-10 03:56:59 -0600 )edit

No specific reason, if you make a patch that works I will merge it. Thank you.

Evgeny gravatar imageEvgeny ( 2013-11-10 04:06:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-10-14 12:49:16 -0600

Seen: 843 times

Last updated: Oct 29 '13