Giter Club home page Giter Club logo

anki-contanki's People

Contributors

aurorawright avatar roxgib avatar ryanshahidi avatar x51mon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-contanki's Issues

8BitDo Zero 2 - can't proceed on the question side of cards, but can on review...

I'm using Contanki Beta 12 with an 8BitDo on Anki 2.1.51. I coded all my key assignments into a new profile, and everything works as expected EXCEPT when answering questions. In other words, I cannot use the controller to mark my flashcards as good/hard/again/easy at the question prompt, but can at the review prompt. Any help would be appreciated.

Xbox Elite series 2 controller mac wrong mapping

I'm facing wrong mappings with a xbox elite series 2 controller on Mac. Only the A and B buttons, shoulder buttons and the right stick seem to be totally correctly mapped. Rest are a mismatch of not working(D-pad, tried remapping) or have some other random function(right shoulder button seems to turbo input "up" as it causes the cursor jump to the top and stay there even when trying to move via trackpad, very annoying). Tested the controller on windows where it works flawlessly with the add-on.

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 13.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-01-28 10:38:58

1 controller detected:
Xbox Wireless Controller (Vendor: 045e Product: 0b22)
Buttons: 16
Axes: 10

Error when trying to use addon

Hi, I keep getting this error when i try and use the addon?

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, repeat 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 on the add-ons section of our support site.

Debug info:

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1

Platform: Mac 13.0

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2022-11-04 11:50:38

Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Caught exception:

Traceback (most recent call last):

File "/Users/****/Library/Application Support/Anki2/addons21/1898790263/contanki.py", line 105, in on_config

ContankiConfig(focus, self.profile)

File "/Users/****/Library/Application Support/Anki2/addons21/1898790263/config.py", line 100, in init

self.options_page = OptionsPage(self)

File "/Users/****/Library/Application Support/Anki2/addons21/1898790263/config.py", line 239, in init

self.profile_bar = self.ProfileBar(parent)

File "/Users/****/Library/Application Support/Anki2/addons21/1898790263/config.py", line 309, in init

self.profile_combo.setCurrentIndex(p_list.index(self.profile.name))

ValueError: '8BitDo Zero' is not in list

Addon error on Linux

Hello.
Clicking the config button throws an error. Debug info as follows

Anki 2.1.50 (26d40c3a) Python 3.9.10 Qt 6.2.2 PyQt 6.2.2
Platform: Linux
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-04-13 04:55:55
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Caught exception:
Traceback (most recent call last):
  File "aqt.addons", line 944, in onConfig
  File "/home/linuxuser/.local/share/Anki2/addons21/1898790263/contanki.py", line 147, in on_config
    ContankiConfig(mw, self.profile.copy())
AttributeError: 'NoneType' object has no attribute 'copy'

I removed all addons before testing to rule out conflicts.

Quick Select controls

Is it possible to modify order of quick select controls and which button/flick will activate them?

Pro Controller double inputs

Hi, using a Switch Pro Controller as an input device, but it seems like it's double inputting button presses, so flipping a card will flip it and answer it unless the button is pressed really quickly. Not sure if this is an issue with some other application like Steam or a way that the controller has been configured though.

Addon fails to load under Windows 11

I'm running Anki 2.49 and wanted to try using my Gullikit Kingkong 2 Pro controller (normal XInput controller, like XBox controller. However, on startup I get the following error. It seems to prevent the addon from working.

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Contanki - Controller Support for Anki beta⁩':
⁨Traceback (most recent call last):
  File "aqt\addons.py", line 230, in loadAddons
  File "C:\Users\Lolle\AppData\Roaming\Anki2\addons21\1898790263\__init__.py", line 6, in <module>
    from .contanki import Contanki
  File "C:\Users\Lolle\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 13, in <module>
    from .quick import QuickSelectMenu
  File "C:\Users\Lolle\AppData\Roaming\Anki2\addons21\1898790263\quick.py", line 17, in <module>
    from .actions import button_actions
  File "C:\Users\Lolle\AppData\Roaming\Anki2\addons21\1898790263\actions.py", line 10, in <module>
    from aqt.utils import tooltip, is_mac
ImportError: cannot import name 'is_mac' from 'aqt.utils' (C:\Program Files\Anki\aqt\utils.pyc)

Error code

When opening contanki add on config - this error message shows up.
Ive tried updated my computer, and deleting and reinstalling the add in with no luck.

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 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 13.0.1
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-11-13 17:15:22
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Caught exception:
Traceback (most recent call last):
File "aqt.addons", line 962, in onConfig
File "/Users/patiencegarrett/Library/Application Support/Anki2/addons21/1898790263/contanki.py", line 105, in on_config
ContankiConfig(focus, self.profile)
File "/Users/patiencegarrett/Library/Application Support/Anki2/addons21/1898790263/config.py", line 100, in init
self.options_page = OptionsPage(self)
File "/Users/patiencegarrett/Library/Application Support/Anki2/addons21/1898790263/config.py", line 239, in init
self.profile_bar = self.ProfileBar(parent)
File "/Users/patiencegarrett/Library/Application Support/Anki2/addons21/1898790263/config.py", line 309, in init
self.profile_combo.setCurrentIndex(p_list.index(self.profile.name))
ValueError: '8BitDo Zero' is not in list

Nintendo Switch Controller "Couldn't Find Profile 'Wireless Gamepad (Vendor:0000 Product:0000)'

Hi, I'm running Anki on Windows and had this error message:

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 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-08-22 17:45:25

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 618, in _onBridgeCmd
File "aqt.hooks_gen", line 4358, in call
File "C:\Users\bentu\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 122, in on_receive_message
funcsfunc
File "C:\Users\bentu\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 63, in on_connect
self.mods = [False] * len(self.profile.mods)
AttributeError: 'NoneType' object has no attribute 'mods'

Latest update (2022-08-02) has broken the add-on

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Contanki - Controller Support for Anki beta⁩':
⁨Traceback (most recent call last):
File "aqt\addons.py", line 230, in loadAddons
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263_init_.py", line 2, in
from .contanki import Contanki
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 12, in
from .config import *
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\config.py", line 506, in
class CustomActions(QWidget):
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\config.py", line 508, in CustomActions
self, parent: ContankiConfig, tab: QWidget, actions: dict[str, str]
TypeError: 'type' object is not subscriptable

A few bugs on latest beta

  • Custom actions on latest Anki and macOS aren't triggering at all when tied to a button, I tried setting several of them but no dice, the button works again as soon as you switch to a non-custom action. Previous beta works fine
  • Contanki crashes if there's any .DS_Store file in the user_files folder (this had me confused for a while), interestingly it's not happening on the previous version.

Contanki does not work for me after 10/23/22 update

I updated it, and now it doesn't work for me anymore (the Controller option no longer appears under Tools, even when my controller is on). For reference, I use a Windows laptop.

This is the message everytime I try to press a button on my controller:

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 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1

Platform: Windows 10

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2022-10-23 05:41:24

Caught exception:

Traceback (most recent call last):

File "aqt.webview", line 42, in cmd

File "aqt.webview", line 149, in _onCmd

File "aqt.webview", line 618, in _onBridgeCmd

File "aqt.hooks_gen", line 4358, in call

File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 117, in on_receive_message

funcsfunc

File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 320, in on_connect

