Open kjm0623v opened 4 years ago
Hi kjm0623v,
I wasn't able to re-create your error. Did you install the requirements as described in the installation instructions? Additionally, another common mistake (and one I made): when you ran export PYTHONPATH="${PYTHONPATH}:/path/to/ml-fairness-gym"
did you change "/path/to/ml-fairness-gym" to your specific path before running the command?
Hi kjm0623v, Maybe you can check your path, use
import sys
print(sys.path)
make sure source root is in path
Hello. Thanks for ML for fairness!
(venv) ➜ experiments git:(master) ✗
from agents import threshold_policies
python ./lending_demo.py --num_steps=500
Traceback (most recent call last): File "./lending_demo.py", line 26, inI already use the PATH code
export PYTHONPATH="${PYTHONPATH}:/path/to/ml-fairness-gym"
After ./tests.sh File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/traceback.py", line 285, in line self._line = linecache.getline(self.filename, self.lineno).strip() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 16, in getline lines = getlines(filename, module_globals) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/linecache.py", line 48, in getlines for mod in sys.modules.values(): RuntimeError: dictionary changed size during iterationAnd there I can not proceed anymore from here.