Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop a termimnal chat conversation with bot ? #14

Closed
PaarthBatra opened this issue Dec 25, 2014 · 6 comments
Closed

How to stop a termimnal chat conversation with bot ? #14

PaarthBatra opened this issue Dec 25, 2014 · 6 comments

Comments

@PaarthBatra
Copy link
Collaborator

Hi

This might not be a bug but rather a Question regarding bot . Can you advice How can be finish the chat with bot from terminal ?

I mean do we need to terminate the program or is there any other way like saying bye or something like that ?

@PaarthBatra
Copy link
Collaborator Author

I have more questions ? is this correct way to ask you questions of do you want me to ask questions somewhere else on email maybe ?

@gunthercox
Copy link
Owner

There is two ways to end the chat with the bot, you can either terminate the program using crtl c or you can type exit() to end the terminal session.

Also, this is the correct place to ask questions. It helps because anyone who has the same questions might be able to find an answer in one of these. It is also helpful because it allows me to keep track of issues and make improvements to the software.

@PaarthBatra
Copy link
Collaborator Author

crtl c wont work as i am using pycharm IDE on pycharm crtl F2 is the command to terminate the program .

I noticed whenever we terminate the program it gives this error before being terminated

Traceback (most recent call last):
File "", line 1, in
File "C:\Python2.7.5\lib\site-packages\chatterbot__init
_.py", line 103, in b
egin
user_input = str(raw_input())
EOFError
_

I tried crtl c to terminate the program in python interpreter in my windows installation and got same error . Looks like a bug .

exit() works great 👍

ok i will ask my questions here . Thanks

@kevin-brown
Copy link
Contributor

I noticed whenever we terminate the program it gives this error before being terminated

This is because raw_input is very likely pulling from an input stream, and because the input stream is suddenly empty, it hits an EOF (end of file/stream). It should probably be handled anyway.

There is two ways to end the chat with the bot, you can either terminate the program using crtl c or you can type exit() to end the terminal session.

You should actually use CTRL + d to exit out of the Python interpreter, as CTRL + C will raise a KeyboardInterrupt which usually ends the program (because it is not handled). CTRL + D will send the exit signal, the same as executing exit().

@PaarthBatra
Copy link
Collaborator Author

CTRL + D does nothing .

@lock
Copy link

lock bot commented Mar 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants