On 31/01/2015, at 8:43 PM, Paul Royik <[email protected]> wrote:

> I already noticed that in terminal Python 2.6 is used. I asked support how to 
> change to installed 2.7 version, but did not get answer.
> Were you explicitly using pip2.7 or python2.7 on package setup,py files? 
> I used only pip, not pip 2.7

Lets see if we can sort this out. WebFaction's setup for Python is quite messy 
based on their documentation. They have also modified their Python 
installations to do special things.

The page where they describe things is:

    http://docs.webfaction.com/software/python.html

You ideally want to be setup with pip if you haven't already. This is described 
in:

   http://docs.webfaction.com/software/python.html#installing-packages-with-pip

So what you want to do is:

    mkdir -p $HOME/lib/python2.7

    easy_install-2.7 pip

Whenever you need to know install packages you should always run 'pip2.7' and 
NOT just 'pip'. You should also provide the --user option to the 'install' 
command for pip.

As explained in:

    http://docs.webfaction.com/software/python.html#creating-a-python-alias

you can create shell script aliases for 'python' and 'pip' to refer to the 
correct versions:

    alias python=python2.7
    alias pip=pip2.7

Now, with at least 'pip2.7' installed, run:

    pip2.7 install --user mod_wsgi-httpd

This will take a while to run. This is going to compile and install Apache 
2.4.12. This is now done by a separate package that is on PyPi.

If that appears to succeed, try running:

    mod_wsgi-apxs -q INCLUDEDIR

If that runs we are in good shape.

If so far so good, then run:

    pip2.7 install --user mod_wsgi

This will compile mod_wsgi package itself and install mod_wsgi-express.

If that looks to work, then run:

    mod-wsgi-express

it should output a usage message.

Let me know when you get that far or at what point something doesn't work.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to