Advertisement
Guest User

python flask-socketio error

a guest
Jan 15th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.58 KB | None | 0 0
  1. (venv)ubuntu@ip-172-31-33-208:~/flask_ktz/venv/bin$ pip install flask-SocketIO
  2. Collecting flask-SocketIO
  3.   Using cached Flask-SocketIO-0.5.0.tar.gz
  4. Requirement already satisfied (use --upgrade to upgrade): Flask>=0.9 in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from flask-SocketIO)
  5. Collecting gevent>=1.0 (from flask-SocketIO)
  6.   Using cached gevent-1.0.1.tar.gz
  7. Collecting gevent-socketio>=0.3.6 (from flask-SocketIO)
  8.   Using cached gevent_socketio-0.3.6-py27-none-any.whl
  9. Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from Flask>=0.9->flask-SocketIO)
  10. Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from Flask>=0.9->flask-SocketIO)
  11. Requirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from Flask>=0.9->flask-SocketIO)
  12. Collecting greenlet (from gevent>=1.0->flask-SocketIO)
  13.   Using cached greenlet-0.4.5.zip
  14. Requirement already satisfied (use --upgrade to upgrade): gevent-websocket in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from gevent-socketio>=0.3.6->flask-SocketIO)
  15. Requirement already satisfied (use --upgrade to upgrade): markupsafe in /home/ubuntu/flask_ktz/venv/lib/python2.7/site-packages (from Jinja2>=2.4->Flask>=0.9->flask-SocketIO)
  16. Installing collected packages: greenlet, gevent-socketio, gevent, flask-SocketIO
  17.   Running setup.py install for greenlet
  18.     building 'greenlet' extension
  19.     x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-x86_64-2.7/greenlet.o
  20.     In file included from greenlet.c:5:0:
  21.     greenlet.h:8:20: fatal error: Python.h: No such file or directory
  22.      #include <Python.h>
  23.                         ^
  24.     compilation terminated.
  25.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  26.     Complete output from command /home/ubuntu/flask_ktz/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Af4w9R/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BejIFr-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/flask_ktz/venv/include/site/python2.7:
  27.     running install
  28.  
  29.     running build
  30.  
  31.     running build_ext
  32.  
  33.     building 'greenlet' extension
  34.  
  35.     creating build
  36.  
  37.     creating build/temp.linux-x86_64-2.7
  38.  
  39.     x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-x86_64-2.7/greenlet.o
  40.  
  41.     In file included from greenlet.c:5:0:
  42.  
  43.     greenlet.h:8:20: fatal error: Python.h: No such file or directory
  44.  
  45.      #include <Python.h>
  46.  
  47.                         ^
  48.  
  49.     compilation terminated.
  50.  
  51.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  52.  
  53.     ----------------------------------------
  54.     Command "/home/ubuntu/flask_ktz/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Af4w9R/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BejIFr-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/flask_ktz/venv/include/site/python2.7" failed with error code 1 in /tmp/pip-build-Af4w9R/greenlet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement