Hi, I am working on a simple PySimpleGUI interface where I want to make use of the package lightgbm to make a prediction on a model we have. When I run the code as a python file everything runs fine but after turning it to an executable and trying to use a .predict function from lightgbm it crashes when I use it as an executable. The application was working as an executable when using Lightgbm version 3 but now as we upgraded to version 4 it crashes in the exe. As pyinstaller could not find lightgbm before I put it in the hidden_imports and this was working until we upgraded to lightgbm version 4. I am getting the following error:
Traceback (most recent call last): File "avm_application.py", line 312, in <module> File "lightgbm\sklearn.py", line 899, in predict File "lightgbm\sklearn.py", line 638, in _process_params File "lightgbm\sklearn.py", line 600, in get_params AttributeError: 'super' object has no attribute 'get_params' Line 312 in my code is the following: lightGBM_pred = LightGBM.predict(df_avm) Where df_avm is my dataframe I am trying to predict with the model we have built, and as I said, this works when executed in regular Python. I have looked into the hooks but have not found how this would solve the problem I am currently having. Thanks for reading already. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/06fe9fc4-ae40-4628-9465-e4f002d1750cn%40googlegroups.com.
