[uWSGI] uwsgi_admin

Yann Malet yann.malet at gmail.com
Mon Jan 25 18:13:42 CET 2010


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 :

(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
  Cloning hg http://projects.unbit.it/hg/uwsgi to ./ve/src/uwsgi
  Running setup.py egg_info for package uwsgi
    rm -f utils.o protocol.o socket.o pymodule.o spooler.o main.o
    gcc -c `python2.5-config --cflags` `xml2-config --cflags` utils.c
    /bin/sh: python2.5-config: not found
    In file included from utils.c:1:
    uwsgi.h:57:20: error: Python.h: No such file or directory
    In file included from utils.c:1:
    uwsgi.h:67: error: expected ‘)’ before ‘*’ token
    uwsgi.h:68: error: expected ‘)’ before ‘*’ token
    uwsgi.h:126: error: expected specifier-qualifier-list before
‘PyThreadState’
    uwsgi.h:217: error: expected specifier-qualifier-list before ‘PyObject’
    uwsgi.h:341: error: expected ‘)’ before ‘*’ token
    uwsgi.h:342: error: expected ‘)’ before ‘*’ token
    uwsgi.h:343: error: expected ‘)’ before ‘*’ token
    uwsgi.h:347: error: expected ‘)’ before ‘*’ token
    uwsgi.h:348: error: expected declaration specifiers or ‘...’ before
‘PyObject’
    uwsgi.h:358: error: expected ‘)’ before ‘*’ token
    uwsgi.h:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
    utils.c: In function ‘uwsgi_get_cwd’:
    utils.c:116: warning: comparison between pointer and integer
    utils.c:117: error: ‘errno’ undeclared (first use in this function)
    utils.c:117: error: (Each undeclared identifier is reported only once
    utils.c:117: error: for each function it appears in.)
    utils.c:125: warning: comparison between pointer and integer
    make: *** [utils.o] Error 1
Installing collected packages: uwsgi
  Running setup.py develop for uwsgi
    rm -f utils.o protocol.o socket.o pymodule.o spooler.o main.o
    gcc -c `python2.5-config --cflags` `xml2-config --cflags` utils.c
    /bin/sh: python2.5-config: not found
    In file included from utils.c:1:
    uwsgi.h:57:20: error: Python.h: No such file or directory
    In file included from utils.c:1:
    uwsgi.h:67: error: expected ‘)’ before ‘*’ token
    uwsgi.h:68: error: expected ‘)’ before ‘*’ token
    uwsgi.h:126: error: expected specifier-qualifier-list before
‘PyThreadState’
    uwsgi.h:217: error: expected specifier-qualifier-list before ‘PyObject’
    uwsgi.h:341: error: expected ‘)’ before ‘*’ token
    uwsgi.h:342: error: expected ‘)’ before ‘*’ token
    uwsgi.h:343: error: expected ‘)’ before ‘*’ token
    uwsgi.h:347: error: expected ‘)’ before ‘*’ token
    uwsgi.h:348: error: expected declaration specifiers or ‘...’ before
‘PyObject’
    uwsgi.h:358: error: expected ‘)’ before ‘*’ token
    uwsgi.h:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
    utils.c: In function ‘uwsgi_get_cwd’:
    utils.c:116: warning: comparison between pointer and integer
    utils.c:117: error: ‘errno’ undeclared (first use in this function)
    utils.c:117: error: (Each undeclared identifier is reported only once
    utils.c:117: error: for each function it appears in.)
    utils.c:125: warning: comparison between pointer and integer
    make: *** [utils.o] Error 1
    Creating /opt/www/uwsgi-admin/uwsgi_admin/ve/lib/python2.6/site-packages/uWSGI.egg-link
(link to .)
    Adding uWSGI 0.9.4 to easy-install.pth file
    error: /opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/uwsgi: No such file
or directory
    Complete output from command /opt/www/uwsgi-admin/uwsgi_admin/ve/bin/python
-c "import setuptools;
__file__='/opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/setup.py';
execfile('/opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/setup.py')" develop
--no-deps:
    rm -f utils.o protocol.o socket.o pymodule.o spooler.o main.o

gcc -c `python2.5-config --cflags` `xml2-config --cflags` utils.c

/bin/sh: python2.5-config: not found

In file included from utils.c:1:

uwsgi.h:57:20: error: Python.h: No such file or directory

In file included from utils.c:1:

uwsgi.h:67: error: expected ‘)’ before ‘*’ token

uwsgi.h:68: error: expected ‘)’ before ‘*’ token

uwsgi.h:126: error: expected specifier-qualifier-list before ‘PyThreadState’

uwsgi.h:217: error: expected specifier-qualifier-list before ‘PyObject’

uwsgi.h:341: error: expected ‘)’ before ‘*’ token

uwsgi.h:342: error: expected ‘)’ before ‘*’ token

