question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running python3 cli.py makefile

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EntilZhacommented, Jun 29, 2016

Also, all bug reports are appreciated. Pull requests to fix bugs or add documentation would be sweet too!

1reaction
ghostcommented, Jun 29, 2016

I ran the following from python3 to get the corpora:

import nltk
nltk.download("stopwords")

Then I got the same ImportError: cannot import name 'clm'. Which I got around by replacing line 16 in lm_wrapper.py with:

import clm

Now I’m getting this error:

 ...$ python3 cli.py makefile
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Error: No such command "makefile".
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found