The code block you are commenting out must be in the .py file for your case, not in PySSC.py.
The error is caused by enabling the LandBOSSE cost model with
ssc.data_set_number( data, b'en_landbosse', 1 )
You can avoid the error by setting en_landbosse = 0, or by clearing the Enable Land-Based Balance of System Cost Model check box on the Installation Costs page in SAM before you run the code generator.
The LandBOSSE model is part of the SAM user interface, so PySSC does not know how to run it.
LandBOSSE is a Python program available at
, so if you want to use it with your Python model, you can do it in Python.