snowplow/snowplow-python-tracker

Python Tracker pip install broken

seanblumenfeld opened this issue · 1 comments

Hi,

I am trying to do a simple pip install of the python snowplow-tracker library. I tried using python3.6 and python3.5 but I get the following error in both version. The PyPi package page suggests that the package should work with python 3.5.

Could someone please point me to a working version of the package?

Collecting amqp<2.0,>=1.4.9 (from kombu<4.0,>=3.0.15->celery==3.1.11->snowplow-tracker==0.8.0->-r /requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/ed/09/314d2788aba0aa91f2578071a6484f87a615172a98c309c2aad3433da90b/amqp-1.4.9-py2.py3-none-any.whl (51kB)
Building wheels for collected packages: snowplow-tracker, greenlet, pycontracts, celery, gevent, redis, billiard, anyjson
  Running setup.py bdist_wheel for snowplow-tracker: started
  Running setup.py bdist_wheel for snowplow-tracker: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/e9/79/e7/f3921cf27c4f0468c5a597ad89db41314fc83bc867b1ee5622
  Running setup.py bdist_wheel for greenlet: started
  Running setup.py bdist_wheel for greenlet: finished with status 'error'
  Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmo0ey3d/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-kmxywmhr --python-tag cp36:
  running bdist_wheel
  running build
  running build_ext
  building 'greenlet' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.6m -c greenlet.c -o build/temp.linux-x86_64-3.6/greenlet.o
  unable to execute 'gcc': No such file or directory
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for greenlet
  Running setup.py clean for greenlet
  Running setup.py bdist_wheel for pycontracts: started
  Running setup.py bdist_wheel for pycontracts: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a5/66/16/5c5b6336493963e8aa41b28a30e33a346ed524cd30a49802cc
  Running setup.py bdist_wheel for celery: started
  Running setup.py bdist_wheel for celery: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/ce/05/6b/9fcdbfdb9f98d72fff08c29b3c801943d2ddfb25199292c590
  Running setup.py bdist_wheel for gevent: started
  Running setup.py bdist_wheel for gevent: finished with status 'error'
  Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmo0ey3d/gevent/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-fjn9j8ro --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/gevent
  copying gevent/queue.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/ssl.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/monkey.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/_sslgte279.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/_threading.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/greenlet.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/fileobject.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/socket.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/subprocess.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/pool.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/backdoor.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/win32util.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/select.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/wsgi.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/threadpool.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/__init__.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/event.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/lock.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/threading.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/pywsgi.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/coros.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/util.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/thread.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/server.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/local.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/resolver_thread.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/resolver_ares.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/baseserver.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/os.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/hub.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/_ssl2.py -> build/lib.linux-x86_64-3.6/gevent
  copying gevent/timeout.py -> build/lib.linux-x86_64-3.6/gevent
  running build_ext
  Running '/bin/sh /tmp/pip-install-wmo0ey3d/gevent/libev/configure > configure-output.txt' in /tmp/pip-install-wmo0ey3d/gevent/build/temp.linux-x86_64-3.6/libev
  configure: error: in `/tmp/pip-install-wmo0ey3d/gevent/build/temp.linux-x86_64-3.6/libev':
  configure: error: no acceptable C compiler found in $PATH
  See `config.log' for more details
  building 'gevent.core' extension
  creating build/temp.linux-x86_64-3.6/gevent
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-3.6/libev -Ilibev -I/usr/local/include/python3.6m -c gevent/gevent.core.c -o build/temp.linux-x86_64-3.6/gevent/gevent.core.o
  unable to execute 'gcc': No such file or directory
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for gevent
  Running setup.py clean for gevent
  Running setup.py bdist_wheel for redis: started
  Running setup.py bdist_wheel for redis: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/83/28/e5/4b6bf5be47cb0337633c796fc4ec4c6ba5d6b6dde1364e3543
  Running setup.py bdist_wheel for billiard: started
  Running setup.py bdist_wheel for billiard: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/ab/4f/e6/c24fa73a0c43fa43eeaf3bb16b2a9a5ba0f215c5e32088c895
  Running setup.py bdist_wheel for anyjson: started
  Running setup.py bdist_wheel for anyjson: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/0a/07/b1/a704fb6e43ef7b61969239c9fce608d52c3cc85d5eb6cd3891
Successfully built snowplow-tracker pycontracts celery redis billiard anyjson
Failed to build greenlet gevent
Installing collected packages: py, pytest, greenlet, requests, pyparsing, decorator, six, pycontracts, pytz, billiard, anyjson, amqp, kombu, celery, gevent, redis, snowplow-tracker
  Running setup.py install for greenlet: started
    Running setup.py install for greenlet: finished with status 'error'
    Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmo0ey3d/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-06l6fsap/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'greenlet' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.6m -c greenlet.c -o build/temp.linux-x86_64-3.6/greenlet.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmo0ey3d/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-06l6fsap/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-wmo0ey3d/greenlet/
chuwy commented

Hello @seanblumenfeld. Your system doesn't have GCC installed which is required by some of tracker's components. Try to install GCC first.