Closed
Bug 835333
Opened 11 years ago
Closed 2 years ago
Unable to install pymongo module
Categories
(Petri Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: st3fan, Unassigned)
Details
I'm trying to push a Python app that uses the pymongo module. (The standard MongoDB client for Python) It is a C module and installing it fails hard because I think python-dev is not installed on the Petri servers. See the log snippet attached. ====> logs/startup.log <==== Downloading/unpacking gunicorn Running setup.py egg_info for package gunicorn Installing collected packages: gunicorn Running setup.py install for gunicorn Installing gunicorn_paster script to /var/vcap.local/dea/apps/security-review-statistics-0-0afa3b9fa3a216e4dc7392a5dd73ab36/python/bin Installing gunicorn script to /var/vcap.local/dea/apps/security-review-statistics-0-0afa3b9fa3a216e4dc7392a5dd73ab36/python/bin Installing gunicorn_django script to /var/vcap.local/dea/apps/security-review-statistics-0-0afa3b9fa3a216e4dc7392a5dd73ab36/python/bin Successfully installed gunicorn Cleaning up... Downloading/unpacking Flask==0.9 (from -r requirements.txt (line 1)) Running setup.py egg_info for package Flask warning: no files found matching '*' under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'docs' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyo' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'examples' warning: no previously-included files matching '*.pyo' found under directory 'examples' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/_themes/.git' Downloading/unpacking pymongo==2.4.2 (from -r requirements.txt (line 2)) Running setup.py egg_info for package pymongo Downloading/unpacking Werkzeug>=0.7 (from Flask==0.9->-r requirements.txt (line 1)) Running setup.py egg_info for package Werkzeug warning: no files found matching '*' under directory 'werkzeug/debug/templates' warning: no files found matching '*' under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'docs' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyo' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'examples' warning: no previously-included files matching '*.pyo' found under directory 'examples' no previously-included directories found matching 'docs/_build' Downloading/unpacking Jinja2>=2.4 (from Flask==0.9->-r requirements.txt (line 1)) Running setup.py egg_info for package Jinja2 warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.pyc' found under directory 'jinja2' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'jinja2' warning: no previously-included files matching '*.pyo' found under directory 'docs' Installing collected packages: Flask, pymongo, Werkzeug, Jinja2 Running setup.py install for Flask warning: no files found matching '*' under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'docs' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyo' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'examples' warning: no previously-included files matching '*.pyo' found under directory 'examples' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/_themes/.git' Running setup.py install for pymongo building 'bson._cbson' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibson -I/usr/include/python2.6 -c bson/_cbsonmodule.c -o build/temp.linux-x86_64-2.6/bson/_cbsonmodule.o In file included from /usr/include/python2.6/Python.h:19, from bson/_cbsonmodule.c:23: /usr/include/limits.h:125:26: error: no include path in which to search for limits.h In file included from bson/_cbsonmodule.c:23: /usr/include/python2.6/Python.h:22:2: error: #error "Something's broken. UCHAR_MAX should be defined in limits.h." /usr/include/python2.6/Python.h:26:2: error: #error "Python's source code assumes C's unsigned char is an 8-bit type." In file included from /usr/include/python2.6/Python.h:33, from bson/_cbsonmodule.c:23: /usr/include/stdio.h:34:21: error: stddef.h: No such file or directory In file included from /usr/include/stdio.h:75, from /usr/include/python2.6/Python.h:33, from bson/_cbsonmodule.c:23: /usr/include/libio.h:53:21: error: stdarg.h: No such file or directory In file included from /usr/include/stdio.h:75, from /usr/include/python2.6/Python.h:33, from bson/_cbsonmodule.c:23: /usr/include/libio.h:332: error: expected specifier-qualifier-list before 'size_t' /usr/include/libio.h:364: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:373: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:491: error: expected declaration specifiers or '...' before '__gnuc_va_list' /usr/include/libio.h:493: error: expected declaration specifiers or '...' before '__gnuc_va_list' /usr/include/libio.h:495: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn' In file included from /usr/include/python2.6/Python.h:33, from bson/_cbsonmodule.c:23: /usr/include/stdio.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'va_list' In file included from /usr/include/python2.6/Python.h:33, from bson/_cbsonmodule.c:23: /usr/include/stdio.h:296: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:302: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:314: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:321: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:349: error: expected declaration specifiers or '...' before '__gnuc_va_list' /usr/include/stdio.h:354: error: expected declaration specifiers or '...' before '__gnuc_va_list' /usr/include/stdio.h:357: error: expected declaration specifiers or '...' before '__gnuc_va_list'
Comment 1•11 years ago
|
||
Smells like the python-dev package isn't installed on the staging box. Can you try again now ?
Comment 2•2 years ago
|
||
This bug lies at rest in the graveyard.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•