Niantic's 'Pikmin Bloom' mobile game starts rolling out | Engadget

<!DOCTYPE html> LookupError at /api/

LookupError at /api/

**********************************************************************
  Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('punkt')
  
  For more information see: https://www.nltk.org/data.html

  Attempted to load tokenizers/punkt/PY3/english.pickle

  Searched in:
    - '/app/nltk_data'
    - '/app/.heroku/python/nltk_data'
    - '/app/.heroku/python/share/nltk_data'
    - '/app/.heroku/python/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
    - ''
**********************************************************************
Request Method: POST
Request URL: https://api-makemetechie.herokuapp.com/api/
Django Version: 3.2.5
Exception Type: LookupError
Exception Value:
**********************************************************************
  Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('punkt')
  
  For more information see: https://www.nltk.org/data.html

  Attempted to load tokenizers/punkt/PY3/english.pickle

  Searched in:
    - '/app/nltk_data'
    - '/app/.heroku/python/nltk_data'
    - '/app/.heroku/python/share/nltk_data'
    - '/app/.heroku/python/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
    - ''
**********************************************************************
Exception Location: /app/.heroku/python/lib/python3.9/site-packages/nltk/data.py, line 583, in find
Python Executable: /app/.heroku/python/bin/python
Python Version: 3.9.6
Python Path:
['/app/.heroku/python/bin',
 '/app',
 '/app/.heroku/python/lib/python39.zip',
 '/app/.heroku/python/lib/python3.9',
 '/app/.heroku/python/lib/python3.9/lib-dynload',
 '/app/.heroku/python/lib/python3.9/site-packages']
Server time: Wed, 27 Oct 2021 06:36:55 +0000

