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 -
python heroku nltk
add a comment |
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 -
python heroku nltk
add a comment |
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 -
python heroku nltk
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
python heroku nltk
edited Nov 20 at 19:31
asked Nov 19 at 17:51
T.Das
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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