The only thing I'm not sure about is setting both virtualenv and pythonhome options, everything else looks fine to me. Maybe try without pythonhome, virtualenv option should set that when used.
2013/9/12 Oscar A. Mata T. <[email protected]> > Yes, I already did that, > > Is the very same version, more on, is the only python version installed in > the system. > > I even tried with others distributions: Debian 6 and Debian 7 with the > same result. > > > 2013/9/12 Łukasz Mierzwa <[email protected]> > >> Did you checked that python version in that virtualenv is in fact 2.7.3? >> >> >> 2013/9/12 Oscar A. Mata T. <[email protected]> >> >>> I already did that, didnt work. >>> >>> >>> 2013/9/12 Łukasz Mierzwa <[email protected]> >>> >>>> > ImportError: No module named wsgihandler >>>> >>>> Maybe you just need to add: >>>> >>>> chdir = <dir where wsgihandler is located> >>>> >>>> maybe chdir=%(base)/opt would work. >>>> >>>> uWSGI can't find wsgihandler module that you specified, use chdir >>>> option to set working directory. >>>> >>>> >>>> >>>> >>>> 2013/9/12 Oscar A. Mata T. <[email protected]> >>>> >>>> >>>>> Sorry for the duplicated email, >>>>> >>>>> I have no idea on how to modify the email headers to reply to any >>>>> email of this list, because I receive a daily digest. I changed it to >>>>> receive individual emails. I guess that is better idea use Google groups, >>>>> is safer for our emails address and easier. >>>>> >>>>> Lukasz: You can see my configuration file at: >>>>> http://pastebin.com/Grj62r1p >>>>> >>>>> ----- LOG ----- >>>>> >>>>> uwsgi --master --emperor /etc/uwsgi/apps-enabled --die-on-term >>>>> *** Starting uWSGI 1.9.15 (32bit) on [Thu Sep 12 11:57:35 2013] *** >>>>> compiled with version: 4.6.3 on 06 September 2013 01:16:38 >>>>> os: Linux-2.6.32-19-pve #1 SMP Wed May 15 07:32:52 CEST 2013 >>>>> nodename: dev02 >>>>> machine: i686 >>>>> clock source: unix >>>>> detected number of CPU cores: 1 >>>>> current working directory: /etc/uwsgi/apps-available >>>>> detected binary path: /usr/local/bin/uwsgi >>>>> uWSGI running as root, you can use --uid/--gid/--chroot options >>>>> *** WARNING: you are running uWSGI as root !!! (use the --uid flag) >>>>> *** >>>>> your processes number limit is 128192 >>>>> your memory page size is 4096 bytes >>>>> detected max file descriptor number: 1024 >>>>> lock engine: pthread robust mutexes >>>>> Python version: 2.7.3 (default, Apr 10 2013, 06:03:17) [GCC 4.6.3] >>>>> *** starting uWSGI Emperor *** >>>>> *** has_emperor mode detected (fd: 6) *** >>>>> [uWSGI] getting INI configuration from inochinoki.ini >>>>> *** Starting uWSGI 1.9.15 (32bit) on [Thu Sep 12 11:57:35 2013] *** >>>>> compiled with version: 4.6.3 on 06 September 2013 01:16:38 >>>>> os: Linux-2.6.32-19-pve #1 SMP Wed May 15 07:32:52 CEST 2013 >>>>> nodename: dev02 >>>>> machine: i686 >>>>> clock source: unix >>>>> detected number of CPU cores: 1 >>>>> current working directory: /etc/uwsgi/apps-enabled >>>>> detected binary path: /usr/local/bin/uwsgi >>>>> setgid() to 33 >>>>> setuid() to 33 >>>>> your processes number limit is 128192 >>>>> limiting address space of processes... >>>>> your process address space limit is 146800640 bytes (140 MB) >>>>> your memory page size is 4096 bytes >>>>> detected max file descriptor number: 1024 >>>>> lock engine: pthread robust mutexes >>>>> uwsgi socket 0 bound to UNIX address /tmp/inochinoki.socket fd 3 >>>>> Python version: 2.7.3 (default, Apr 10 2013, 06:03:17) [GCC 4.6.3] >>>>> Set PythonHome to /root/.virtualenvs/inochinoki >>>>> *** Python threads support is disabled. You can enable it with >>>>> --enable-threads *** >>>>> Python main interpreter initialized at 0x9668670 >>>>> your mercy for graceful operations on workers is 60 seconds >>>>> *** Operational MODE: no-workers *** >>>>> spawned uWSGI master process (pid: 8052) >>>>> Python main interpreter initialized at 0x840dcc0 >>>>> threads stack size set to 64k >>>>> python threads support enabled >>>>> your server socket listen backlog is limited to 100 connections >>>>> your mercy for graceful operations on workers is 60 seconds >>>>> [uwsgi-cron] command "python >>>>> /root/.virtualenv/inochinoki/opt/web2py.py -Q -S welcome -M -R >>>>> scripts/sessions2trash.py -A -o" registered as cron task >>>>> mapped 350740 bytes (342 KB) for 4 cores >>>>> *** Operational MODE: preforking *** >>>>> added /root/.virtualenvs/inochinoki/opt/ to pythonpath. >>>>> ImportError: No module named wsgihandler >>>>> unable to load app 0 (mountpoint='') (callable not found or import >>>>> error) >>>>> *** no app loaded. going in full dynamic mode *** >>>>> *** uWSGI is running in multiple interpreter mode *** >>>>> spawned uWSGI master process (pid: 8054) >>>>> spawned uWSGI worker 1 (pid: 8055, cores: 1) >>>>> spawned uWSGI worker 2 (pid: 8056, cores: 1) >>>>> spawned uWSGI worker 3 (pid: 8057, cores: 1) >>>>> spawned uWSGI worker 4 (pid: 8058, cores: 1) >>>>> ^C[emperor] *** RAGNAROK EVOKED *** >>>>> SIGINT/SIGQUIT received...killing workers... >>>>> The Emperor has been buried (pid: 8053) >>>>> goodbye to uWSGI. >>>>> >>>>> ----- LOG ----- >>>>> >>>>> Regards. >>>>> >>>>> >>>>> Date: Wed, 11 Sep 2013 22:19:13 +0200 >>>>> From: ?ukasz Mierzwa <[email protected]> >>>>> To: uWSGI developers and users list <[email protected]> >>>>> Subject: Re: [uWSGI] Problems with import site >>>>> Message-ID: >>>>> < >>>>> cafcbevupct9ru59afxytorxudunmujdsd8j+44cyp2kdsku...@mail.gmail.com> >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> Also pasting config and uWSGI log will help tracking it down. >>>>> >>>>> >>>>> 2013/9/11 ?ukasz Mierzwa <[email protected]> >>>>> >>>>> > AFAIK errors with importing site usually means that python version in >>>>> > virtualenv is different then the one uWSGI is linking to. Double >>>>> check if >>>>> > there is no difference there - run python --version in venv and >>>>> check uWSGI >>>>> > startup messages, it will print use python version. >>>>> > >>>>> > >>>>> > 2013/9/11 Oscar A. Mata T. <[email protected]> >>>>> > >>>>> >> Hi, >>>>> >> >>>>> >> I did installed a proxmox based server with nginx, uwsgi installed >>>>> using >>>>> >> pip 1.4.1 and virtualenv + virtualenvwrapper installed from apt >>>>> >> repositoryes on Ubuntu Server 12.04 LTS. >>>>> >> >>>>> >> So I have a Web2py based project that I have configured into a >>>>> >> virtualenv, then when I try to configure an uwsgi in file with this >>>>> app it >>>>> >> returns an error saying: "error: import site" and the app just >>>>> doesn start. >>>>> >> I used pip to install uwsgi, so it compiled with the only available >>>>> python >>>>> >> version: (2.7.3) >>>>> >> >>>>> >> Some one knows how I can fix this issue? I already did a search in >>>>> a lot >>>>> >> of sites, Googl and IRC chat without success. >>>>> >> >>>>> >> Best regards, >>>>> >> >>>>> >> -- >>>>> >> Oscar A. Mata T. >>>>> >> Director de TI >>>>> >> Maximum Labs >>>>> >> Representaciones Metamax C.A. >>>>> >> >>>>> >> _______________________________________________ >>>>> >> uWSGI mailing list >>>>> >> [email protected] >>>>> >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>>>> >> >>>>> >> >>>>> > >>>>> > >>>>> > -- >>>>> > ?ukasz Mierzwa >>>>> > >>>>> >>>>> -- >>>>> Oscar A. Mata T. >>>>> Director de TI >>>>> Maximum Labs >>>>> Representaciones Metamax C.A. >>>>> >>>>> _______________________________________________ >>>>> uWSGI mailing list >>>>> [email protected] >>>>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>>>> >>>>> >>>> >>>> >>>> -- >>>> Łukasz Mierzwa >>>> >>>> _______________________________________________ >>>> uWSGI mailing list >>>> [email protected] >>>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>>> >>>> >>> >>> >>> -- >>> Oscar A. Mata T. >>> Director de TI >>> Maximum Labs >>> Representaciones Metamax C.A. >>> >>> _______________________________________________ >>> uWSGI mailing list >>> [email protected] >>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>> >>> >> >> >> -- >> Łukasz Mierzwa >> >> _______________________________________________ >> uWSGI mailing list >> [email protected] >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >> >> > > > -- > Oscar A. Mata T. > Director de TI > Maximum Labs > Representaciones Metamax C.A. > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > -- Łukasz Mierzwa
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
