Coder Social home page Coder Social logo

Comments (7)

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

Hello

What version do you use?
Probably looks like that there is issue with elasticsearch.py library.

from es2csv.

rdica avatar rdica commented on May 23, 2024

I too am having same issue,
sudo pip install es2csv
Collecting es2csv
Downloading es2csv-1.0.3-py2-none-any.whl
Collecting progressbar>=2.3 (from es2csv)
Downloading progressbar-2.3.tar.gz
Collecting elasticsearch>=2.3.0 (from es2csv)
Downloading elasticsearch-5.0.0-py2.py3-none-any.whl (57kB)
100% |████████████████████████████████| 57kB 1.5MB/s
Requirement already satisfied (use --upgrade to upgrade): urllib3<2.0,>=1.8 in /usr/lib/python2.7/site-packages (from elasticsearch>=2.3.0->es2csv)
Installing collected packages: progressbar, elasticsearch, es2csv
Running setup.py install for progressbar ... done
Successfully installed elasticsearch-5.0.0 es2csv-1.0.3 progressbar-2.3
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Fedora 24.

from es2csv.

rdica avatar rdica commented on May 23, 2024

Just tried a fresh pip install on ubuntu 16.04, same issue. Tried field args as space delimnited, also tried as ['var1','var2']

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

Thanks, @rdica.

Issue in this:

Downloading elasticsearch-5.0.0-py2.py3-none-any.whl

They have broken API again: 2.3.0 has fields arg and 5.0.0 has not. It was renamed.
Hot fix is to downgrade to version 2.3.0. I am going to bring proper version dependency in future.

from es2csv.

rdica avatar rdica commented on May 23, 2024

@taraslayshchuk
Thanks, that works...I pip unistalled es5 and installed 2.3.0...I noticed that the order of fields given is resorted alphabetically in the CSV file, is that intended behaviour? thanks again

from es2csv.

bartclarkson avatar bartclarkson commented on May 23, 2024

Thanks. Here's the provisioning bash I'm using to implement the fix described in this thread. I happen to be using ES 2.3 in my environment, as reflected below. I'm going to close this issue, as I assume (improved) compatibility with Python ES 5.0 is broader in scope.

apt-get install -y -python-pip git
pip install git+https://github.com/taraslayshchuk/es2csv.git
pip uninstall -y elasticsearch
pip install elasticsearch==2.3

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

@rdica, Yes, it is sorted.
@bartclarkson, not sure about a migration process to ES 5.0 at the moment, I am planning to hardcore dependency elasticsearch-2.*.

from es2csv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.