Skip to content

AttributeError: type object 'QFileDialog' has no attribute 'Directory'. Did you mean: 'directory'? #3

@HaleTom

Description

@HaleTom
Anki 25.02 (038d85b1) (src) (ao)
Python 3.13.1 Qt 6.8.2 PyQt 6.8.1
Platform: Linux-6.6.75-2-MANJARO-x86_64-with-glibc2.41

Traceback (most recent call last):
  File "/home/ravi/.local/share/Anki2/addons21/1263172192/__init__.py", line 55, in importFromFolder
    mw.importDialog.setFileMode(QFileDialog.Directory)
                                ^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QFileDialog' has no attribute 'Directory'. Did you mean: 'directory'?

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
MultiDeckImporter ['1263172192', 2020-08-20T08:01, 'None', '']

===IDs of active AnkiWeb add-ons===
1263172192

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

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