Is anyone here facing the below error? Team pls help.
Exercise2 in the notebook, 1st cell execution gives error as below. Tried multiple times on multiple days but still stuck.
CalledProcessError Traceback (most recent call last)
in
3
4 # import the prepare_data.py
module
----> 5 import prepare_data
6
7 # reload the module if it has been previously loaded
~/src/prepare_data.py in
26 subprocess.check_call([sys.executable, “-m”, “conda”, “install”, “-c”, “pytorch”, “pytorch==1.6.0”, “-y”])
27
—> 28 subprocess.check_call([sys.executable, “-m”, “conda”, “install”, “-c”, “conda-forge”, “transformers==3.5.1”, “-y”])
29 from transformers import RobertaTokenizer
30
/opt/conda/lib/python3.7/subprocess.py in check_call(*popenargs, **kwargs)
361 if cmd is None:
362 cmd = popenargs[0]
→ 363 raise CalledProcessError(retcode, cmd)
364 return 0
365
CalledProcessError: Command ‘[’/opt/conda/bin/python’, ‘-m’, ‘conda’, ‘install’, ‘-c’, ‘conda-forge’, ‘transformers==3.5.1’, ‘-y’]’ died with <Signals.SIGKILL: 9>.
Even the next cell where prepared_data import statement is there gives error as below:
NameError Traceback (most recent call last)
in
----> 1 input_ids = prepare_data.convert_to_bert_input_ids(“this product is great!”, max_seq_length)
2
3 print(input_ids)
4 print(‘Length of the sequence: {}’.format(len(input_ids)))
NameError: name ‘prepare_data’ is not defined