SelectFromList() error

Hi,

I am new to PyRevit and began learning it a few weeks ago. However, when I run the following code, I encounter some exceptions. Could you please provide some guidance on how to resolve them?

Code:

from pyrevit.forms import SelectFromList
items = ['item1', 'item2', 'item3']
SelectFromList.show(items, button_name='Select Item')

Exception:
Exception : Microsoft.Scripting.ArgumentTypeException: LoadComponent() takes exactly 3 arguments (2 given)

Thank you for your assistance.

Best regards

It might be a problem with another script and invalid name of python script somewhere or a folder name. Please check that.

Maybe, it has to do with the iron python engine you are using. Which version of pyRevit are you using?

Please run the following command line:

pyrevit env

and report the results here.

you can try to solve it running the following command

pyrevit attach master 2711 --allusers --installed