[SOLVED] Problem with the get_file_association() function
Published: June 24, 2024 - 3:10 PM
Good morning,
I am contacting you because I have just noticed a problem with my infrastructure which no longer seems to recognize the get_file_association() function of the setuphelpers_windows.py library.
I noticed this problem because the OpenOffice 4.1.15 package refuses to install with the following error:
I haven't found a solution. Seeing that there was an update to version 2.5.5, I thought, with a bit of luck, that would solve my problem
The update went well, but the problem persists.
I think the problem will arise with other packages like LibreOffice. It's surprising; I haven't been informed of any problems with it.
So I look at how the libreoffice-fresh 7.6.4 package is formed and I see that it includes the declaration of the get_file_association() function, so the problem does not arise.
However, I can clearly see the get_file_association() function in the setuphelpers_windows.py file, I don't understand why it is not/no longer recognized.
I can work around the problem by adding the function to the openoffice package like libreoffice does, but maybe there's a problem higher up, right?
Do you have any idea?
Thanks in advance.
Baptiste
I am contacting you because I have just noticed a problem with my infrastructure which no longer seems to recognize the get_file_association() function of the setuphelpers_windows.py library.
I noticed this problem because the OpenOffice 4.1.15 package refuses to install with the following error:
Code: Select all
Ligne de Commande : install "C:\waptdev\odlb-openoffice_4.1.15-21_windows_6.1_DEV_fr-wapt\WAPT\.."
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Installing WAPT files C:\waptdev\odlb-openoffice_4.1.15-21_windows_6.1_DEV_fr-wapt
2024-06-24 13:20:36,704 CRITICAL Fatal error in install script: NameError: name 'get_file_assocation' is not defined:
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\common.py", line 4235, in install_wapt
exitstatus = setup.install()
File "C:\waptdev\odlb-openoffice_4.1.15-21_windows_6.1_DEV_fr-wapt\setup.py", line 57, in install
if get_file_assocation(".doc") is not None and get_file_assocation(".docx") is not None:
NameError: name 'get_file_assocation' is not defined
FATAL ERROR : NameError: name 'get_file_assocation' is not defined
Exit code: 3The update went well, but the problem persists.
I think the problem will arise with other packages like LibreOffice. It's surprising; I haven't been informed of any problems with it.
So I look at how the libreoffice-fresh 7.6.4 package is formed and I see that it includes the declaration of the get_file_association() function, so the problem does not arise.
However, I can clearly see the get_file_association() function in the setuphelpers_windows.py file, I don't understand why it is not/no longer recognized.
I can work around the problem by adding the function to the openoffice package like libreoffice does, but maybe there's a problem higher up, right?
Do you have any idea?
Thanks in advance.
Baptiste