gnn4dr/DRKG

ModuleNotFoundError: No module named 'utils'

jdauvill opened this issue · 3 comments

Hi -
When I try running this notebook, the 'utils' module is not found. (I have the CWD set to the directory where I downloaded the DRKG)
Where should this 'utils' module be ?


ModuleNotFoundError Traceback (most recent call last)
in
4 import sys
5 sys.path.insert(1, '../utils')
----> 6 from utils import download_and_extract
7 download_and_extract()
8 drkg_file = '../data/drkg/drkg.tsv'

ModuleNotFoundError: No module named 'utils'

By "the directory where I downloaded the DRKG", do you mean the DRKG repo is in the CWD or the CWD is DRKG/?

I think you can simply do

In [1]: pwd
Out[1]: '/Users/mufei/DRKG'

In [2]: from utils.utils import download_and_extract