First time here? Check out the FAQ!
0

object.__init__() takes no parameters
 

hi,

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 admin@askbot.org

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: 
* __init__.py 
* manage.py 
* urls.py 
* 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/__init__.py", line 126, in askbot_setup
    deploy_askbot(options_dict)
  File "/usr/lib/python2.7/site-packages/askbot/deployment/__init__.py", line 186, in deploy_askbot
    context=options
  File "/usr/lib/python2.7/site-packages/askbot/deployment/path_utils.py", line 192, in deploy_into
    settings_contents = SettingsTemplate(context).render()
  File "/usr/lib/python2.7/site-packages/askbot/deployment/template_loader.py", 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 - http://koji.fedoraproject.org/koji/taskinfo?taskID=6059424

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anshprat's avatar
46
anshprat
asked 11 years ago, updated 11 years ago

Comments

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's avatar Fitoria (11 years ago)

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's avatar Evgeny (11 years ago)

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

anshprat's avatar anshprat (11 years ago)

<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==2.7.3.32 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's avatar anshprat (11 years ago)

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's avatar anshprat (11 years ago)
see more comments

1 Answer

0

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 setup.py develop").

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

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's avatar anshprat (11 years ago)

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

Evgeny's avatar Evgeny (11 years ago)
see more comments