taraslayshchuk / es2csv

Export from an Elasticsearch into a CSV file
Apache License 2.0
510 stars 191 forks source link

Error on requirements file #16

Closed chicco27 closed 7 years ago

chicco27 commented 7 years ago

Hi, with the last commit on requirements.txt raise this error on install: raise ValueError(msg, line, "at", line[p:]) ValueError: ("Expected ',' or end-of-list in", 'elasticsearch ==2.4.*', 'at', '*')

In the requirements file you can't insert stars(*). The correct code is for example: elasticsearch>=2.4.0,<5.0.0 progressbar2>=3.10.0

taraslayshchuk commented 7 years ago
$ sudo pip install es2csv
The directory '/home/tlais/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/tlais/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting es2csv
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading es2csv-2.4.0-py2-none-any.whl
Collecting progressbar2==3.10.* (from es2csv)
  Downloading progressbar2-3.10.1-py2.py3-none-any.whl
Collecting elasticsearch==2.4.* (from es2csv)
  Downloading elasticsearch-2.4.0-py2.py3-none-any.whl (54kB)
    100% |████████████████████████████████| 61kB 1.7MB/s 
Collecting python-utils>=2.0.0 (from progressbar2==3.10.*->es2csv)
  Downloading python_utils-2.0.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): urllib3<2.0,>=1.8 in /usr/local/lib/python2.7/dist-packages (from elasticsearch==2.4.*->es2csv)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from python-utils>=2.0.0->progressbar2==3.10.*->es2csv)
Installing collected packages: python-utils, progressbar2, elasticsearch, es2csv
  Found existing installation: elasticsearch 2.3.0
    Uninstalling elasticsearch-2.3.0:
      Successfully uninstalled elasticsearch-2.3.0
Successfully installed elasticsearch-2.4.0 es2csv-2.4.0 progressbar2-3.10.1 python-utils-2.0.0
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
$ python --version
Python 2.7.6
$ pip --version
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"

Which version of pip did you use?

chicco27 commented 7 years ago

Is the version of pip, I upgrade to 8.1.2 and works fine. Thank you.

taraslayshchuk commented 7 years ago

It is supported.