uwsgi.h:343: error: expected ‘)’ before ‘*’ token

uwsgi.h:347: error: expected ‘)’ before ‘*’ token

uwsgi.h:348: error: expected declaration specifiers or ‘...’ before
‘PyObject’

uwsgi.h:358: error: expected ‘)’ before ‘*’ token

uwsgi.h:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘*’ token

utils.c: In function ‘uwsgi_get_cwd’:

utils.c:116: warning: comparison between pointer and integer

utils.c:117: error: ‘errno’ undeclared (first use in this function)

utils.c:117: error: (Each undeclared identifier is reported only once

utils.c:117: error: for each function it appears in.)

utils.c:125: warning: comparison between pointer and integer

make: *** [utils.o] Error 1

running develop

running egg_info

writing uWSGI.egg-info/PKG-INFO

writing top-level names to uWSGI.egg-info/top_level.txt

writing dependency_links to uWSGI.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found

reading manifest file 'uWSGI.egg-info/SOURCES.txt'

writing manifest file 'uWSGI.egg-info/SOURCES.txt'

running build_ext

Creating /opt/www/uwsgi-admin/uwsgi_admin/ve/lib/python2.6/site-packages/uWSGI.egg-link
(link to .)

Adding uWSGI 0.9.4 to easy-install.pth file

error: /opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/uwsgi: No such file or
directory

----------------------------------------
Command /opt/www/uwsgi-admin/uwsgi_admin/ve/bin/python -c "import
setuptools; __file__='/opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/setup.py';
execfile('/opt/www/uwsgi-admin/uwsgi_admin/ve/src/uwsgi/setup.py')" develop
--no-deps failed with error code 1
Storing complete log in ./pip-log.txt



Here it is some more trace :

(ve)yml at yml-laptop:uwsgi$ make -f Makefile.Py26
rm -f utils.o protocol.o socket.o pymodule.o spooler.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` -o main.o uwsgi.c
gcc `python2.6-config --libs` `xml2-config --libs` utils.o protocol.o
socket.o spooler.o pymodule.o main.o -o uwsgi26
(ve)yml at yml-laptop:uwsgi$ ls
apache2        Makefile.Py26        pymodule.o     utils.c
base.mk        Makefile.Py30        README         utils.o
ChangeLog      Makefile.Py31        setup.py       uwsgi26
cherokee       Makefile.ROCK_SOLID  simple_app.py  uwsgi.c
debian         Makefile.UNBIT.Py24  socket.c       uwsgi.class
django         Makefile.UNBIT.Py25  socket.o       uwsgi_client.c
INSTALL        Makefile.UNBIT.Py26  spooler.c      uwsgi_dynamic_client.c
LICENSE        Makefile.UNBIT.Py30  spooler.o      uWSGI.egg-info
lighttpd       Makefile.UNBIT.Py31  testapp.py     uwsgi.h
main.o         nginx                twuwsgi.py     uwsgi.java
Makefile       protocol.c           unbit.h        uwsgi_pymodule.c
Makefile.Py24  protocol.o           urack.rb       uwsgi.xml
(ve)yml at yml-laptop:uwsgi$ make
rm -f utils.o protocol.o socket.o pymodule.o spooler.o main.o
gcc -c `python2.5-config --cflags` `xml2-config --cflags` utils.c
/bin/sh: python2.5-config: not found
In file included from utils.c:1:
uwsgi.h:57:20: error: Python.h: No such file or directory
In file included from utils.c:1:
uwsgi.h:67: error: expected ‘)’ before ‘*’ token
uwsgi.h:68: error: expected ‘)’ before ‘*’ token
uwsgi.h:126: error: expected specifier-qualifier-list before ‘PyThreadState’
uwsgi.h:217: error: expected specifier-qualifier-list before ‘PyObject’
uwsgi.h:341: error: expected ‘)’ before ‘*’ token
uwsgi.h:342: error: expected ‘)’ before ‘*’ token
uwsgi.h:343: error: expected ‘)’ before ‘*’ token
uwsgi.h:347: error: expected ‘)’ before ‘*’ token
uwsgi.h:348: error: expected declaration specifiers or ‘...’ before
‘PyObject’
uwsgi.h:358: error: expected ‘)’ before ‘*’ token
uwsgi.h:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘*’ token
utils.c: In function ‘uwsgi_get_cwd’:
utils.c:116: warning: comparison between pointer and integer
utils.c:117: error: ‘errno’ undeclared (first use in this function)
utils.c:117: error: (Each undeclared identifier is reported only once
utils.c:117: error: for each function it appears in.)
utils.c:125: warning: comparison between pointer and integer
make: *** [utils.o] Error 1

Regards,
--yml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.unbit.it/pipermail/uwsgi/attachments/20100125/15be2248/attachment-0001.htm 


More information about the uWSGI mailing list