tsengwoody / Access8Math

Allows access math content written by MathML ; Assist writing math content by LaTeX
GNU General Public License v2.0
32 stars 15 forks source link

Error at Access8Math initialization when running NVDA from source #64

Closed CyrilleB79 closed 7 months ago

CyrilleB79 commented 2 years ago

Steps to reproduce

Just run NVDA from source with usual user config having Access8Math installed: runnvda.bat -c %appdata%\nvda

Actual behaviour

Error when the add-on is loaded upon NVDA start:

ERROR - external:globalPluginHandler.listPlugins (10:53:01.752) - MainThread (1788):
Error importing global plugin Access8Math
Traceback (most recent call last):
  File "globalPluginHandler.py", line 23, in listPlugins
    plugin = importlib.import_module("globalPlugins.%s" % name, package="globalPlugins").GlobalPlugin
  File "C:\Users\Cyrille\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\__init__.py", line 99, in <module>
    from editor import EditorFrame
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\editor.py", line 9, in <module>
    from lib.viewHTML import raw2review
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\lib\viewHTML.py", line 19, in <module>
    import html5lib
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\package\html5lib\__init__.py", line 25, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\package\html5lib\html5parser.py", line 6, in <module>
    from . import _inputstream
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\package\html5lib\_inputstream.py", line 14, in <module>
    from . import _utils
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\package\html5lib\_utils.py", line 13, in <module>
    import xml.etree.ElementTree as default_etree
ImportError: cannot import name 'etree' from 'python.xml' (C:\Users\Cyrille\AppData\Roaming\nvda\addons\Access8Math\globalPlugins\Access8Math\python\xml\__init__.py)

Expected behaviour

No error

tsengwoody commented 2 years ago

I test Access8Math last commit is no error when running NVDA from source. Whether it is caused by other plugins, test to see the environment where only Access8Math addon is installed.

CyrilleB79 commented 2 years ago

Thanks Woody for your answer. I have performed further tests and have reached the following conclusion. The error occurs when:

Both add-on work well separately. Could you have a look at this conflict between these two add-ons?

Also cc @nvdaes, author of ReadFeeds add-on.