tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

2 #243

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
2019-08-16 17:25:12 scheduler _run_job ERROR Job "job_function (trigger: interval[0:10:00], next run at: 2019-08-16 17:35:12.282065)" raised an exception 
Traceback (most recent call last):
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/corpus/util.py", line 86, in __load
    root = nltk.data.find('{}/{}'.format(self.subdir, zip_name))
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/data.py", line 701, in find
    raise LookupError(resource_not_found)
LookupError: 
**********************************************************************
  Resource words not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('words')

  For more information see: https://www.nltk.org/data.html

  Attempted to load corpora/words.zip/words/

  Searched in:
    - '/home/ubuntu/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/share/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/lib/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 "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/apscheduler/scheduler.py", line 512, in _run_job
    retval = job.func(*job.args, **job.kwargs)
  File "app.py", line 109, in job_function
    c_sched.run_site_collector_scheduler()
  File "/home/ubuntu/kwikee/projects/category_search/scheduler/collector_scheduler.py", line 60, in run_site_collector_scheduler
    exec_time_seconds, exec_time_minutes = bs.add_brands_from_search_links(category_id, limit, offset)
  File "/home/ubuntu/kwikee/projects/category_search/services/brand_service.py", line 49, in add_brands_from_search_links
    brand_links = k_util.get_brand_details_with_links(category_type_plain, brand_type, search_links)
  File "/home/ubuntu/kwikee/projects/category_search/utils/kwikee_util.py", line 127, in get_brand_details_with_links
    current_brand_links = nlu.get_category_websites(content, brand_type_plain)
  File "/home/ubuntu/kwikee/projects/category_search/nltk_util.py", line 97, in get_category_websites
    words = set(nltk.corpus.words.words())
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/corpus/util.py", line 123, in __getattr__
    self.__load()
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/corpus/util.py", line 88, in __load
    raise e
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/corpus/util.py", line 83, in __load
    root = nltk.data.find('{}/{}'.format(self.subdir, self.__name))
  File "/home/ubuntu/kwikee/projects/venv/lib/python3.6/site-packages/nltk/data.py", line 701, in find
    raise LookupError(resource_not_found)
LookupError: 
**********************************************************************
  Resource words not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('words')

  For more information see: https://www.nltk.org/data.html

  Attempted to load corpora/words

  Searched in:
    - '/home/ubuntu/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/share/nltk_data'
    - '/home/ubuntu/kwikee/projects/venv/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************