Okay, the reason it failed was because it was using Python 2.6. The tar file 
module in older Python versions didn't honour umask setting.

The issue now is what Python version do you want to be using?

Your Apache configuration had:

    WSGIDaemonProcess django_app processes=2 threads=12 
python-path=/home/simamura/webapps/django_app:/home/simamura/webapps/django_app/mathsite:/home/simamura/webapps/django_app/lib/python2.7

This indicates are probably trying to use Python 2.7 and not 2.6.

What command have you been using up till now to install Python packages? The 
default Python is 2.6 and not 2.7.

Were you explicitly using pip2.7 or python2.7 on package setup,py files?

Just to be absolute sure about what Python version you have been using, what do 
you get for:

    ldd /home/simamura/webapps/django_app/apache2/modules/mod_wsgi.so

Anyway, I have decided to change the approach I am using to handle installing 
Apache and make it a package distinct from mod_wsgi package itself. I therefore 
need to do a bit more work for that.

Please do give me answers to the questions above though.

Graham

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

> umask gives
> 0002
> 
> pyhton -v
> 
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> # /usr/lib64/python2.6/site.pyc matches /usr/lib64/python2.6/site.py
> import site # precompiled from /usr/lib64/python2.6/site.pyc
> # /usr/lib64/python2.6/os.pyc matches /usr/lib64/python2.6/os.py
> import os # precompiled from /usr/lib64/python2.6/os.pyc
> import errno # builtin
> import posix # builtin
> # /usr/lib64/python2.6/posixpath.pyc matches /usr/lib64/python2.6/posixpath.py
> import posixpath # precompiled from /usr/lib64/python2.6/posixpath.pyc
> # /usr/lib64/python2.6/stat.pyc matches /usr/lib64/python2.6/stat.py
> import stat # precompiled from /usr/lib64/python2.6/stat.pyc
> # /usr/lib64/python2.6/genericpath.pyc matches 
> /usr/lib64/python2.6/genericpath.py
> import genericpath # precompiled from /usr/lib64/python2.6/genericpath.pyc
> # /usr/lib64/python2.6/warnings.pyc matches /usr/lib64/python2.6/warnings.py
> import warnings # precompiled from /usr/lib64/python2.6/warnings.pyc
> # /usr/lib64/python2.6/linecache.pyc matches /usr/lib64/python2.6/linecache.py
> import linecache # precompiled from /usr/lib64/python2.6/linecache.pyc
> # /usr/lib64/python2.6/types.pyc matches /usr/lib64/python2.6/types.py
> import types # precompiled from /usr/lib64/python2.6/types.pyc
> # /usr/lib64/python2.6/UserDict.pyc matches /usr/lib64/python2.6/UserDict.py
> import UserDict # precompiled from /usr/lib64/python2.6/UserDict.pyc
> # /usr/lib64/python2.6/_abcoll.pyc matches /usr/lib64/python2.6/_abcoll.py
> import _abcoll # precompiled from /usr/lib64/python2.6/_abcoll.pyc
> # /usr/lib64/python2.6/abc.pyc matches /usr/lib64/python2.6/abc.py
> import abc # precompiled from /usr/lib64/python2.6/abc.pyc
> # /usr/lib64/python2.6/copy_reg.pyc matches /usr/lib64/python2.6/copy_reg.py
> import copy_reg # precompiled from /usr/lib64/python2.6/copy_reg.pyc
> # /usr/lib64/python2.6/sitecustomize.pyc matches 
> /usr/lib64/python2.6/sitecustomize.py
> import sitecustomize # precompiled from /usr/lib64/python2.6/sitecustomize.pyc
> import encodings # directory /usr/lib64/python2.6/encodings
> # /usr/lib64/python2.6/encodings/__init__.pyc matches 
> /usr/lib64/python2.6/encodings/__init__.py
> import encodings # precompiled from 
> /usr/lib64/python2.6/encodings/__init__.pyc
> # /usr/lib64/python2.6/codecs.pyc matches /usr/lib64/python2.6/codecs.py
> import codecs # precompiled from /usr/lib64/python2.6/codecs.pyc
> import _codecs # builtin
> # /usr/lib64/python2.6/encodings/aliases.pyc matches 
> /usr/lib64/python2.6/encodings/aliases.py
> import encodings.aliases # precompiled from 
> /usr/lib64/python2.6/encodings/aliases.pyc
> # /usr/lib64/python2.6/encodings/utf_8.pyc matches 
> /usr/lib64/python2.6/encodings/utf_8.py
> import encodings.utf_8 # precompiled from 
> /usr/lib64/python2.6/encodings/utf_8.pyc
> Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> dlopen("/usr/lib64/python2.6/lib-dynload/readline.so", 2);
> import readline # dynamically loaded from 
> /usr/lib64/python2.6/lib-dynload/readline.so
> 

-- 
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