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

Module common not found #33

Closed
fahadshery opened this issue Nov 18, 2018 · 9 comments
Closed

Module common not found #33

fahadshery opened this issue Nov 18, 2018 · 9 comments

Comments

@fahadshery
Copy link

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'`

@fahadshery
Copy link
Author

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

@Danielafe7GitHub
Copy link

Thanks, not working for me... I have the same error, any other solution?

@marculera
Copy link

Restart your runtime after setup_week1(). It should work then.

@electromagnet-s
Copy link

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

@ravitejaj90
Copy link

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

@akashin
Copy link
Collaborator

akashin commented Oct 20, 2019

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()

@saraswat40
Copy link

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() 

@lkidane
Copy link

lkidane commented Apr 17, 2020

Thanks a lot worked for me.

@alimuttaleb
Copy link

alimuttaleb commented Apr 18, 2020 via email

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

9 participants