Skip to content

Import errors in latest next snapshots in onUninstall of addons #6749

@derekriemer

Description

@derekriemer

I've been seeing this error with snapshots lately, and with some addons like wintenapps and one test version of Dictation bridge, before I removed import of GUI.
Could this be a regression? Otherwise, must we import GUI late, I.E. from within onInstall to avoid this? If so, this should be documented in the dev guide.

INFO - main (13:31:17):
Starting NVDA
INFO - core.main (13:31:18):
Config dir: C:\Users\derek_2\AppData\Roaming\nvda
INFO - config.ConfigManager.loadConfig (13:31:18):
Loading config: C:\Users\derek_2\AppData\Roaming\nvda\nvda.ini
INFO - core.main (13:31:18):
NVDA version next-13776,45cf45d9
INFO - core.main (13:31:18):
Using Windows version 10.0.14393 workstation
INFO - core.main (13:31:18):
Using Python version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
INFO - core.main (13:31:18):
Using comtypes version 0.6.2
DEBUGWARNING - Python warning (13:31:18):
C:\Users\derek_2\AppData\Roaming\nvda\addons\wintenApps\installTasks.py:8: RuntimeWarning: Parent module 'addons.wintenApps' not found while handling absolute import
DEBUGWARNING - Python warning (13:31:18):
C:\Users\derek_2\AppData\Roaming\nvda\addons\wintenApps\installTasks.py:9: RuntimeWarning: Parent module 'addons.wintenApps' not found while handling absolute import
ERROR - addonHandler.Addon.completeRemove (13:31:18):
task 'onUninstall' on addon 'wintenApps' failed
Traceback (most recent call last):
File "addonHandler.pyc", line 255, in completeRemove
File "addonHandler.pyc", line 363, in runInstallTask
File "addonHandler.pyc", line 343, in loadModule
File "pkgutil.pyc", line 246, in load_module
File "C:\Users\derek_2\AppData\Roaming\nvda\addons\wintenApps\installTasks.py", line 9, in
File "gui_init
.pyc", line 18, in
File "ui.pyc", line 19, in
File "speech.pyc", line 18, in
File "api.pyc", line 10, in
File "textInfos_init_.pyc", line 211, in
File "textInfos_init_.pyc", line 440, in TextInfo
AttributeError: 'module' object has no attribute 'CHUNK_SEPARATOR'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/regressionp2https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions