Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.
This repository was archived by the owner on May 12, 2020. It is now read-only.

checking 'enable in dialogue' causing brower and sync errors #110

@eb2phkingood

Description

@eb2phkingood

Problem description

with night mode enabled and 'enable in dialog' turned on, when I click browser I get an error code. If I uncheck 'enable in dialog' then everything works find. I have tried uninstalling and re-installing both anki (2.1.15 to 2.1.19 to 2.1.11 currently) and removing night mode via anki settings as well as going to my appdata and completely removing nightmode add on and then adding it back. I only have the night mode add on, no others.

Checklist

Please put x inside brackets if following sentences apply to you:

  • [x ] I verified that I use the lastest add-on version,
  • I verified that I use the lastest Anki version,
  • I tried to disable other add-ons to find the culprit,
  • I checked if anyone reported this problem before, as well as Known issues section on add-ons page,
  • [x ] My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Details

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version: 2.1.11
Qt: 5.9.7 PyQt 5.9

Please got to Night Mode → About now and copy-paste the first line from the pop-up window below:

Night Mode 2.3.3

Please fill in your OS details (Linux/Mac/Windows):

OS: win 7

If you have a compatibility problem with a specific add-on or add-ons, please paste the add-on page links below:

Backtrace (if any)

Details

If you had an error which resulted in producing exception with a backtrace, please paste the backtrace below:

Debug info:
Anki 2.1.15 (442df9d6) Python 3.6.1 Qt 5.9.7 PyQt 5.9
Platform: Windows 7
Flags: frz=True ao=True sv=1

Caught exception:
  File "aqt\webview.py", line 27, in cmd
  File "aqt\webview.py", line 87, in _onCmd
  File "aqt\webview.py", line 368, in _onBridgeCmd
  File "aqt\toolbar.py", line 56, in _linkHandler
  File "aqt\toolbar.py", line 74, in _browseLinkHandler
  File "aqt\main.py", line 855, in onBrowse
  File "aqt\__init__.py", line 82, in open
  File "<decorator-gen-16>", line 2, in __init__
  File "anki\hooks.py", line 74, in decorator_wrapper
  File "anki\hooks.py", line 66, in repl
  File "C:\Users\Wade\AppData\Roaming\Anki2\addons21\1496166067\internals.py", line 218, in raw_new
    return wrapper(cls.instance, *args, **kwargs)
  File "C:\Users\Wade\AppData\Roaming\Anki2\addons21\1496166067\stylers.py", line 351, in init
    browser.form.searchEdit.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLength)
<class 'AttributeError'>: type object 'SizeAdjustPolicy' has no attribute 'AdjustToMinimumContentsLength'
![Capture1](https://user-images.githubusercontent.com/62861860/77867052-3c436080-71fb-11ea-9413-9f69779cb9c3.JPG)

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