[uWSGI] uwsgi_admin

Yann Malet yann.malet at gmail.com
Tue Jan 26 15:11:17 CET 2010


Good morning Roberto,
We have made some significant progress there, uwsgi is now pip installable.
uwsgi compiles and the script get installed into the script directory of the
virtualenv. This was the good news, the bad news is that I can't run the
generated binary "uwsgi26" I get a "Segmentation fault".

You will find below the trace. Could you please let me know what kind of
information would be useful to debug this ?

-------------8<---------------------------------------

(ve)yml at yml-laptop:uwsgi_admin$ pip install -E ve -e hg+
http://projects.unbit.it/hg/uwsgi#egg=uwsgi
Obtaining uwsgi from hg+http://projects.unbit.it/hg/uwsgi#egg=uwsgi
  Updating ./ve/src/uwsgi clone
  Running setup.py egg_info for package uwsgi
    rm -f utils.o protocol.o socket.o pymodule.o spooler.o logging.o main.o
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` utils.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` protocol.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` socket.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` -o pymodule.o
uwsgi_pymodule.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` spooler.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` logging.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` -o main.o
uwsgi.c
    gcc `python2.6-config --libs` `xml2-config --libs` utils.o protocol.o
socket.o spooler.o logging.o pymodule.o main.o -o uwsgi26
    detected python version 2.6
Installing collected packages: uwsgi
  Running setup.py develop for uwsgi
    rm -f utils.o protocol.o socket.o pymodule.o spooler.o logging.o main.o
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` utils.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` protocol.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` socket.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` -o pymodule.o
uwsgi_pymodule.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` spooler.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` logging.c
    gcc -c `python2.6-config --cflags` `xml2-config --cflags` -o main.o
uwsgi.c
    gcc `python2.6-config --libs` `xml2-config --libs` utils.o protocol.o
socket.o spooler.o logging.o pymodule.o main.o -o uwsgi26
    detected python version 2.6
    Creating
/opt/www/uwsgi-admin/uwsgi_admin/ve/lib/python2.6/site-packages/uWSGI.egg-link
(link to .)
    uWSGI 0.9.4 is already the active version in easy-install.pth
    Installing uwsgi26 script to /opt/www/uwsgi-admin/uwsgi_admin/ve/bin

    Installed /opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi
Successfully installed uwsgi
(ve)yml at yml-laptop:uwsgi_admin$ which uwsgi
/usr/local/bin/uwsgi
(ve)yml at yml-laptop:uwsgi_admin$ uwsgi26 -h
Segmentation fault
(ve)yml at yml-laptop:uwsgi_admin$ uwsgi26
Segmentation fault
(ve)yml at yml-laptop:uwsgi_admin$ which uwsgi
/usr/local/bin/uwsgi
(ve)yml at yml-laptop:uwsgi_admin$ which uwsgi26
/opt/www/uwsgi-admin/uwsgi_admin/ve/bin/uwsgi26


On Tue, Jan 26, 2010 at 5:22 AM, Roberto De Ioris <roberto at unbit.it> wrote:

> On Mon, 2010-01-25 at 13:13 -0400, Yann Malet wrote:
> > Roberto,
> >
> > I have just tested the setup.py that you have added friday and it does
> > not seems to work yet. After some quick analysis it seems that "make"
> > does not work fine on linux where "make -f Makefile.Py26" works fine :
>
>
>
> Hi Yann, it looks like you have not istalled the python 2.5 headers.
>
> Never mind, i have just commited a new version of setup.py that
> automatically select the right makefile.
>
> It should work for every setup (i hope).
>
> Obviously it reject request coming for a python 3.x env
>
>
> Let me know if it works for you.
>
> --
> Roberto De Ioris
> http://unbit.it
> JID: roberto at jabber.unbit.it
>
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.unbit.it/pipermail/uwsgi/attachments/20100126/4630ba88/attachment.htm 


More information about the uWSGI mailing list