cdfarrow / flextools

Python scripting utility for SIL FieldWorks Language Explorer (FLEx)
Other
16 stars 5 forks source link

Flextools fails to run (because of pythonnet 3.0) #23

Closed MattGyverLee closed 2 years ago

MattGyverLee commented 2 years ago

I'm a little sheepish to admit that after:

I'm still having a hard time getting this version of FlexTools to work on my own machine.

I get this on launch:

Traceback (most recent call last):
  File "FlexTools\FlexTools.py", line 569, in <module>
    main()
  File "FlexTools\FlexTools.py", line 562, in main
    form = FTMainForm()
  File "FlexTools\FlexTools.py", line 449, in __init__
    self.UIPanel = FTPanel(self.moduleManager,
  File "FlexTools\FlexTools.py", line 163, in __init__
    self.modulesList = UIModulesList.ModulesList(self.moduleManager,
  File "C:\Apps\flextools\FlexTools\UIModulesList.py", line 61, in __init__
    self.UpdateAllItems(contents)
  File "C:\Apps\flextools\FlexTools\UIModulesList.py", line 140, in UpdateAllItems
    self.DataSource = formattedItems
System.ArgumentException: Complex DataBinding accepts as a data source either an IList or an IListSource.
   at System.Windows.Forms.ListControl.set_DataSource(Object value)

I've just re-cloned again with no luck. Any ideas?

flextools.log

Windows 11 22H2

cdfarrow commented 2 years ago

Oh, my apologies, @MattGyverLee. I made the fix to tie to pythonnet 2.5.2 on the develop branch, and forgot to do the right things when I published it. I'll get that sorted out asap.

cdfarrow commented 2 years ago

I've fixed flexlibs (v1.1.5 now), and released FlexTools v2.1.2, which uses that and has a couple of other minor improvements.

MattGyverLee commented 2 years ago

FlexTools V2.1.2 works. Thanks!

cdfarrow commented 2 years ago

Thanks for the confirmation!