thouska/spotpy

AttributeError("{} is not a member of spotpy.database")

defreitasL opened this issue · 0 comments

Hi everyone,

I'm trying to integrate Spotpy to calibrate some models I have in a Qt app. The problem is that when I use pyinstaller to create an executable, I get the error "AttributeError("{} is not a member of spotpy.database")". It always works when I run the script normally.

I've tried different algorithms, but I get the same error. Here is an example of how I call the sampler function:

self.sampler = spt.algorithms.NSGAII(
                    spot_setup=self, dbname="results", save_sim=True, dbformat='csv'
                    )
self.sampler.sample(
                    self.model_obj.generations,
                    n_obj=self.model_obj.n_obj,
                    n_pop=self.model_obj.n_pop
                    )

Do you know what this could be?