-
Notifications
You must be signed in to change notification settings - Fork 49
Issue processing into Elasticsearch #41
Copy link
Copy link
Closed
Description
Hi,
I have both paperetl and elasticsearch set up in docker containers running on my machine. When I try and process a .pdf file and add it to elasticsearch I get the error:
python -m paperetl.file paperetl/data http://localhost:9200 paperetl/models
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/paperetl/file/__main__.py", line 15, in <module>
sys.argv[4] == "True" if len(sys.argv) > 4 else False,
File "/usr/local/lib/python3.7/dist-packages/paperetl/file/execute.py", line 176, in run
db = Factory.create(url, replace)
File "/usr/local/lib/python3.7/dist-packages/paperetl/factory.py", line 29, in create
return Elastic(url, replace)
File "/usr/local/lib/python3.7/dist-packages/paperetl/elastic.py", line 44, in __init__
exists = self.connection.indices.exists("articles")
File "/usr/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/utils.py", line 308, in wrapped
"Positional arguments can't be used with Elasticsearch API methods. "
TypeError: Positional arguments can't be used with Elasticsearch API methods. Instead only use keyword arguments.
I assume it something to do with Elasticsearch changing in V8 but not sure.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working