Error when installing nltk packages on heroku











up vote
0
down vote

favorite












I am trying to install nltk packages in heroku using nltk.txt file. int my nltk.txt file only punkt is written. In requirements.txt file nltk is written.
but when push it it shows the errors.
Please help to fix my problem



remote: -----> Python app detected
remote: ! Python has released a security update! Please consider upgrading to python-3.6.7
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing requirements with pip
remote:
remote: -----> Downloading NLTK corpora…
remote: -----> Downloading NLTK packages: tokenize
remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
remote: warn(RuntimeWarning(msg))
remote: Traceback (most recent call last):
remote: [nltk_data] Error loading tokenize : Package 'tokenize ' not found in
remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 193, in _run_module_as_main
remote: [nltk_data] index
remote: "__main__", mod_spec)
remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 85, in _run_code
remote: exec(code, run_globals)
remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 2272, in <module>
remote: Error installing package. Retry? [n/y/e]
remote: halt_on_error=options.halt_on_error)
remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 681, in download
remote: choice = input().strip()
remote: EOFError: EOF when reading a line
remote: -----> Running post-compile hook
remote: -----> Running install_nltk_data
remote: -----> Starting nltk data installation
remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
remote: warn(RuntimeWarning(msg))
remote: [nltk_data] Downloading package punkt to /app/nltk_data...
remote: [nltk_data] Unzipping tokenizers/punkt.zip.
remote: bin/install_nltk_data: line 21: cd: '/app/nltk_data': No such file or directory
remote: -----> Finished nltk data installation
remote: -----> Post-compile done
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 49M
remote: -----> Launching...
remote: Released v19
remote: https://mysterious-coast-63128.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/mysterious-coast-63128.git
7b1a415..9b14971 master -









share|improve this question




























    up vote
    0
    down vote

    favorite












    I am trying to install nltk packages in heroku using nltk.txt file. int my nltk.txt file only punkt is written. In requirements.txt file nltk is written.
    but when push it it shows the errors.
    Please help to fix my problem



    remote: -----> Python app detected
    remote: ! Python has released a security update! Please consider upgrading to python-3.6.7
    remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
    remote: -----> Installing requirements with pip
    remote:
    remote: -----> Downloading NLTK corpora…
    remote: -----> Downloading NLTK packages: tokenize
    remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
    remote: warn(RuntimeWarning(msg))
    remote: Traceback (most recent call last):
    remote: [nltk_data] Error loading tokenize : Package 'tokenize ' not found in
    remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    remote: [nltk_data] index
    remote: "__main__", mod_spec)
    remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 85, in _run_code
    remote: exec(code, run_globals)
    remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 2272, in <module>
    remote: Error installing package. Retry? [n/y/e]
    remote: halt_on_error=options.halt_on_error)
    remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 681, in download
    remote: choice = input().strip()
    remote: EOFError: EOF when reading a line
    remote: -----> Running post-compile hook
    remote: -----> Running install_nltk_data
    remote: -----> Starting nltk data installation
    remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
    remote: warn(RuntimeWarning(msg))
    remote: [nltk_data] Downloading package punkt to /app/nltk_data...
    remote: [nltk_data] Unzipping tokenizers/punkt.zip.
    remote: bin/install_nltk_data: line 21: cd: '/app/nltk_data': No such file or directory
    remote: -----> Finished nltk data installation
    remote: -----> Post-compile done
    remote: -----> Discovering process types
    remote: Procfile declares types -> web
    remote:
    remote: -----> Compressing...
    remote: Done: 49M
    remote: -----> Launching...
    remote: Released v19
    remote: https://mysterious-coast-63128.herokuapp.com/ deployed to Heroku
    remote:
    remote: Verifying deploy... done.
    To https://git.heroku.com/mysterious-coast-63128.git
    7b1a415..9b14971 master -









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to install nltk packages in heroku using nltk.txt file. int my nltk.txt file only punkt is written. In requirements.txt file nltk is written.
      but when push it it shows the errors.
      Please help to fix my problem



      remote: -----> Python app detected
      remote: ! Python has released a security update! Please consider upgrading to python-3.6.7
      remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
      remote: -----> Installing requirements with pip
      remote:
      remote: -----> Downloading NLTK corpora…
      remote: -----> Downloading NLTK packages: tokenize
      remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
      remote: warn(RuntimeWarning(msg))
      remote: Traceback (most recent call last):
      remote: [nltk_data] Error loading tokenize : Package 'tokenize ' not found in
      remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 193, in _run_module_as_main
      remote: [nltk_data] index
      remote: "__main__", mod_spec)
      remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 85, in _run_code
      remote: exec(code, run_globals)
      remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 2272, in <module>
      remote: Error installing package. Retry? [n/y/e]
      remote: halt_on_error=options.halt_on_error)
      remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 681, in download
      remote: choice = input().strip()
      remote: EOFError: EOF when reading a line
      remote: -----> Running post-compile hook
      remote: -----> Running install_nltk_data
      remote: -----> Starting nltk data installation
      remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
      remote: warn(RuntimeWarning(msg))
      remote: [nltk_data] Downloading package punkt to /app/nltk_data...
      remote: [nltk_data] Unzipping tokenizers/punkt.zip.
      remote: bin/install_nltk_data: line 21: cd: '/app/nltk_data': No such file or directory
      remote: -----> Finished nltk data installation
      remote: -----> Post-compile done
      remote: -----> Discovering process types
      remote: Procfile declares types -> web
      remote:
      remote: -----> Compressing...
      remote: Done: 49M
      remote: -----> Launching...
      remote: Released v19
      remote: https://mysterious-coast-63128.herokuapp.com/ deployed to Heroku
      remote:
      remote: Verifying deploy... done.
      To https://git.heroku.com/mysterious-coast-63128.git
      7b1a415..9b14971 master -









      share|improve this question















      I am trying to install nltk packages in heroku using nltk.txt file. int my nltk.txt file only punkt is written. In requirements.txt file nltk is written.
      but when push it it shows the errors.
      Please help to fix my problem



      remote: -----> Python app detected
      remote: ! Python has released a security update! Please consider upgrading to python-3.6.7
      remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
      remote: -----> Installing requirements with pip
      remote:
      remote: -----> Downloading NLTK corpora…
      remote: -----> Downloading NLTK packages: tokenize
      remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
      remote: warn(RuntimeWarning(msg))
      remote: Traceback (most recent call last):
      remote: [nltk_data] Error loading tokenize : Package 'tokenize ' not found in
      remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 193, in _run_module_as_main
      remote: [nltk_data] index
      remote: "__main__", mod_spec)
      remote: File "/app/.heroku/python/lib/python3.6/runpy.py", line 85, in _run_code
      remote: exec(code, run_globals)
      remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 2272, in <module>
      remote: Error installing package. Retry? [n/y/e]
      remote: halt_on_error=options.halt_on_error)
      remote: File "/app/.heroku/python/lib/python3.6/site-packages/nltk/downloader.py", line 681, in download
      remote: choice = input().strip()
      remote: EOFError: EOF when reading a line
      remote: -----> Running post-compile hook
      remote: -----> Running install_nltk_data
      remote: -----> Starting nltk data installation
      remote: /app/.heroku/python/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
      remote: warn(RuntimeWarning(msg))
      remote: [nltk_data] Downloading package punkt to /app/nltk_data...
      remote: [nltk_data] Unzipping tokenizers/punkt.zip.
      remote: bin/install_nltk_data: line 21: cd: '/app/nltk_data': No such file or directory
      remote: -----> Finished nltk data installation
      remote: -----> Post-compile done
      remote: -----> Discovering process types
      remote: Procfile declares types -> web
      remote:
      remote: -----> Compressing...
      remote: Done: 49M
      remote: -----> Launching...
      remote: Released v19
      remote: https://mysterious-coast-63128.herokuapp.com/ deployed to Heroku
      remote:
      remote: Verifying deploy... done.
      To https://git.heroku.com/mysterious-coast-63128.git
      7b1a415..9b14971 master -






      python heroku nltk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 at 19:31

























      asked Nov 19 at 17:51









      T.Das

      12




      12





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53380150%2ferror-when-installing-nltk-packages-on-heroku%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53380150%2ferror-when-installing-nltk-packages-on-heroku%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'