Home>

There is this code:

Import Time
Import subprocess
Import pyttsx3.
From Waiter Import Run
Engine= pyttsx3.init ()
RU_Voice_ID= "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Speech \ Voices \ Tokens \ TTS_MS_RU-RU_IRINA_11.0"
Engine.SetProperty ('Voice', ru_voice_id)
Print ('Begin')
Engine.say ('Welcome, Creator')
Engine.say ('Waiting for your instructions!')
Engine.runandwait ()
Choice= Input ()
if choice== 'Run':
    RUN ()
proc.stdin.close ()
proc.wait ()

It gives an error:

Eoferror: Eof WHEN READING A LINE

Begin
Traceback (MOST Recent Call Last):
  File "Assistant.py", Line 13, In <
Module >
    Choice= Input ()
Eoferror: Eof WHEN READING A LINE

And I do not understand why, and how to solve it.

Add the full text of the error to the question.

Sergey Gornostaev2021-04-08 08:37:17

@SergeyGornostaev, I also call the script using another script in the startup through the command line.

Desertdeveloper2021-04-08 08:37:17