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

No module named 'file_length' in py3.6 #4

Open
weiaiwayne opened this issue Jul 1, 2019 · 4 comments
Open

No module named 'file_length' in py3.6 #4

weiaiwayne opened this issue Jul 1, 2019 · 4 comments

Comments

@weiaiwayne
Copy link

I am trying to run ddr in py3.6. I got the following error in jupyter notebook:

ModuleNotFoundError: No module named 'file_length'

@weiaiwayne
Copy link
Author

I applied the following fix and it seems to be working fine in py3.6

in get_loadings.py
import file_lengthfrom ddr import file_length
from simple_progress_bar import update_progressfrom .simple_progress_bar import update_progress
from cosine_similarity import cos_similarityfrom .cosine_similarity import cos_similarity

in get_vecs.py
from load_terms import get_filesfrom .load_terms import get_files
from file_length import file_lenfrom .file_length import file_len
from simple_progress_bar import update_progressfrom .simple_progress_bar import update_progress

@weiaiwayne
Copy link
Author

also changed dic_terms.iterkeys() to iter(dic_terms.keys())

@weiaiwayne
Copy link
Author

I also made additional changes. The version that seems to be compatible with py3.6 is: https://github.com/weiaiwayne/DDR

@pietronickl
Copy link

thank you, this was incredibly helpful for replicating the DDR! Just for anyone trying to use this updated version, they'll also have to update "path_info.iterkeys()" to "iter(path_info.keys())" in the load_terms.py file

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

2 participants