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

AttributeError: 'Client' object has no attribute 'file_metadata' #13

Open
supasonix-zuv opened this issue May 25, 2022 · 0 comments
Open

Comments

@supasonix-zuv
Copy link

supasonix-zuv commented May 25, 2022

So I've been having this issue for about a month, but it's been on the back-burner for a while. I believe it was after a python update in my system (Gentoo). I'm no coder so I can't really figure out anything to fix it. Any search fails with this error message

/home/[redacted]/.local/lib/python3.9/site-packages/hydrus/__init__.py:20: UserWarning: Importing "hydrus" is deprecated, please use "hydrus_api" instead.
  warnings.warn('Importing "hydrus" is deprecated, please use "hydrus_api" instead.')
Traceback (most recent call last):
  File "/home/[redacted]/.local/bin/iqdb-tagger", line 8, in <module>
    sys.exit(cli())
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/flask/cli.py", line 579, in main
    return super().main(*args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/flask/cli.py", line 427, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/[redacted]/.local/lib/python3.9/site-packages/iqdb_tagger/__main__.py", line 530, in search_hydrus_and_send_url
    for res_dict in get_hydrus_set(search_tags, cl, resize=not no_resize):
  File "/home/[redacted]/.local/lib/python3.9/site-packages/iqdb_tagger/__main__.py", line 480, in get_hydrus_set
    metadata_sets.extend(cl.file_metadata(file_ids=file_ids, only_identifiers=True))
AttributeError: 'Client' object has no attribute 'file_metadata'

outpus of --versions are

Iqdb-Tagger 0.3.2
Python 3.9.12
Flask 2.1.2
Werkzeug 2.1.2

I also have Python3.8.13 and Python3.10.4 as slotted versions, but 3.9.12 is the default version in use. Any help is appreciated.

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