Skip to content

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

@supasonix-zuv

Description

@supasonix-zuv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions