Module common not found
fahadshery opened this issue · comments
Hi,
module common
not found. Tried on colab and on the docker as well.
here is the traceback:
`ImportError Traceback (most recent call last)
in ()
1 import sys
2 sys.path.append("..")
----> 3 from common.download_utils import download_week1_resources
4
5 download_week1_resources()
ImportError: No module named 'common'`
Found the solution:
1- you need to add the following before running any code:
`! wget https://raw.githubusercontent.com/hse-aml/natural-language-processing/master/setup_google_colab.py -O setup_google_colab.py
import setup_google_colab
please, uncomment the week you're working on
setup_google_colab.setup_week1() `
Once executed then everything works
Thanks, not working for me... I have the same error, any other solution?
Restart your runtime after setup_week1(). It should work then.
I'm running this straight out of my Windows computer with Jupiter and none of these worked for me.
The best option was to create a directory called data and download these here. https://github.com/hse-aml/natural-language-processing/releases/tag/week1
That allowed me to do the rest of the assignment
Facing error as : 'No module named 'common' even after i ran following command
1- you need to add the following before running any code:
`! wget https://raw.githubusercontent.com/hse-aml/natural-language-processing/master/setup_google_colab.py -O setup_google_colab.py
import setup_google_colab
As described in documentation, you need to execute the following code in your Colab cell or in your Python script:
! wget https://raw.githubusercontent.com/hse-aml/natural-language-processing/master/setup_google_colab.py -O setup_google_colab.py
import setup_google_colab
Then uncomment and execute one of the following lines depending on the assignment you're working on to download dependencies specific to that assignment:
# setup_google_colab.setup_week1()
# setup_google_colab.setup_week2()
# setup_google_colab.setup_week3()
# setup_google_colab.setup_week4()
# setup_google_colab.setup_project()
# setup_google_colab.setup_honor()
Anyone else who is running into this issue:
Click on +Code on top After the first text cell.
Paste and execute the following lines, and then run the Data cell again:
! wget https://raw.githubusercontent.com/hse-aml/natural-language-processing/master/setup_google_colab.py -O setup_google_colab.py
import setup_google_colab
setup_google_colab.setup_week1()
Thanks a lot worked for me.