Page 1 of 1

[SOLVED] service_list: predefined function that... does not exist.

Published: November 4, 2022 - 3:57 PM
by t.heroult
Good morning
When coding a setup.py file, I want to use the function service_list()from setuphelpers.
Autocomplete suggests it, and it's indeed present in setuphelpers_windows.py, which is loaded correctly, but when I run the setup:

Code: Select all

CRITICAL Fatal error in install script: NameError: name 'service_list' is not defined:
It goes without saying that other functions of this setuphelpers work well.
I'm stumped!

Re: service_list: predefined function that... does not exist.

Published: November 16, 2022 - 10:55 AM
by dcardon
Hi Tom,

the function isn't being exported in the `__all__.extend()` function of `setuphelpers.py`. I think this is an error; I'm opening an internal ticket.

For now, you can copy the function into your `setup.py` file; that should do the trick.

I'm marking the topic as resolved in the meantime.

Best regards,

Denis

Re: [SOLVED] service_list: predefined function that... does not exist.

Published: November 17, 2022 - 10:41
by t.heroult
Yes, that's the workaround I found.