Skip to content

"No constructor found for MrkvArray" #1520

Open
@iworld1991

Description

Describe the bug
I initizlied a MarkovType based on the most recent release econ-ark 0.15.0 in a freshly created environment. The code is copied as below

hark_mkv = MarkovConsumerType(**hark_mkv_para)

I got the following errors.

ValueError Traceback (most recent call last)
Cell In[11], line 1
----> 1 hark_mkv = MarkovConsumerType(**hark_mkv_para)
2 hark_mkv.cycles = 0
3 hark_mkv.vFuncBool = False

File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:750, in MarkovConsumerType.init(self, **kwds)
747 params = init_indshk_markov.copy()
748 params.update(kwds)
--> 750 super().init(**params)
751 self.solve_one_period = solve_one_period_ConsMarkov
753 if not hasattr(self, "global_markov"):

File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsIndShockModel.py:1914, in IndShockConsumerType.init(self, verbose, quiet, **kwds)
1912 # Add consumer-type specific objects, copying to create independent versions
1913 self.solve_one_period = solve_one_period_ConsIndShock
-> 1914 self.update()

File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\ConsumptionSaving\ConsMarkovModel.py:769, in MarkovConsumerType.update(self)
756 def update(self):
757 """
758 Update the Markov array, the income process, the assets grid, and
759 the terminal solution.
(...)
767 None
768 """
--> 769 self.construct("MrkvArray")
770 super().update()

File c:\ProgramData\mambaforge\envs\econ-ark3\Lib\site-packages\HARK\core.py:417, in Model.construct(self, force, *args)
415 continue
416 else:
--> 417 raise ValueError("No constructor found for " + key) from None
419 # Get the names of arguments for this constructor and try to gather them
420 args_needed = get_arg_names(constructor)

ValueError: No constructor found for MrkvArray

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions