Error running python3 cli.py makefile
See original GitHub issueI’m following the AWS installation steps and I got the following error when trying to run python3 cli.py makefile
. I got around it by manually downloading the “stopwords” corpora.
...$ python3 cli.py makefile
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/corpus/util.py", line 63, in __load
try: root = nltk.data.find('corpora/%s' % zip_name)
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/data.py", line 641, in find
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource 'corpora/stopwords.zip/stopwords/' not found. Please
use the NLTK Downloader to obtain the resource: >>>
nltk.download()
Searched in:
- '/home/ubuntu/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
**********************************************************************
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "cli.py", line 4, in <module>
from qanta.extractors import mentions
File "/home/ubuntu/qb/qanta/extractors/mentions.py", line 12, in <module>
from qanta.extractors.abstract import FeatureExtractor
File "/home/ubuntu/qb/qanta/extractors/abstract.py", line 3, in <module>
from qanta.util.constants import N_GUESSES
File "/home/ubuntu/qb/qanta/util/constants.py", line 13, in <module>
ENGLISH_STOP_WORDS = set(stopwords.words('english'))
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/corpus/util.py", line 99, in __getattr__
self.__load()
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/corpus/util.py", line 64, in __load
except LookupError: raise e
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/corpus/util.py", line 61, in __load
root = nltk.data.find('corpora/%s' % self.__name)
File "/home/ubuntu/anaconda3/lib/python3.5/site-packages/nltk/data.py", line 641, in find
raise LookupError(resource_not_found)
LookupError:
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Makefile: python: command not found - Ask Ubuntu
When I tried to run make run , I got the error message saying python is not found. I soon realized that was...
Read more >Run python script from Makefile error python3 not a directory
main.py. I tried to run the script from Makefile make run but I got this unfamiliar error: /usr/bin/env: 'python3': Not a directory make: ......
Read more >Building on system with only python3 fails · Issue #1616 - GitHub
I suppose we could always check (in the Makefile) to see if python3 runs, and if it doesn't then try python (or do...
Read more >Issue 26662: configure/Makefile doesn't check if "python ...
The main reason I complained about the error message is that it sounds like you need Python in order to build Python. Obviously...
Read more >Creating a Python Makefile - Earthly Blog
When you run a Python code, the Python interpreter reads the file ... else: print("An error occurred, code={}".format(r.status_code)).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also, all bug reports are appreciated. Pull requests to fix bugs or add documentation would be sweet too!
I ran the following from python3 to get the corpora:
Then I got the same
ImportError: cannot import name 'clm'
. Which I got around by replacing line 16 in lm_wrapper.py with:Now I’m getting this error: