Skip to content

AttributeError: type object 'QTextCursor' has no attribute 'End' #6

@gerhard4

Description

@gerhard4

I get the error below when I do the following:

  1. Open card browser
  2. Right-click on a card
  3. Click on "Advanced Copy..."
  4. Select "Custom" in the "Action" field.

The actual copy functionality doesn't seem to be affected, but the "Source Field" and the "Template" of the dialog don't look quite right:
image

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-27 11:49:10
Add-ons possibly involved: ⁨Advanced Copy Fields⁩

Caught exception:
Traceback (most recent call last):
  File "C:\Users\...\AppData\Roaming\Anki2\addons21\1898445115\advanced_copy_fields.py", line 433, in onActionIndexChange
    self.onCustom()
  File "C:\Users\...\AppData\Roaming\Anki2\addons21\1898445115\advanced_copy_fields.py", line 419, in onCustom
    cursor.movePosition(QtGui.QTextCursor.End)
AttributeError: type object 'QTextCursor' has no attribute 'End'

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