I tried to set pythonhome to exact python home of my built python , but
still it don't work..

here is my wrapper script :


#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
  DIR="$( cd -P "$( dirname "$SOURCE"  )" && pwd )"
done
LD_LIBRARY_PATH=$DIR/runtime/lib
#echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH
#PYTHONHOME=$DIR/runtime/lib/python2.7
#echo $PYTHONHOME
#export PYTHONHOME
$DIR/runtime/bin/uwsgi -H $DIR/runtime/lib/python2.7 --http :8000 --chdir
./web2py/   --python-path ./web2py/ --module uwsgihandler \
-p 6 --post-buffering 65535 \
--close-on-exec  --socket-timeout 6000 \
--route "^/EDCentric basicauth:ED-Centric Login,admin:test"


On Thursday, November 8, 2012, Phyo Arkar wrote:

> This is more uwsgi problem so here:
>
> I am doing a self contained , relocatable , standalone python build with
> uwsgi, web2py , scipy (Numpy,matplotlib)
>
> Everything works fine in relocatable enviorment but Uwsgi is having this
> error :
>
> uwsgi socket 0 bound to UNIX address /home/uwsgi/uwsgi/uwsgi.sock fd 3
> Python version: 2.7.2+ (default, Dec  1 2011, 02:17:49)  [GCC 4.6.2]
> Set PythonHome to ./web2py
> ImportError: No module named site
>
> Here is my uwsgi config :
>
> #!/bin/bash
> ./runtime/bin/uwsgi --http :8000 --chdir ./web2py/ --python-path ./web2py/
> --module uwsgihandler \
> -p 6 --post-buffering 65535 \
> --close-on-exec  --socket-timeout 6000 \
>
>
> Directly running web2py works perfectly fine.
>
> Any ideas?  ALso its seems running python using system python , anyway to
> force it to use Custom built python?
>

-- 



Reply via email to