I'm trying to run a Python file, while using multiprossecing.
when I'm trying to use input on the same function I'm prossecing, it gives me EOF error, as follows:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\process.py", line 254, in _bootstrap
File "C:\Users\user\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\process.py", line 93, in run
File "C:\Users\user\PycharmProjects\PROJECT-XBIT\generator.py", line 56, in start
inputcode = input("Enter Passcode: ")
EOFError: EOF when reading a line
I think when you create a new process it gets its own standard input. If you use a thread instead it should be fine.
You can also just forget threads and processes and put a check on how much time has passed in the loop in the