Ask Your Question

Help with the installation

asked 2012-05-18 04:04:52 -0500

Pepe gravatar image

updated 2012-05-20 20:46:10 -0500

Hi, I'm trying to install Askbot following the instructions, but when I write "python install" it gives me this:

running install
running build
running build_py
running install_lib
creating /usr/lib/python2.6/site-packages/recaptcha_django
error: could not create '/usr/lib/python2.6/site-packages/recaptcha_django': Permission denied

So I cannot install Django... Does anyone know why is this?

edit retag flag offensive close merge delete


@Pepe, @zaf is right you don't have permission to write to directory under /usr/. Use virtualenv tool and create the environment in the directory where you do have write permissions - anywhere in your user account will work.

Evgeny gravatar image Evgeny  ( 2012-05-20 22:03:10 -0500 )edit

3 Answers

Sort by » oldest newest most voted

answered 2012-05-18 07:08:00 -0500

zaf gravatar image

Maybe you re trying to install it on a machine that you do not have access rights everywhere, and when intallation tries to copy files under /usr/lib/python2.6/site-packages/ you get access denied. Try using virtualenv to install your application. The idea is that you set up a virtual environment in a path you have permissions (only a couple of steps, should take less than 5 minutes) which then has its own site-packages directory and everything is installed there, so you never need to write in other directories, outside this environment that you might not have enough permissions.

Hope that helps a bit..

edit flag offensive delete link more


Thanks for your answer. Could it have something to do with I'm using Python 2.7? I'm trying to install virtualenv...

Pepe gravatar image Pepe  ( 2012-05-18 12:30:20 -0500 )edit

Strange.. Are you sure you are using Python 2.7? Maybe both are installed on the machine but the 2.6 one is on your PATH variable, so whenever you simply type e.g. python install it uses the 2.6 one.

Anyway, about virtualenv, you should only need something like:

easy_install virtualenv

cd path/where/you/want/to/install/askbot

virtualenv .

That should be all. After this step, you will have your project folder (say askbot_project) and next to it, a folder bin where all the necessary tools have been installed.

zaf gravatar image zaf  ( 2012-05-18 14:08:47 -0500 )edit

check this post too, maybe its helps

zaf gravatar image zaf  ( 2012-05-18 14:18:14 -0500 )edit

answered 2012-05-20 04:54:05 -0500

Pepe gravatar image

Ok, I was trying to install all this straight to the server via PuTTY, I suppose I was wrong... I should have installed it on my computer first, shouldn't I?

I got to integrate the "easy_install" command in Windows and, for now, I could follow the instructions until the step 3. Now, when I try to run the "cp", I get this:

cp: cannot stat': No such file or directory

And here I am stuck again. Any idea?

edit flag offensive delete link more


Where did you find the "copy", is this still somewhere in the docs? We don't have it. Instead we have command askbot-setup.

Evgeny gravatar image Evgeny  ( 2012-05-20 13:41:17 -0500 )edit
Pepe gravatar image Pepe  ( 2012-05-20 15:17:06 -0500 )edit

Sorry we need to shut down the wiki, we are not maintaining it. Please find the documentation from the link with the same name in the header on this side.

Evgeny gravatar image Evgeny  ( 2012-05-20 16:28:32 -0500 )edit

Well, I restart the installation following the documentation, but now the "askbot-setup" gives me «"askbot-setup" is not recognized as an internal or external command, program or batch file.»

Pepe gravatar image Pepe  ( 2012-05-20 18:24:14 -0500 )edit

that means the askbot-setup is not on your PATH, you could instead type the same command with the absolute path to the command prepended. With virtual environment (look up virtualenv for python) this problem should go away.

Evgeny gravatar image Evgeny  ( 2012-05-20 18:25:19 -0500 )edit

answered 2012-05-20 20:44:02 -0500

Pepe gravatar image

The problem seems to be resolved using virtualenv, but now I get this when I run "askbot-setup" :

Traceback (most recent call last):
  File "C:\Users\Francisko\Whatzz\Scripts\", line 5, in <m
    from pkg_resources import load_entry_point
  File "C:\Users\Francisko\Whatzz\lib\site-packages\setuptools-0.6c11-py2.7.egg\", line 2603, in <module>
  File "C:\Users\Francisko\Whatzz\lib\site-packages\setuptools-0.6c11-py2.7.egg\", line 666, in require
  File "C:\Users\Francisko\Whatzz\lib\site-packages\setuptools-0.6c11-py2.7.egg\", line 565, in resolve
pkg_resources.DistributionNotFound: python-daemon

Do you know anything about that? (Sorry about my ignorance...)

edit flag offensive delete link more


Your python seems to not have library python-daemon - try pip install python-daemon.

Evgeny gravatar image Evgeny  ( 2012-05-20 22:05:00 -0500 )edit

Try to use comments for follow-up. The Q&A format more strict, but helps reading the content. For one - your post here is not an answer.

Evgeny gravatar image Evgeny  ( 2012-05-20 22:06:49 -0500 )edit

Where am I supposed to install python-daemon?

Pepe gravatar image Pepe  ( 2012-05-20 22:14:12 -0500 )edit

@Evgeny, I'll keep it in mind. Sorry about that.

Pepe gravatar image Pepe  ( 2012-05-20 22:21:09 -0500 )edit

I've moved this question to a new post:

Pepe gravatar image Pepe  ( 2012-05-21 13:05:56 -0500 )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: 2012-05-18 04:04:52 -0500

Seen: 919 times

Last updated: May 20 '12