Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update folders or imports in quick start #11

Open
kjm0623v opened this issue Mar 27, 2020 · 2 comments
Open

Update folders or imports in quick start #11

kjm0623v opened this issue Mar 27, 2020 · 2 comments

Comments

@kjm0623v
Copy link

Hello. Thanks for ML for fairness!

(venv) ➜ experiments git:(master) ✗ python ./lending_demo.py --num_steps=500
Traceback (most recent call last):
File "./lending_demo.py", line 26, in
from agents import threshold_policies

I 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 iteration

And there I can not proceed anymore from here.

@hansa0
Copy link
Collaborator

hansa0 commented Mar 30, 2020

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?

@Chuyun-Shen
Copy link

Hi kjm0623v,
Maybe you can check your path, use

import sys
print(sys.path)

make sure source root is in path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants