Skip to content

Update py2exe to version 0.11.0.0#13057

Merged
seanbudd merged 2 commits intonvaccess:masterfrom
lukaszgo1:I12357
Nov 15, 2021
Merged

Update py2exe to version 0.11.0.0#13057
seanbudd merged 2 commits intonvaccess:masterfrom
lukaszgo1:I12357

Conversation

@lukaszgo1
Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #12357

Summary of the issue:

NVDA currently uses py2exe version 0.10.1.0 to create a binary version since never versions of py2exe causes errors during build (py2exe/py2exe#112). These errors has been fixed by @albertosottile in version 0.11.0.0. While never version of py2exe does not provide us with any advantages for now not upgrading regularly might make it difficult to do so when we would need to move to Python 3.10 or later (currently used version of py2exe supports only up to 3.9).

Description of how this pull request fixes the issue:

Updates version of py2exe we're using to 0.11.0.0

Testing strategy:

  • Created a self signed launcher - made sure that NVDA functions well in general
  • Tested that NVDA_eoaproxy works
  • Smoke tested NVDA-dmp and NVDA_slave

Known issues with pull request:

A try branch should be created from this one before it is merged so that we can ensure that .appx package can be created.

Change log entries:

For Developers

  • Updated py2exe to version 0.11.0.0

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English

@lukaszgo1 lukaszgo1 requested a review from a team as a code owner November 14, 2021 12:21
@lukaszgo1 lukaszgo1 requested a review from seanbudd November 14, 2021 12:21
@lukaszgo1
Copy link
Copy Markdown
Contributor Author

I'd be nice to merge this ASAP to give it a good testing in Alpha just to be on the safe side.

@seanbudd
Copy link
Copy Markdown
Member

@lukaszgo1
Copy link
Copy Markdown
Contributor Author

Judging from the build log and created artifacts .appx packages can be created successfully. This is good to go to Alpha!

@seanbudd seanbudd merged commit f2a6f89 into nvaccess:master Nov 15, 2021
@nvaccessAuto nvaccessAuto added this to the 2022.1 milestone Nov 15, 2021
@lukaszgo1 lukaszgo1 deleted the I12357 branch November 15, 2021 23:22
@codeofdusk
Copy link
Copy Markdown
Contributor

codeofdusk commented Nov 16, 2021

After this PR, in Notepad++:

Traceback (most recent call last):
  File "C:\projects\nvda\source\core.py", line 232, in _setInitialFocus
  File "C:\projects\nvda\source\NVDAObjects\__init__.py", line 304, in objectWithFocus
  File "C:\projects\nvda\source\NVDAObjects\__init__.py", line 92, in __call__
  File "C:\projects\nvda\source\NVDAObjects\IAccessible\__init__.py", line 469, in findOverlayClasses
  File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'NVDAObjects.IAccessible.scintilla'

Notably, I have no "c:\projects\NVDA" on my machine...

@seanbudd

This comment has been minimized.

@seanbudd
Copy link
Copy Markdown
Member

@codeofdusk I can confirm this issue - very strange. Reverting this PR

seanbudd added a commit that referenced this pull request Nov 16, 2021
seanbudd added a commit that referenced this pull request Nov 16, 2021
@lukaszgo1 lukaszgo1 mentioned this pull request Nov 17, 2021
5 tasks
seanbudd pushed a commit that referenced this pull request Nov 18, 2021
Closes #12357

Summary of the issue:
NVDA currently uses py2exe version 0.10.1.0 to create a binary version since never versions of py2exe causes errors during build (py2exe/py2exe#112). These errors has been fixed by @albertosottile in version 0.11.0.0. While never version of py2exe does not provide us with any advantages for now not upgrading regularly might make it difficult to do so when we would need to move to Python 3.10 or later (currently used version of py2exe supports only up to 3.9).

Description of how this pull request fixes the issue:
Updates version of py2exe we're using to 0.11.0.1

Testing strategy:
Created a self signed launcher - made sure that NVDA functions well in general
Tested that NVDA_eoaproxy works
Smoke tested NVDA-dmp and NVDA_slave
Ensured that correct file names are shown in tracebacks ((see Update py2exe to version 0.11.0.0 #13057)
Ensured that entire content of NVDAObjects package is included in the library.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to py2exe 0.10.2.0 or later

4 participants