Not working anymore

Parola's Avatar

Parola

21 May, 2020 06:22 PM

Informação de Debug:
Anki 2.1.25 (898801eb) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-05-20 22:25:26

Caught exception:
Traceback (most recent call last):
  File "C:\Users\Delbrasomc\AppData\Roaming\Anki2\addons21\1362209126\__init__.py", line 400, in run
    data = re.search(regex, r.text).group(1).strip()
AttributeError: 'NoneType' object has no attribute 'group'

Caught exception:
Traceback (most recent call last):
  File "C:\Users\Delbrasomc\AppData\Roaming\Anki2\addons21\1362209126\__init__.py", line 262, in onCode
    self.label_results.setText(("Importing deck {0}...".format(deck["title"])))
TypeError: 'NoneType' object is not subscriptable

  1. 1 Posted by kelciour on 21 May, 2020 07:02 PM

    kelciour's Avatar

    Hi Parola,

    Try to import the same set a few times. If nothing changed in the last few days on Quizlet, one of the attempts will be successful.

    I'm not sure how frequently the add-on's developer monitors this forum. Maybe it'd be better to notify him about the problem with the add-on by creating a new issue - https://github.com/sviatoslav-lebediev/anki-quizlet-importer-extend...

  2. 2 Posted by Alexandre Parol... on 21 May, 2020 07:26 PM

    Alexandre Parola's Avatar

    Thanks a lot. Will do!!

  3. 3 Posted by irvinborder on 06 Aug, 2020 05:31 AM

    irvinborder's Avatar

    This error means that you attempted to index an object that doesn’t have that functionality. You might have noticed that the method sort() that only modify the list have no return value printed – they return the default None. ‘NoneType’ object is not subscriptable is the one thrown by python when you use the square bracket notation object[key] where an object doesn’t define the getitem method . This is a design principle for all mutable data structures in Python. You can reproduce TypeError that you get in your code if you try this at the Python command line:

    None[0]

    None has a special status in Python. It is a favourite baseline value because many algorithms treat it as an exceptional value, used in many places in the language and library to represent the absence of some other value .

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac