Skip to content

Regression: when rebuilding scons source, the source target was obscured and could not be run from source. #16535

@hwf1324

Description

@hwf1324

Related: #16208

The Alias function is used in nvdaHelper\liblouis\sconscript to set the alias of testTable to the source target.
This caused the `source' target to be masked and the build system did not build it correctly.

Steps to reproduce:

  1. git clone --recursive https://github.com/YOUR-USERNAME/nvda.git
  2. cd nvda
  3. scons source
  4. runnvda

Actual behavior:

NVDA is not running.

Expected behavior:

NVDA running from source

NVDA logs, crash dumps and other attachments:

INFO - __main__ (06:38:38.434) - MainThread (6664):
Starting NVDA version source-2fb42d5-2fb42d5
INFO - core.main (06:38:38.666) - MainThread (6664):
Config dir: D:\NVDA\hwf1324\nvda\source\userConfig
INFO - config.ConfigManager._loadConfig (06:38:38.669) - MainThread (6664):
Loading config: D:\NVDA\hwf1324\nvda\source\userConfig\nvda.ini
CRITICAL - __main__ (06:38:38.747) - MainThread (6664):
core failure
Traceback (most recent call last):
  File "nvda.pyw", line 415, in <module>
    core.main()
  File "core.py", line 649, in main
    import NVDAHelper
  File "NVDAHelper.py", line 32, in <module>
    import eventHandler
  File "eventHandler.py", line 13, in <module>
    import api
  File "api.py", line 15, in <module>
    import review
  File "review.py", line 15, in <module>
    from NVDAObjects import NVDAObject, NVDAObjectTextInfo
  File "NVDAObjects\__init__.py", line 25, in <module>
    from displayModel import DisplayModelTextInfo
  File "displayModel.py", line 17, in <module>
    import mouseHandler
  File "mouseHandler.py", line 10, in <module>
    import gui
  File "gui\__init__.py", line 15, in <module>
    import ui
  File "ui.py", line 29, in <module>
    import braille
  File "braille.py", line 35, in <module>
    import louisHelper
  File "louisHelper.py", line 23, in <module>
    import louis
ModuleNotFoundError: No module named 'louis'

System configuration

NVDA installed/portable/running from source:

source

NVDA version:

master

Windows version:

Name and version of other software in use when reproducing the issue:

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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