_controller = identify_controller(

File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\controller.py", line 122, in identify_controller

vendor_id, device_id = parse_controller_id(id_)

File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\controller.py", line 105, in parse_controller_id

return (vendor_id.lower(), device_id.lower())

AttributeError: 'NoneType' object has no attribute 'lower'

Looking for a way to fix this as this was a huge QoL change; thanks!

Clicking certain dialogs or menus prevents any actions from firing, until it's closed and they fire all at once

A fix is required on Anki's end, and is currently in the works:

ankitects/anki#1643

In the meantime, don't click the gear menu or the reviewer 'more' menu, or open any dialogs, as you'll have to use your keyboard or mouse to escape them. An interim fix might be possible, but it would probably involve either preventing the user from triggering the problematic dialogs or using hooks to close them if they do open using the controller, both of which are hard to implement and still don't allow interaction with affected dialogs.

Removing custom actions

Previously saved custom actions aren't able to be deleted from Options menu after clicking "Delete" -> "Save". No luck with closing and reopening Anki.

Circumvented bug by removing and reinstalling/reconfiguring addon.

OS: macOS
Anki version: ⁨2.1.54 (Apple Silicon Qt6)

Disconnecting Xbox One controller crashes Contanki and requires Anki restart

Anytime the Xbox One controller disconnects (either manually or auto-off shutdown), I get the error below. This either occurs immediately or after reconnecting the controller and going back into Anki.

Also, my Xbox One controller is recognized as an Xbox 360 controller, haven't been able to change the profile.

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 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.5
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-09-08 12:53:58
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 618, in _onBridgeCmd
File "aqt.hooks_gen", line 4358, in call
File "/Users/dborsuk/Library/Application Support/Anki2/addons21/1898790263/contanki.py", line 122, in on_receive_message
funcsfunc
File "/Users/dborsuk/Library/Application Support/Anki2/addons21/1898790263/contanki.py", line 63, in on_connect
self.mods = [False] * len(self.profile.mods)
AttributeError: 'NoneType' object has no attribute 'mods'

DS4 Controller detection not working

DS4 controller controller detected as 8bit pro controller. Happens with DS4 windows and without. Emulating X360 controller with DS4 windows causes crash. Issues started after today's update.

Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-10-23 09:51:53

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 618, in onBridgeCmd
File "aqt.hooks_gen", line 4358, in call
File "C:\Users\User\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 117, in on_receive_message
funcsfunc
File "C:\Users\User\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 375, in register_controllers
con = identify_controller(*(controller.split("%%%")))
File "C:\Users\User\AppData\Roaming\Anki2\addons21\1898790263\controller.py", line 122, in identify_controller
vendor_id, device_id = parse_controller_id(id
)
File "C:\Users\User\AppData\Roaming\Anki2\addons21\1898790263\controller.py", line 105, in parse_controller_id
return (vendor_id.lower(), device_id.lower())
AttributeError: 'NoneType' object has no attribute 'lower'

Beta 11 still crashes

Error

Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 13.0
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-10-25 09:09:03
Add-ons possibly involved: ⁨Contanki - Controller Support⁩

Caught exception:
Traceback (most recent call last):
File "aqt.addons", line 962, in onConfig
File "/Users/*****/Library/Application Support/Anki2/addons21/contanki/contanki.py", line 104, in on_config
ContankiConfig(focus, self.profile)
AttributeError: 'Contanki' object has no attribute 'profile'

Trying to setup the "Joy-Con" profile results in Anki throwing an error

Trying to create a new profile for the right joycon using the pre-existing Joy-Con template profile so that I can use the trigger buttons. However, when trying to modify the JoyCon profile, the following error is thrown.

Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 12.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-10-14 09:46:34
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Caught exception:
Traceback (most recent call last):
File "/Users/user/Library/Application Support/Anki2/addons21/1898790263/config.py", line 425, in refresh_options
self.setup_options()
File "/Users/user/Library/Application Support/Anki2/addons21/1898790263/config.py", line 304, in setup_options
button.setCurrentText(self.profile.axes_bindings[axis])
KeyError: 2

New Update (10/24/22) did not fix Add-On for me

I just updated the contanki add-on, and I am still getting the same message as before (I made sure to close and reopen Anki for the changes to take effect). It still can't recognize my 8bitdo controller.

This is the error message I am getting:
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 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-10-24 08:25:58

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 618, in _onBridgeCmd
File "aqt.hooks_gen", line 4358, in call
File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 123, in on_receive_message
funcsfunc
File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 329, in on_connect
_controller = identify_controller(
File "C:\Users\Owner\AppData\Roaming\Anki2\addons21\1898790263\controller.py", line 134, in identify_controller
device_name = controller_ids["devices"][vendor_id][device_id]
KeyError: None

Can this be fixed? I'd appreciate if it could! Thanks again

Cards with multiple audio fields

Currently play audio only allows you to play the first audio field.

Would it be possible to maybe add a second action that played all audio?

Invalid Code

Hello! Upon installing the Contanki Add-on, I am receiving this error:

1898790263: Invalid code, or add-on not available for your version of Anki.

I am using Anki version number Version ⁨2.1.47 (dc156f34)⁩.

If anyone knows how I can fix this, please let me know! :)

Xbox Series variant PID is missing

My (original) Xbox Series controller has these IDs: Vendor: 045e Product: 0b13 which appear to be missing in controllerIDs.json, causing it to be recognized as a DualShock (for some reason?).
Adding the PID manually worked fine so far.
image

Error Code on Controller's Auto Turn Off

The 8BitDo Zero 2 turns off after a certain delay for power saving. It can easily be turned on and connect back by clicking a button. However, every time the controller turns off like this, the entire add-on crashes with the following output:
*Also after it crashes entire anki must be reboot to regain functionality.

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 2.1.54 (b6a7760c) Python 3.9.10 Qt 6.3.1 PyQt 6.3.1
Platform: Linux
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-07-30 19:09:23
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki betaCaught exception:
Traceback (most recent call last):
  File "aqt.webview", line 42, in cmd
  File "aqt.webview", line 149, in _onCmd
  File "aqt.webview", line 618, in _onBridgeCmd
  File "aqt.hooks_gen", line 4358, in __call__
  File "/home/USER/.local/share/Anki2/addons21/1898790263/contanki.py", line 109, in on_receive_message
    funcs[func](*args)
  File "/home/USER/.local/share/Anki2/addons21/1898790263/contanki.py", line 122, in poll
    mods = tuple(
  File "/home/USER/.local/share/Anki2/addons21/1898790263/contanki.py", line 123, in <genexpr>
    buttons[mod] if mod < 100 else (True if axes[mod - 100] else False)
IndexError: list index out of range

Not working after 10/23 update

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-10-23 09:49:56

1 controller detected:
Joy-Con (L) (STANDARD GAMEPAD Vendor: 057e Product: 2006)
Buttons: 17
Axes: 2

Hello, after updating my previous button mapping settings were erased. After setting it up again, it didn't save after I restarted anki or every time the controller disconnects and reconnects. Is there a way I can install the previous version before the update? It messed up many of my reviews :(

Cursor moving

Hello, I am using this fabulous add-on on windows with X-box controller. When I am using it my cursor keeps moving to the left side of the window slowly.

Scroll up and down customization

Hey man thanks for the awesome anki controller support
I happen to have a problem with it, im using 8bit zero 2, and the scroll up and down action is broken:
In short, it doesnt scroll when i press the button it goes all the way down or all the way up
And i didnt find any option to tune it down, the « scroll speed » option doesnt change anything

is there a way to fix this ?
Thanks and sorry i posted this question here and on anki i didnt really know where is the best place to submit issue

Unable to get certain inherited controls to save

Certain inherited controls will not save. No trend noticed thus far. Tried the following:

  • changed single control (inherited), save, reopen program
  • changed multiple controls (inherited), save, reopen program

Current workaround is set same control (non-inherited) to ones that will not save.

macOS, Anki Version ⁨2.1.54 (b6a7760c)⁩

Fails to load after latest update

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Contanki - Controller Support for Anki beta⁩':
⁨Traceback (most recent call last):
File "aqt\addons.py", line 230, in loadAddons
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263_init_.py", line 6, in
from .contanki import Contanki
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 13, in
from .quick import QuickSelectMenu
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\quick.py", line 17, in
from .actions import button_actions
File "C:\Users\james\AppData\Roaming\Anki2\addons21\1898790263\actions.py", line 10, in
from aqt.utils import tooltip, is_mac
ImportError: cannot import name 'is_mac' from 'aqt.utils' (D:\Anki\aqt\utils.pyc)

Version ⁨2.1.49 (dc80804a)⁩
Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Display hint using controller

On all my language learning cards I use the built in hint: feature to hide the english translation unless I really need to check it.

Is it possible to reveal the hint using the gamepad?
Would I maybe need to use some kind of workaround like implementing the hint using a bit of javascript and listening for a keyboard shortcut?

Linux QPainter Error

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 2.1.54 (b6a7760c) Python 3.9.10 Qt 6.3.1 PyQt 6.3.1
Platform: Linux
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-07-11 20:04:16
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki betaCaught exception:
Traceback (most recent call last):
  File "aqt.webview", line 42, in cmd
  File "aqt.webview", line 149, in _onCmd
  File "aqt.webview", line 618, in _onBridgeCmd
  File "aqt.hooks_gen", line 4358, in __call__
  File "/home/user/.local/share/Anki2/addons21/1898790263/contanki.py", line 109, in on_receive_message
    funcs[func](*args)
  File "/home/user/.local/share/Anki2/addons21/1898790263/contanki.py", line 57, in on_connect
    self.controlsOverlay = ControlsOverlay(
  File "/home/user/.local/share/Anki2/addons21/1898790263/overlay.py", line 31, in __init__
    self.controls = {
  File "/home/user/.local/share/Anki2/addons21/1898790263/overlay.py", line 32, in <dictcomp>
    control: ControlButton(button, self.profile.controller, on_left=False, is_large=is_large)
  File "/home/user/.local/share/Anki2/addons21/1898790263/components.py", line 17, in __init__
    self.pixmap = get_button_icon(controller, button)
  File "/home/user/.local/share/Anki2/addons21/1898790263/funcs.py", line 86, in get_button_icon
    with QPainter(pixmap) as painter:
ValueError: QPainter must be created with a device

8bit zero 2 anki on ASUS

Hi there, new to this and following a thread of contanki add-on issues but couldn't resolve my issue. I had been using my remote for about a month and came across an error message to disable all my add-ons and figure out what is causing the problem. Contanki is the only one it could be. This had happened once before but everything kept working after I closed the error box. My error message is below:

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 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-20 01:06:17

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 42, in cmd
File "aqt.webview", line 149, in _onCmd
File "aqt.webview", line 618, in _onBridgeCmd
File "aqt.hooks_gen", line 4358, in call
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 109, in on_receive_message
funcsfunc
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\contanki.py", line 46, in on_connect
self.profile = findProfile(controller, self.len_buttons, self.len_axes)
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\profile.py", line 378, in findProfile
copyProfile(profile_to_copy, controller)
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\profile.py", line 360, in copyProfile
profile.save()
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\profile.py", line 172, in save
with open(path, 'w') as f:
OSError: [Errno 22] Invalid argument: 'C:\Users\user\AppData\Roaming\Anki2\addons21\1898790263\user_files\profiles\8BitDo Zero 2 gamepad (Vendor: 2dc8 Product: 9018)'

Also, it would show that I had 3 different controllers connected when I only had one. Not sure why this is going on and hopefully it can be resolved. I don't know anything about the way this works.

Which type of controller is best for his Add-on?

Hello from New York City!

Which game pad works best with Anki-contanki: Xbox, PlayStation or another compatible brand?
Which type of game pad offers the best performance with Anki-contanki?

Also does Anki-contanki also work with Anki installed on an Android phone?
Looking forward to trying this Anki-contanki. Thank you.

New Update Crashes Anki

Hello,
The 10/24 update has caused anki to crash upon any button input. I could not get a crash report

Overlay on top of another plugin

I've got another plugin that shows information on the top of the review screen and the overlay overlaps this a bit. Is there a setting to move the overlay down? I can't seem to find one.

I think it might be useful to be able to tweak the location (and potentially the size) of the overlay, to be more flexible with different card layouts, plugins etc.

clipImage_02022023104228

Updated now Not Working :-(

Hi All
Just updated this FANTASTIC add on, and now it's not working at all. Been using an XBox 360 style controller (white). Was working perfectly before updating, now this error comes up below. Please help as this app was a gamechanger!!!


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, repeat 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 on the add-ons section of our support site.
Debug info:
Anki 2.1.45 (355e66e8) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-06-27 07:55:39
Add-ons possibly involved: ⁨Contanki - Controller Support for Anki beta⁩

Unable to Load on Mac

Getting the error message below. Tried uninstall/reinstall.

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on. When loading '⁨Contanki - Controller Support for Anki beta⁩': ⁨Traceback (most recent call last): File "aqt/addons.py", line 230, in loadAddons File "/Users/Library/Application Support/Anki2/addons21/1898790263/init.py", line 6, in from .contanki import Contanki File "/Users/Library/Application Support/Anki2/addons21/1898790263/contanki.py", line 13, in from .quick import QuickSelectMenu File "/Users/Library/Application Support/Anki2/addons21/1898790263/quick.py", line 17, in from .actions import button_actions File "/Users/Library/Application Support/Anki2/addons21/1898790263/actions.py", line 10, in from aqt.utils import tooltip, is_mac ImportError: cannot import name 'is_mac' from 'aqt.utils' (/Applications/Anki.app/Contents/MacOS/aqt/utils.pyc)

Cursor error with XBox Series Controller

An joystick with the cursor option set on a XBox Series controller shows an error message (as a tool tip) when using it:
Error: setX(self, int): argument 1 has unexpected type 'float'.

overlay always on inhibits normal mouse clicks

Hello,

Thanks for the add on it's really great and the overlays are really useful. I am using the latest add-on version from ankiweb, so the beta version 2.1.54~ I believe. I am using anki version Version ⁨2.1.54 (b6a7760c)⁩. I am also using a wired xbox 360 controller.

Checking the overlay always on check box immediately stops all mouse interactions with the "decks, add, browse [...]" menu and the decks and subdecks menu:
image

Note: interaction with the main toolbar, i.e. the "File, Edit, View, [...]" menu remains in tact.

Not only regular mouse interactions with the mentioned menus are inhibited but also the mouse which is controlled by the controller cannot click either. This includes both right and left mouse clicks and even the mouse hover interactions such as the underline appearing when hovering over a deck or subdeck.

Hopefully this format was good and detailed enough. Thanks again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.