Page 1 of 1

[SOLVED] Error with Office 2016 package

Published: January 24, 2023 - 11:54 AM
by t.heroult
Good morning

I'm trying to use the package for Office 2016, but it crashes every time and I don't see why.
Here is the console:

Code: Select all

2023-01-24 11:53:50,502 CRITICAL Error importing c:\waptdev\ln-msoffice_2016-42_windows_PROD\setup.py :
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptutils.py", line 1520, in import_setup
    py_mod = imp.load_source(modulename, setupfilename)
  File "imp.py", line 171, in load_source
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 839, in exec_module
  File "<frozen importlib._bootstrap_external>", line 976, in get_code
  File "<frozen importlib._bootstrap_external>", line 906, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "c:\waptdev\ln-msoffice_2016-42_windows_PROD\setup.py", line 54
    silentxml = ur"""<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
   <Setting Id="SETUP_REBOOT" Value="NEVER" />
</Configuration>
"""
                  ^
SyntaxError: invalid syntax

FATAL ERROR : SyntaxError: invalid syntax (setup.py, line 54)
Any ideas?

Sincerely,
Tom

Re: Error with Office 2016 package

Published: January 24, 2023 - 12:06 PM
by t.heroult
I already know that it's related to the end of setup.py:

Code: Select all

silentxml = ur"""<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
   <Setting Id="SETUP_REBOOT" Value="NEVER" />
</Configuration>
"""
If I remove it, things seem to get better...

Re: Error with Office 2016 package

Published: January 24, 2023 - 12:20 PM
by sfonteneau
Oh, I hadn't noticed, but the package isn't up to date on the store; it's still in Python 2

You can replace:

Code: Select all

silentxml = ur"""

Code: Select all

silentxml = r"""

Re: Error with Office 2016 package

Published: January 24, 2023 - 12:50 PM
by t.heroult
Arf!
It's such a small thing :)

! Thank you!