Traceback Switch to copy-and-paste view

  • /app/.heroku/python/lib/python3.9/site-packages/django/core/handlers/exception.py, line 47, in inner
    1.                 response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
    2.             return response
    3.         return inner
    4.     else:
    5.         @wraps(get_response)
    6.         def inner(request):
    7.             try:
    1.                 response = get_response(request)
    1.             except Exception as exc:
    2.                 response = response_for_exception(request, exc)
    3.             return response
    4.         return inner
    Variable Value
    exc
    LookupError("\n**********************************************************************\n  Resource \x1b[93mpunkt\x1b[0m not found.\n  Please use the NLTK Downloader to obtain the resource:\n\n  \x1b[31m>>> import nltk\n  >>> nltk.download('punkt')\n  \x1b[0m\n  For more information see: https://www.nltk.org/data.html\n\n  Attempted to load \x1b[93mtokenizers/punkt/PY3/english.pickle\x1b[0m\n\n  Searched in:\n    - '/app/nltk_data'\n    - '/app/.heroku/python/nltk_data'\n    - '/app/.heroku/python/share/nltk_data'\n    - '/app/.heroku/python/lib/nltk_data'\n    - '/usr/share/nltk_data'\n    - '/usr/local/share/nltk_data'\n    - '/usr/lib/nltk_data'\n    - '/usr/local/lib/nltk_data'\n    - ''\n**********************************************************************\n")
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f42a7d2ceb0>>
    request
    <WSGIRequest: POST '/api/'>
  • /app/.heroku/python/lib/python3.9/site-packages/django/core/handlers/base.py, line 181, in _get_response
    1.         if response is None:
    2.             wrapped_callback = self.make_view_atomic(callback)
    3.             # If it is an asynchronous view, run it in a subthread.
    4.             if asyncio.iscoroutinefunction(wrapped_callback):
    5.                 wrapped_callback = async_to_sync(wrapped_callback)
    6.             try:
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
    1.             except Exception as e:
    2.                 response = self.process_exception_by_middleware(e, request)
    3.                 if response is None:
    4.                     raise
    5.         # Complain if the view returned None (a common error).
    Variable Value
    callback
    <function index at 0x7f428b9e70d0>
    callback_args
    ()
    callback_kwargs
    {}
    request
    <WSGIRequest: POST '/api/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7f42a7d2ceb0>
    wrapped_callback
    <function index at 0x7f428b9e70d0>
  • /app/webBackend/views.py, line 11, in index
    1. from webBackend.nltkOperations import NltkOperations
    2. def index(request):
    3.     if request.method == 'POST':
    4.         json_data = json.loads(request.body)
    5.         print(json_data['url'])
    1.         return HttpResponse(NltkOperations.get_summary(json_data['url']))
    1. def hello(request):
    2.     if request.method == 'POST':
    3.         return HttpResponse(request.POST.get("url"))
    4.     s1 = NltkOperations
    Variable Value
    json_data
    {'url': 'https://www.engadget.com/niantic-pikmin-bloom-rollout-052408547.html'}
    request
    <WSGIRequest: POST '/api/'>
  • /app/webBackend/nltkOperations.py, line 42, in get_summary
    1.             article_text += p.text
    2.         # Removing Square Brackets and Extra Spaces
    3.         article_text = re.sub(r'\[[0-9]*\]', ' ', article_text)
    4.         article_text = re.sub(r'\s+', ' ', article_text)
    5.         # Removing special characters and digits
    6.         formatted_article_text = re.sub('[^a-zA-Z]', ' ', article_text)
    7.         formatted_article_text = re.sub(r'\s+', ' ', formatted_article_text)
    1.         sentence_list = nltk.sent_tokenize(article_text)
    1.         stopwords = nltk.corpus.stopwords.words('english')
    2.         word_frequencies = {}
    3.         for word in nltk.word_tokenize(formatted_article_text):
    4.             if word not in stopwords:
    5.                 if word not in word_frequencies.keys():
    Variable Value
    article
    (b'<!doctype html><html id="atomic" class="desktop bkt ua-undefined ua-undefine'
     b'd" lang="en-US"><head><script>\n        window.performance.mark(\'PageStar'
     b"t');\n        document.documentElement.className += ' JsEnabled jsenabled"
     b"';\n        </script><title>Niantic's 'Pikmin Bloom' mobile game starts r"
     b'olling out | Engadget</title><meta http-equiv="content-type" content="text/h'
     b'tml; charset=utf-8"><meta http-equiv="content-type" content="text/html; char'
     b'set=utf-8"><meta http-equiv="x-dns-prefetch-control" content="on"><meta http'
     b'-equiv="X-UA-Compatible" content="chrome=1"><meta name="description" content'
     b'="Niantic, Pok\xc3\xa9mon Go\'s creator, has released a new mobile game cal'
     b'led Pikmin Bloom.."><meta property="og:description" content="Niantic, Po'
     b"k\xc3\xa9mon Go's creator, has released a new mobile game called Pikmin Bl"
     b'oom.."><meta property="og:image" content="https://s.yimg.com/os/creatr-uploa'
     b'ded-images/2021-10/73b39eb0-36d8-11ec-8fdf-b2e449d49170"><meta property="og:'
     b'url" content="https://www.engadget.com/niantic-pikmin-bloom-rollout-05240854'
     b'7.html"><meta name="twitter:image" content="https://s.yimg.com/os/creatr-upl'
     b'oaded-images/2021-10/73b39eb0-36d8-11ec-8fdf-b2e449d49170"><meta name="twitt'
     b'er:title" content="Niantic\'s \'Pikmin Bloom\' mobile game starts rolling o'
     b'ut | Engadget"><meta property="og:title" content="Niantic\'s \'Pikmin Bloo'
     b'm\' mobile game starts rolling out | Engadget"><meta name="oath:guce:cons'
     b'ent-host" content="guce.engadget.com"><meta property="og:type" content="webs'
     b'ite"><script type="text/javascript" >var AdsServicePosition = {}; var AdsCli'
     b'entPosition = {}; var JacCallbacks = {};</script><script type="text/javascri'
     b'pt" >var uacCallbacks = {};</script><meta name="viewport" content="width=dev'
     b'ice-width,initial-scale=1,minimum-scale=1"><meta http-equiv="content-type" c'
     b'ontent="text/html; charset=utf-8" /><meta name="google-site-verification" co'
     b'ntent="wLXjbTY6pixubu5bTDip5LFbmV3y14B-1FuGRBA608U" /><meta name="google-sit'
     b'e-verification" content="tWejEOjeALosEomCYTYn5Ps9e_bfdSDFep3l5tdwP30" /><met'
     b'a name="google-site-verification" content="1GwTnKM_I1dlzvY6ZgkdMD7npjzC-zbHH'
     b's9BXlA8BrI" /><meta name="google-site-verification" content="2AxZaoCWIVXn4j_'
     b'PSZpxB_gj8X9Y2rfzSyOtPXO_wEI" /><meta name="google-site-verification" conten'
     b't="WHAdu9KkehGzlorxbvJ2y_5amqxc3cg7tkZPOq5kfHE" /><meta name="google-site-ve'
     b'rification" content="xX3g98CIOMeGJbk03PNHNS-NQMGfB0LonZXXvhFfBlc" /><meta na'
     b'me="google-site-verification" content="xd57-NQw8NoYtNTyi0qomvWufyqOYmCYgM2K2'
     b'Y8hNrE" /><meta name="bitly-verification" content="f57da7265213" /><meta nam'
     b'e="p:domain_verify" content="fb69533f2acad78bdd89abf093c35a28" /><meta name='
     b'"msvalidate.01" content="5ABD8A078F3356F3A6A8C8643C31FB8F" /><meta name="app'
     b'le-mobile-web-app-status-bar-style" content="black" /><meta name="applicatio'
     b'n-name" content="Engadget" /><meta property="fb:pages" content="5738237369" '
     b'/><meta property="fb:admins" content="11710688" /><meta property="fb:app_id"'
     b' content="464864107046584" /><meta property="og:locale" content="en_US" /><m'
     b'eta property="og:site_name" content="Engadget" /><meta name="twitter:site" c'
     b'ontent=`Engadget`><meta name="msapplication-TileColor" content="#2B2D32"/><m'
     b'eta name="msapplication-TileImage" content="https://s.yimg.com/kw/assets/eng'
     b'-e-558.png"/><meta name="msapplication-square70x70logo" content="https://s.y'
     b'img.com/kw/assets/eng-e-128.png"/><meta name="msapplication-square150x150log'
     b'o" content="https://s.yimg.com/kw/assets/eng-e-270.png"/><meta name="msappli'
     b'cation-wide310x150logo" content="https://s.yimg.com/kw/assets/eng-e-558x270.'
     b'png"/><meta name="msapplication-square310x310logo" content="https://s.yimg.c'
     b'om/kw/assets/images/eng-e-558.png"/><meta name="msapplication-notification" '
     b'content="frequency=30;polling-uri=https://notifications.buildmypinnedsite.co'
     b'm/?feed=https://www.engadget.com/rss.xml&amp;id=1;polling-uri2=h <trimmed 133555 bytes string>
    article_text
    ("Pokmon Go's creator has a new augmented reality mobile game, and this time, "
     "it's all about Pikmin. Niantic is now rolling out Pikmin Bloom worldwide, "
     "starting with Singapore and Australia where it's already live. Similar to "
     "Pokmon Go, you'll have to go out and interact with the real world enjoy the "
     "game. It's really more of a fun and colorful companion for daily walks or "
     "hikes, though, since it doesn't have battles and doesn't have the incentive "
     "of catching rare monsters like Pokmon Go does. In Pikmin Bloom, you'll find "
     'seedlings when you walk that you can pick up and grow into plant-like '
     "creatures that'll follow you around. The more you walk, the more Pikmin you "
     "can pluck and the more Pikmin will follow you around. Onscreen, you're "
     'depicted as a Mii avatar, with a bunch of creatures walking behind you and '
     "making more flowers bloom along your path. You'll also be able to collect "
     'items on your walks, including clothes Pikmin can wear and fruit you can '
     'feed your creatures to make flowers bloom on their heads.Niantic CEO John '
     "Hanke said in the game's video announcement that the flowers the Pikmin make "
     'can be viewed by other players, so you can create shared gardens with your '
     'neighbors. Pikmin Bloom is now live for Android and iOS in Singapore and '
     'Australia, and it will be arriving in more countries and regions '
     '"shortly."Please enter a valid email address')
    formatted_article_text
    ('Pok mon Go s creator has a new augmented reality mobile game and this time '
     'it s all about Pikmin Niantic is now rolling out Pikmin Bloom worldwide '
     'starting with Singapore and Australia where it s already live Similar to Pok '
     'mon Go you ll have to go out and interact with the real world enjoy the game '
     'It s really more of a fun and colorful companion for daily walks or hikes '
     'though since it doesn t have battles and doesn t have the incentive of '
     'catching rare monsters like Pok mon Go does In Pikmin Bloom you ll find '
     'seedlings when you walk that you can pick up and grow into plant like '
     'creatures that ll follow you around The more you walk the more Pikmin you '
     'can pluck and the more Pikmin will follow you around Onscreen you re '
     'depicted as a Mii avatar with a bunch of creatures walking behind you and '
     'making more flowers bloom along your path You ll also be able to collect '
     'items on your walks including clothes Pikmin can wear and fruit you can feed '
     'your creatures to make flowers bloom on their heads Niantic CEO John Hanke '
     'said in the game s video announcement that the flowers the Pikmin make can '
     'be viewed by other players so you can create shared gardens with your '
     'neighbors Pikmin Bloom is now live for Android and iOS in Singapore and '
     'Australia and it will be arriving in more countries and regions shortly '
     'Please enter a valid email address')
    p
    <p class="Pos(a) M(0) T(60px) Start(6px) D(n) C(errorColor)" role="alert">Please enter a valid email address</p>
    paragraphs
    [<p><a data-ylk="elm:context_link;itc:0" href="https://www.engadget.com/pokemon-go-hololens-2-microsoft-mesh-demo-171537512.html"><em>Pokmon Go's</em></a> creator has a new augmented reality mobile game, and this time, it's all about Pikmin. Niantic is now rolling out <a data-ylk="elm:context_link;itc:0" href="https://twitter.com/PikminBloom" target="_blank"><em>Pikmin Bloom</em></a> worldwide, starting with Singapore and Australia where it's already live. Similar to <em>Pokmon Go</em>, you'll have to go out and interact with the real world enjoy the game. It's really more of a fun and colorful companion for daily walks or hikes, though, since it doesn't have battles and doesn't have the incentive of catching rare monsters like <em>Pokmon Go</em> does.</p>,
     <p>In <em>Pikmin Bloom</em>, you'll find seedlings when you walk that you can pick up and grow into plant-like creatures that'll follow you around. The more you walk, the more Pikmin you can pluck and the more Pikmin will follow you around. Onscreen, you're depicted as a Mii avatar, with a bunch of creatures walking behind you and making more flowers bloom along your path. You'll also be able to collect items on your walks, including clothes Pikmin can wear and fruit you can feed your creatures to make flowers bloom on their heads.</p>,
     <p>Niantic CEO John Hanke said in the game's video announcement that the flowers the Pikmin make can be viewed by other players, so you can create shared gardens with your neighbors. <em>Pikmin Bloom</em> is now live for Android and iOS in Singapore and Australia, and it will be arriving in more countries and regions "shortly."</p>,
     <p></p>,
     <p class="Pos(a) M(0) T(60px) Start(6px) D(n) C(errorColor)" role="alert">Please enter a valid email address</p>]
    parsed_article
    <!DOCTYPE html>
    <html class="desktop bkt ua-undefined ua-undefined" id="atomic" lang="en-US"><head><script>
            window.performance.mark('PageStart');
            document.documentElement.className += ' JsEnabled jsenabled';
            </script><title>Niantic's 'Pikmin Bloom' mobile game starts rolling out | Engadget</title><meta content="text/html; charset=utf-8" http-equiv="content-type"/><meta content="text/html; charset=utf-8" http-equiv="content-type"/><meta content="on" http-equiv="x-dns-prefetch-control"/><meta content="chrome=1" http-equiv="X-UA-Compatible"/><meta content="Niantic, Pokmon Go's creator, has released a new mobile game called Pikmin Bloom.." name="description"/><meta content="Niantic, Pokmon Go's creator, has released a new mobile game called Pikmin Bloom.." property="og:description"/><meta content="https://s.yimg.com/os/creatr-uploaded-images/2021-10/73b39eb0-36d8-11ec-8fdf-b2e449d49170" property="og:image"/><meta content="https://www.engadget.com/niantic-pikmin-bloom-rollout-052408547.html" property="og:url"/><meta content="https://s.yimg.com/os/creatr-uploaded-images/2021-10/73b39eb0-36d8-11ec-8fdf-b2e449d49170" name="twitter:image"/><meta content="Niantic's 'Pikmin Bloom' mobile game starts rolling out | Engadget" name="twitter:title"/><meta content="Niantic's 'Pikmin Bloom' mobile game starts rolling out | Engadget" property="og:title"/><meta content="guce.engadget.com" name="oath:guce:consent-host"/><meta content="website" property="og:type"/><script type="text/javascript">var AdsServicePosition = {}; var AdsClientPosition = {}; var JacCallbacks = {};</script><script type="text/javascript">var uacCallbacks = {};</script><meta content="width=device-width,initial-scale=1,minimum-scale=1" name="viewport"/><meta content="text/html; charset=utf-8" http-equiv="content-type"/><meta content="wLXjbTY6pixubu5bTDip5LFbmV3y14B-1FuGRBA608U" name="google-site-verification"/><meta content="tWejEOjeALosEomCYTYn5Ps9e_bfdSDFep3l5tdwP30" name="google-site-verification"/><meta content="1GwTnKM_I1dlzvY6ZgkdMD7npjzC-zbHHs9BXlA8BrI" name="google-site-verification"/><meta content="2AxZaoCWIVXn4j_PSZpxB_gj8X9Y2rfzSyOtPXO_wEI" name="google-site-verification"/><meta content="WHAdu9KkehGzlorxbvJ2y_5amqxc3cg7tkZPOq5kfHE" name="google-site-verification"/><meta content="xX3g98CIOMeGJbk03PNHNS-NQMGfB0LonZXXvhFfBlc" name="google-site-verification"/><meta content="xd57-NQw8NoYtNTyi0qomvWufyqOYmCYgM2K2Y8hNrE" name="google-site-verification"/><meta content="f57da7265213" name="bitly-verification"/><meta content="fb69533f2acad78bdd89abf093c35a28" name="p:domain_verify"/><meta content="5ABD8A078F3356F3A6A8C8643C31FB8F" name="msvalidate.01"/><meta content="black" name="apple-mobile-web-app-status-bar-style"/><meta content="Engadget" name="application-name"/><meta content="5738237369" property="fb:pages"/><meta content="11710688" property="fb:admins"/><meta content="464864107046584" property="fb:app_id"/><meta content="en_US" property="og:locale"/><meta content="Engadget" property="og:site_name"/><meta content="`Engadget`" name="twitter:site"/><meta content="#2B2D32" name="msapplication-TileColor"/><meta content="https://s.yimg.com/kw/assets/eng-e-558.png" name="msapplication-TileImage"/><meta content="https://s.yimg.com/kw/assets/eng-e-128.png" name="msapplication-square70x70logo"/><meta content="https://s.yimg.com/kw/assets/eng-e-270.png" name="msapplication-square150x150logo"/><meta content="https://s.yimg.com/kw/assets/eng-e-558x270.png" name="msapplication-wide310x150logo"/><meta content="https://s.yimg.com/kw/assets/images/eng-e-558.png" name="msapplication-square310x310logo"/><meta content="frequency=30;polling-uri=https://notifications.buildmypinnedsite.com/?feed=https://www.engadget.com/rss.xml&amp;id=1;polling-uri2=https://notifications.buildmypinnedsite.com/?feed=https://www.engadget.com/rss.xml&amp;id=2;polling-uri3=https://notifications.buildmypinnedsite.com/?feed=https://www.engadget.com/rss.xml&amp;id=3;polling-uri4=https://notifications.buildmypinnedsite.com/?feed=https://www.engadget.com/rss.xml&amp;id=4;polling-uri5= <trimmed 124371 bytes string>
    scraped_data
    <http.client.HTTPResponse object at 0x7f428b9dbd00>
    self
    <webBackend.nltkOperations.NltkOperations object at 0x7f42a7bd4f70>
    url
    'https://www.engadget.com/niantic-pikmin-bloom-rollout-052408547.html'
  • /app/.heroku/python/lib/python3.9/site-packages/nltk/tokenize/__init__.py, line 107, in sent_tokenize
    1.     using NLTK's recommended sentence tokenizer
    2.     (currently :class:`.PunktSentenceTokenizer`
    3.     for the specified language).
    4.     :param text: text to split into sentences
    5.     :param language: the model name in the Punkt corpus
    6.     """
    1.     tokenizer = load("tokenizers/punkt/{0}.pickle".format(language))
    1.     return tokenizer.tokenize(text)
    2. # Standard word tokenizer.
    3. _treebank_word_tokenizer = NLTKWordTokenizer()
    Variable Value
    language
    'english'
    text
    ("Pokmon Go's creator has a new augmented reality mobile game, and this time, "
     "it's all about Pikmin. Niantic is now rolling out Pikmin Bloom worldwide, "
     "starting with Singapore and Australia where it's already live. Similar to "
     "Pokmon Go, you'll have to go out and interact with the real world enjoy the "
     "game. It's really more of a fun and colorful companion for daily walks or "
     "hikes, though, since it doesn't have battles and doesn't have the incentive "
     "of catching rare monsters like Pokmon Go does. In Pikmin Bloom, you'll find "
     'seedlings when you walk that you can pick up and grow into plant-like '
     "creatures that'll follow you around. The more you walk, the more Pikmin you "
     "can pluck and the more Pikmin will follow you around. Onscreen, you're "
     'depicted as a Mii avatar, with a bunch of creatures walking behind you and '
     "making more flowers bloom along your path. You'll also be able to collect "
     'items on your walks, including clothes Pikmin can wear and fruit you can '
     'feed your creatures to make flowers bloom on their heads.Niantic CEO John '
     "Hanke said in the game's video announcement that the flowers the Pikmin make "
     'can be viewed by other players, so you can create shared gardens with your '
     'neighbors. Pikmin Bloom is now live for Android and iOS in Singapore and '
     'Australia, and it will be arriving in more countries and regions '
     '"shortly."Please enter a valid email address')
  • /app/.heroku/python/lib/python3.9/site-packages/nltk/data.py, line 750, in load
    1.             return resource_val
    2.     # Let the user know what's going on.
    3.     if verbose:
    4.         print("<<Loading %s>>" % (resource_url,))
    5.     # Load the resource.
    1.     opened_resource = _open(resource_url)
    1.     if format == "raw":
    2.         resource_val = opened_resource.read()
    3.     elif format == "pickle":
    4.         resource_val = pickle.load(opened_resource)
    5.     elif format == "json":
    Variable Value
    cache
    True
    encoding
    None
    ext
    'pickle'
    format
    'pickle'
    fstruct_reader
    None
    logic_parser
    None
    resource_url
    'nltk:tokenizers/punkt/PY3/english.pickle'
    resource_url_parts
    ['nltk:tokenizers/punkt/PY3/english', 'pickle']
    resource_val
    None
    verbose
    False
  • /app/.heroku/python/lib/python3.9/site-packages/nltk/data.py, line 875, in _open
    1.         loaded from.  The default protocol is "nltk:", which searches
    2.         for the file in the the NLTK data package.
    3.     """
    4.     resource_url = normalize_resource_url(resource_url)
    5.     protocol, path_ = split_resource_url(resource_url)
    6.     if protocol is None or protocol.lower() == "nltk":
    1.         return find(path_, path + [""]).open()
    1.     elif protocol.lower() == "file":
    2.         # urllib might not use mode='rb', so handle this one ourselves:
    3.         return find(path_, [""]).open()
    4.     else:
    5.         return urlopen(resource_url)
    Variable Value
    path_
    'tokenizers/punkt/PY3/english.pickle'
    protocol
    'nltk'
    resource_url
    'nltk:tokenizers/punkt/PY3/english.pickle'
  • /app/.heroku/python/lib/python3.9/site-packages/nltk/data.py, line 583, in find
    1.     msg += "\n  Attempted to load \33[93m{resource_name}\033[0m\n".format(
    2.         resource_name=resource_name
    3.     )
    4.     msg += "\n  Searched in:" + "".join("\n    - %r" % d for d in paths)
    5.     sep = "*" * 70
    6.     resource_not_found = "\n%s\n%s\n%s\n" % (sep, msg, sep)
    1.     raise LookupError(resource_not_found)
    1. def retrieve(resource_url, filename=None, verbose=True):
    2.     """
    3.     Copy the given resource to a local file.  If no filename is
    4.     specified, then use the URL's filename.  If there is already a
    Variable Value
    i
    3
    m
    <re.Match object; span=(0, 0), match=''>
    modified_name
    'tokenizers/punkt/PY3/english.pickle.zip/english.pickle'
    msg
    ('  Resource \x1b[93mpunkt\x1b[0m not found.\n'
     '  Please use the NLTK Downloader to obtain the resource:\n'
     '\n'
     '  \x1b[31m>>> import nltk\n'
     "  >>> nltk.download('punkt')\n"
     '  \x1b[0m\n'
     '  For more information see: https://www.nltk.org/data.html\n'
     '\n'
     '  Attempted to load \x1b[93mtokenizers/punkt/PY3/english.pickle\x1b[0m\n'
     '\n'
     '  Searched in:\n'
     "    - '/app/nltk_data'\n"
     "    - '/app/.heroku/python/nltk_data'\n"
     "    - '/app/.heroku/python/share/nltk_data'\n"
     "    - '/app/.heroku/python/lib/nltk_data'\n"
     "    - '/usr/share/nltk_data'\n"
     "    - '/usr/local/share/nltk_data'\n"
     "    - '/usr/lib/nltk_data'\n"
     "    - '/usr/local/lib/nltk_data'\n"
     "    - ''")
    p
    'tokenizers/punkt/PY3/english.pickle'
    path_
    ''
    paths
    ['/app/nltk_data',
     '/app/.heroku/python/nltk_data',
     '/app/.heroku/python/share/nltk_data',
     '/app/.heroku/python/lib/nltk_data',
     '/usr/share/nltk_data',
     '/usr/local/share/nltk_data',
     '/usr/lib/nltk_data',
     '/usr/local/lib/nltk_data',
     '']
    pieces
    ['tokenizers', 'punkt', 'PY3', 'english.pickle']
    resource_name
    'tokenizers/punkt/PY3/english.pickle'
    resource_not_found
    ('\n'
     '**********************************************************************\n'
     '  Resource \x1b[93mpunkt\x1b[0m not found.\n'
     '  Please use the NLTK Downloader to obtain the resource:\n'
     '\n'
     '  \x1b[31m>>> import nltk\n'
     "  >>> nltk.download('punkt')\n"
     '  \x1b[0m\n'
     '  For more information see: https://www.nltk.org/data.html\n'
     '\n'
     '  Attempted to load \x1b[93mtokenizers/punkt/PY3/english.pickle\x1b[0m\n'
     '\n'
     '  Searched in:\n'
     "    - '/app/nltk_data'\n"
     "    - '/app/.heroku/python/nltk_data'\n"
     "    - '/app/.heroku/python/share/nltk_data'\n"
     "    - '/app/.heroku/python/lib/nltk_data'\n"
     "    - '/usr/share/nltk_data'\n"
     "    - '/usr/local/share/nltk_data'\n"
     "    - '/usr/lib/nltk_data'\n"
     "    - '/usr/local/lib/nltk_data'\n"
     "    - ''\n"
     '**********************************************************************\n')
    resource_zipname
    'punkt'
    sep
    '**********************************************************************'
    zipentry
    None
    zipfile
    None


Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
CONTENT_LENGTH
'78'
CONTENT_TYPE
'application/json'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip;q=1.0,deflate;q=0.6,identity;q=0.3'
HTTP_CONNECTION
'close'
HTTP_CONNECT_TIME
'0'
HTTP_HOST
'api-makemetechie.herokuapp.com'
HTTP_TOTAL_ROUTE_TIME
'7076'
HTTP_USER_AGENT
'Ruby'
HTTP_VIA
'1.1 vegur'
HTTP_X_FORWARDED_FOR
'104.43.201.77'
HTTP_X_FORWARDED_PORT
'443'
HTTP_X_FORWARDED_PROTO
'https'
HTTP_X_REQUEST_ID
'7538711c-c450-4b29-bdac-b4db3081871b'
HTTP_X_REQUEST_START
'1635316607431'
PATH_INFO
'/api/'
QUERY_STRING
''
RAW_URI
'/api/'
REMOTE_ADDR
'10.1.88.141'
REMOTE_PORT
'19127'
REQUEST_METHOD
'POST'
SCRIPT_NAME
''
SERVER_NAME
'0.0.0.0'
SERVER_PORT
'8507'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'gunicorn/20.0.4'
gunicorn.socket
<socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.18.74.170', 8507), raddr=('10.1.88.141', 19127)>
wsgi.errors
<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f428ba19c40>
wsgi.file_wrapper
<class 'gunicorn.http.wsgi.FileWrapper'>
wsgi.input
<gunicorn.http.body.Body object at 0x7f428ba19e20>
wsgi.input_terminated
True
wsgi.multiprocess
True
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'https'
wsgi.version
(1, 0)

Settings

Using settings module web.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['*']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
BASE_DIR
PosixPath('/app')
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 600,
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'HOST': 'ec2-52-6-77-239.compute-1.amazonaws.com',
             'NAME': 'dpe0b8nvsktst',
             'OPTIONS': {'sslmode': 'require'},
             'PASSWORD': '********************',
             'PORT': 5432,
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'ifykwxvktsdtav'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.AutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'[email protected]'
DEFAULT_HASHING_ALGORITHM
'sha256'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'webBackend.apps.WebbackendConfig',
 'web.myappconfig.MyAppConfig']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ar-dz', 'Algerian Arabic'),
 ('ast', 'Asturian'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('dsb', 'Lower Sorbian'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-au', 'Australian English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-co', 'Colombian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan Spanish'),
 ('et', 'Estonian'),
 ('eu', 'Basque'),
 ('fa', 'Persian'),
 ('fi', 'Finnish'),
 ('fr', 'French'),
 ('fy', 'Frisian'),
 ('ga', 'Irish'),
 ('gd', 'Scottish Gaelic'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hsb', 'Upper Sorbian'),
 ('hu', 'Hungarian'),
 ('hy', 'Armenian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('ig', 'Igbo'),
 ('io', 'Ido'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kab', 'Kabyle'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('ky', 'Kyrgyz'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('mr', 'Marathi'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokml'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('pa', 'Punjabi'),
 ('pl', 'Polish'),
 ('pt', 'Portuguese'),
 ('pt-br', 'Brazilian Portuguese'),
 ('ro', 'Romanian'),
 ('ru', 'Russian'),
 ('sk', 'Slovak'),
 ('sl', 'Slovenian'),
 ('sq', 'Albanian'),
 ('sr', 'Serbian'),
 ('sr-latn', 'Serbian Latin'),
 ('sv', 'Swedish'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('tg', 'Tajik'),
 ('th', 'Thai'),
 ('tk', 'Turkmen'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'fa', 'ur']
LANGUAGE_CODE
'en-us'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LOCALE_PATHS
[]
LOGGING
{'disable_existing_loggers': False,
 'formatters': {'simple': {'format': '%(levelname)s %(message)s'},
                'verbose': {'datefmt': '%Y-%m-%d %H:%M:%S',
                            'format': '%(asctime)s [%(process)d] '
                                      '[%(levelname)s] pathname=%(pathname)s '
                                      'lineno=%(lineno)s funcname=%(funcName)s '
                                      '%(message)s'}},
 'handlers': {'console': {'class': 'logging.StreamHandler',
                          'formatter': 'verbose',
                          'level': 'DEBUG'},
              'null': {'class': 'logging.NullHandler', 'level': 'DEBUG'}},
 'loggers': {'testlogger': {'handlers': ['console'], 'level': 'INFO'}},
 'version': 1}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
''
MEDIA_URL
'/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
('whitenoise.middleware.WhiteNoiseMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
ROOT_URLCONF
'web.urls'
SECRET_KEY
'********************'
SECURE_BROWSER_XSS_FILTER
False
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
None
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'[email protected]'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'web.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT
'/app/staticfiles'
STATIC_URL
'/static/'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': [],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages']}}]
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'UTC'
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'web.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'

Youre seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.

Pokémon Go's creator has a new augmented reality mobile game, and this time, it's all about Pikmin. Niantic is now rolling out Pikmin Bloom worldwide, starting with Singapore and Australia where it's… [+1146 chars]