blindpandas / chessmart

The most accessible chessboard in the planet earth
GNU General Public License v2.0
12 stars 1 forks source link

I'm afraid it doesn't actually work on nvda 2022.2/2022.3 #1

Open zersiax opened 1 year ago

zersiax commented 1 year ago

Just tried to install this one, but get the error below when trying to run it:

Error importing global plugin chessmart Traceback (most recent call last): File "globalPluginHandler.pyc", line 23, in listPlugins File "importlib__init.pyc", line 127, in import_module File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart__init.py", line 43, in from .graphical_interface.new_game_dialog import NewGameOptionsDialog File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\graphical_interface\new_game_dialog.py", line 12, in from ..internet_chess import LichessAPIClient File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\internet_chess\init__.py", line 11, in from .lichess import LichessAPIClient File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\internet_chess\lichess.py", line 40, in import lichess_client File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\lichess_client\init.py", line 1, in from lichess_client.clients import APIClient File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\lichess_client\clients\init.py", line 1, in from lichess_client.clients.client import APIClient File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\lichess_client\clients\client.py", line 2, in from lichess_client.clients.base_client import BaseClient File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\lichess_client\clients\base_client.py", line 7, in from aiohttp import ClientSession, ClientTimeout File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\aiohttp\init__.py", line 6, in from .client import ( File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\aiohttp\client.py", line 35, in from . import hdrs, http, payload File "C:\Users\flori\AppData\Roaming\nvda\addons\chessmart\globalPlugins\chessmart\lib\lichess\aiohttp\http.py", line 71, in http.server.BaseHTTPRequestHandler.responses AttributeError: module 'http' has no attribute 'server'

Might be a capitalization thing, or it's just broken outright :)

ivnc commented 1 year ago

@zersiax have you any add-on from André, such as Braille Extender, Markdown Forever etc. installed? Try disabling it, that may do the trick. An user has reported the exact same error via Facebook to the NVDA.es page and he determined that was a conflict with Markdown Forever. We tried to reproduce it and discovered that it happens also with BrailleExtender. I suspect that one of these add-ons, or even this one itself, may be patching the http module and that patch affects Chessmart initialization.

denizsincar29 commented 1 year ago

just use your own http module. why does something patch global things? it'd be nice if an addon can patch something just in their namespace!