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

v2.0.0 not published on PyPi #99

Closed
stormriderDE opened this issue Dec 1, 2020 · 8 comments
Closed

v2.0.0 not published on PyPi #99

stormriderDE opened this issue Dec 1, 2020 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@stormriderDE
Copy link

stormriderDE commented Dec 1, 2020

Hi Markus,

unfortunately I have some trouble with ElasticSearch and can't get the code running properly. I receive this TypeError: init() missing 1 required positional argument: 'el_version'

(virtual_env) M-Air:Documents michael$ py-image-dedup deduplicate -d "/Users/michael/Desktop/bilder_test/input" -dr -esh "127.0.0.1"
Traceback (most recent call last):
  File "/Users/michael/Documents/python_workspace/virtual_env/bin/py-image-dedup", line 8, in <module>
    sys.exit(cli())
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/py_image_dedup/cli/Main.py", line 91, in c_deduplicate
    image_signature_store=ElasticSearchStoreBackend(
  File "/Users/michael/Documents/Python_Workspace/virtual_env/lib/python3.8/site-packages/py_image_dedup/persistence/ElasticSearchStoreBackend.py", line 41, in __init__
    self._store = SignatureES(
TypeError: __init__() missing 1 required positional argument: 'el_version'

What can I do to solve this issue?

Thanks in advance,
Michael

@markusressel
Copy link
Owner

What elasticsearch version are you running?

@stormriderDE
Copy link
Author

Hi Markus,

here's the snapshot of my running ElasticSearch.

image

Thanks for your guidance,
Michael

@markusressel
Copy link
Owner

Should be working with this version. How did you install py-image-dedup? Any chance you are not running the latest version?

@stormriderDE
Copy link
Author

I've tried two approaches:

  1. pip3 install py-image-dedup via terminal
  2. Clone respository and pipenv install via terminal

@markusressel
Copy link
Owner

Huh, seems like v2.0.0 was not pushed to pypi properly. I guess thats causing issues for some. The "clone repo" method should work though. Check that you only have one version installed at a time, or even better, use the docker version.

@markusressel markusressel changed the title Problem with ElasticSearch v2.0.0 not published on PyPi Dec 7, 2020
@markusressel
Copy link
Owner

I have pushed v2.0.0 to PyPi now. Please report back if you still encounter the problem.

@markusressel markusressel added the bug Something isn't working label Dec 7, 2020
@markusressel markusressel self-assigned this Dec 7, 2020
@markusressel
Copy link
Owner

closing because of inactivity

@chijiao
Copy link

chijiao commented Feb 16, 2021

same problem!

Traceback (most recent call last):
  File "cli.py", line 94, in <module>
    cli()
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "cli.py", line 55, in c_deduplicate
    deduplicator = ImageMatchDeduplicator(interactive=True)
  File "/usr/local/lib/python3.8/dist-packages/py_image_dedup/library/deduplicator.py", line 49, in __init__
    self._persistence: ImageSignatureStore = ElasticSearchStoreBackend(
  File "/usr/local/lib/python3.8/dist-packages/py_image_dedup/persistence/elasticsearchstorebackend.py", line 73, in __init__
    self._store = SignatureES(
  File "/usr/local/lib/python3.8/dist-packages/image_match/elasticsearch_driver.py", line 47, in __init__
    super(SignatureES, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/image_match/signature_database_base.py", line 182, in __init__
    self.gis = ImageSignature(n=n_grid, crop_percentiles=crop_percentile, *signature_args, **signature_kwargs)
TypeError: __init__() got an unexpected keyword argument 'el_version'
henry@DESKTOP-L25TGHU:/mnt/f$ curl 127.0.0.1:9200
{
  "name" : "DESKTOP-L25TGHU",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "aEQvTnOwQyWBUJJTIs-LCA",
  "version" : {
    "number" : "7.11.0",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "8ced7813d6f16d2ef30792e2fcde3e755795ee04",
    "build_date" : "2021-02-08T22:44:01.320463Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

installed by pip3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants