UnboundLocalError: local variable 'BigSecDict' referenced before assignment

Issue #43 resolved
Juan Medina created an issue

I'm running Theta2 which is a project using bnpy. bnpy's latest commit (master) It's throwing this error:

luna:bnpy leukbot$ RunTHetA
Traceback (most recent call last):
  File "path/to/theta/bin/../python/RunTHetA.py", line 39, in <module>
    from ClusteringBAF import clustering_BAF, group_to_meta_interval
  File "path/to/theta/python/ClusteringBAF.py", line 29, in <module>
    import bnpy
  File "path/to/bnpy/__init__.py", line 16, in <module>
    import allocmodel
  File "path/to/bnpy/allocmodel/__init__.py", line 3, in <module>
    from mix.FiniteMixtureModel import FiniteMixtureModel
  File "path/to/bnpy/allocmodel/mix/FiniteMixtureModel.py", line 8, in <module>
    from bnpy.util import NumericUtil
  File "path/to/bnpy/util/NumericUtil.py", line 440, in <module>
    LoadConfig()
  File "path/to/bnpy/util/NumericUtil.py", line 26, in LoadConfig
    Config = readConfigFileIntoDict(cfgfilepath, 'LibraryPrefs')
  File "path/to/bnpy/util/NumericUtil.py", line 53, in readConfigFileIntoDict
    return BigSecDict
UnboundLocalError: local variable 'BigSecDict' referenced before assignment

Would strongly appreciate if someone can help me to debug it!

Comments (5)

  1. Mike Hughes repo owner

    Glad it got fixed. Sorry i didn't get here quick enough to respond. Let me know if there are any more questions.

  2. Log in to comment