myarik / django-rest-elasticsearch

Elasticsearch support for Django REST Framework
Other
192 stars 38 forks source link

Failed building wheel for django-rest-elasticsearch #9

Closed yogeek closed 7 years ago

yogeek commented 7 years ago

Hello @myarik ,

Environment: docker image python:3.4-slim

When attempting to install the package, the following error appears :

Connect into the container : docker run --rm -it -e http_proxy=$http_proxy -e https_proxy=$https_proxy python:3.4-slim bash

Install the package :

root@6fe4d2a59034:/# pip install django-rest-elasticsearch
Collecting django-rest-elasticsearch
  Downloading django-rest-elasticsearch-0.3.0.tar.gz
Collecting Django<1.11,>=1.8 (from django-rest-elasticsearch)
  Downloading Django-1.10.7-py2.py3-none-any.whl (6.8MB)
    100% |████████████████████████████████| 6.8MB 178kB/s 
Collecting djangorestframework>=3.2.0 (from django-rest-elasticsearch)
  Downloading djangorestframework-3.6.3-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 552kB/s 
Collecting elasticsearch-dsl<6.0.0,>=5.0.0 (from django-rest-elasticsearch)
  Downloading elasticsearch_dsl-5.3.0-py2.py3-none-any.whl (46kB)
    100% |████████████████████████████████| 51kB 6.6MB/s 
Collecting six (from elasticsearch-dsl<6.0.0,>=5.0.0->django-rest-elasticsearch)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting elasticsearch<6.0.0,>=5.0.0 (from elasticsearch-dsl<6.0.0,>=5.0.0->django-rest-elasticsearch)
  Downloading elasticsearch-5.4.0-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 9.6MB/s 
Collecting python-dateutil (from elasticsearch-dsl<6.0.0,>=5.0.0->django-rest-elasticsearch)
  Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
    100% |████████████████████████████████| 194kB 2.9MB/s 
Collecting urllib3<2.0,>=1.8 (from elasticsearch<6.0.0,>=5.0.0->elasticsearch-dsl<6.0.0,>=5.0.0->django-rest-elasticsearch)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 133kB 3.9MB/s 
Building wheels for collected packages: django-rest-elasticsearch
  Running setup.py bdist_wheel for django-rest-elasticsearch ... error
  Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8k5shqj6/django-rest-elasticsearch/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/tmpvizv4p67pip-wheel- --python-tag cp34:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_mixins.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_generics.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/__init__.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_pagination.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_filters.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_views.py -> build/lib/rest_framework_elasticsearch
  copying rest_framework_elasticsearch/es_serializer.py -> build/lib/rest_framework_elasticsearch
  running egg_info
  writing requirements to django_rest_elasticsearch.egg-info/requires.txt
  writing django_rest_elasticsearch.egg-info/PKG-INFO
  writing dependency_links to django_rest_elasticsearch.egg-info/dependency_links.txt
  writing top-level names to django_rest_elasticsearch.egg-info/top_level.txt
  reading manifest file 'django_rest_elasticsearch.egg-info/SOURCES.txt'
  writing manifest file 'django_rest_elasticsearch.egg-info/SOURCES.txt'
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_mixins.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_generics.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/__init__.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_pagination.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_filters.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_views.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  copying build/lib/rest_framework_elasticsearch/es_serializer.py -> build/bdist.linux-x86_64/wheel/rest_framework_elasticsearch
  running install_egg_info
  Copying django_rest_elasticsearch.egg-info to build/bdist.linux-x86_64/wheel/django_rest_elasticsearch-0.3.0-py3.4.egg-info
  running install_scripts
  error: [Errno 2] No such file or directory: 'LICENSE'

  ----------------------------------------
  Failed building wheel for django-rest-elasticsearch
  Running setup.py clean for django-rest-elasticsearch
Failed to build django-rest-elasticsearch
Installing collected packages: Django, djangorestframework, six, urllib3, elasticsearch, python-dateutil, elasticsearch-dsl, django-rest-elasticsearch
  Running setup.py install for django-rest-elasticsearch ... done
Successfully installed Django-1.10.7 django-rest-elasticsearch-0.3.0 djangorestframework-3.6.3 elasticsearch-5.4.0 elasticsearch-dsl-5.3.0 python-dateutil-2.6.1 six-1.10.0 urllib3-1.22

The LICENSE file (which is yet present in the repository) seems to be missing... and indeed when I looked in to the tar.gz archive on pipy, it is not included in the package.

Can you help me figure this out please ?

myarik commented 7 years ago

Fixed in 0.3.1; I'd forgotten to include the necessary data files in the MANIFEST. Thanks.