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

ModuleNotFoundError: No module named 'utils' #19

Open
jdauvill opened this issue Oct 21, 2020 · 3 comments
Open

ModuleNotFoundError: No module named 'utils' #19

jdauvill opened this issue Oct 21, 2020 · 3 comments

Comments

@jdauvill
Copy link

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'

@mufeili
Copy link
Collaborator

mufeili commented Oct 21, 2020

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

@jdauvill
Copy link
Author

jdauvill commented Oct 21, 2020 via email

@mufeili
Copy link
Collaborator

mufeili commented Oct 22, 2020

I think you can simply do

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

In [2]: from utils.utils import download_and_extract

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