Whenever I try to install AskBot (following http://askbot.org/doc/install.html) I get
Processing python-daemon-1.6.tar.gz
Running python-daemon-1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HI8VO8/python-daemon-1.6/egg-dist-tmp-K0eK6T
Traceback (most recent call last):
File "setup.py", line 50, in ?
long_description = """Askbot will work alone or with other django apps (with some limitations, please see below), Django 1.1.1 - 1.2.3(*), MySQL(**) and PostgresQL(recommended) (>=8.3).
File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/install.py", line 76, in run
self.do_egg_install()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/install.py", line 104, in do_egg_install
cmd.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 478, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 518, in process_distribution
distros = WorkingSet([]).resolve(
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/pkg_resources.py", line 811, in obtain
return installer(requirement)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/command/easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/sandbox.py", line 61, in run_setup
DirectorySandbox(setup_dir).run(
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/sandbox.py", line 105, in run
return func()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88846-py2.4.egg/setuptools/sandbox.py", line 64, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 22, in ?
'askbot-setup = askbot.deployment:askbot_setup',
TypeError: __import__() takes no keyword arguments
I'm running this on CentOS 5.4 with Apache2 and Python 2.4.3.
Askbot will not work with python 2.4, please install latest python as "altinstall".
Make sure to have your updated python not overwrite python 2.4 as CentOS depends on an older version of Python. I think later releases of CentOS have fixed this problem.
One option will be to find a system package of python 2.6 or 2.7 for your version of the system, another option - compile Python from source code and install with make altinstall - in order to not overwrite Python 2.4.
Finally - you might either upgrade your CentOS or get a server with a distribution where at least python 2.6 is natively provided.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-09-14 10:30:48 -0500
Seen: 98 times
Last updated: Sep 16 '12
How to Step by Step Deploy Askbot uWSGI Nginx on CentOS 6 64bit?
500 Internal Server Error when I tried installing Askbot with Apache
Installation under Apache/mod_wsgi: "ImportError: No module named site"
Why do I ImportError: cannot import name signals?
Which version of Python (2.4? 2.5? 2.6?) is necessary?
Askbot : Install error on Python 2.4
Can askbot be used as a 'customer support center' & 'knowledgebase' ?
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.