Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elasticsearch7.9.3导出索引数据为csv出现异常unsupported operand type(s) for -: 'dict' and 'int' #88

Open
liqunlin opened this issue Jul 31, 2024 · 0 comments

Comments

@liqunlin
Copy link

从elasticsearch7.9.3导出索引数据为csv,出现异常,报错如下,挺好的工具,啥时更新支持es7.x、es8.x?
Found {u'relation': u'eq', u'value': 1032} results.
Traceback (most recent call last):
File "/usr/bin/es2csv", line 9, in
load_entry_point('es2csv==5.5.2', 'console_scripts', 'es2csv')()
File "/usr/lib/python2.7/site-packages/es2csv_cli.py", line 53, in main
es.search_query()
File "/usr/lib/python2.7/site-packages/es2csv.py", line 26, in f_retry
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/es2csv.py", line 148, in search_query
bar = progressbar.ProgressBar(widgets=widgets, maxval=self.num_results).start()
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 633, in start
self.update(self.min_value, force=True)
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 579, in update
StdRedirectMixin.update(self, value=value)
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 141, in update
DefaultFdMixin.update(self, value=value)
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 68, in update
line = converters.to_unicode('\r' + self._format_line())
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 508, in _format_line
widgets = ''.join(self._to_unicode(self._format_widgets()))
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 473, in _format_widgets
data = self.data()
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 401, in data
percentage=self.percentage,
File "/usr/lib/python2.7/site-packages/progressbar/bar.py", line 320, in percentage
total = self.max_value - self.min_value
TypeError: unsupported operand type(s) for -: 'dict' and 'int'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant