title: Python - EOFError: Ran out of input
body: <p>I want to run parallel processing, using the class but the code gives this error :</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;C:\Users\MonPc\AppData\Local\Programs\Python\Python37\lib\multiprocessing\spawn.py&quot;, line 105, in spawn_main
      exitcode = _main(fd)
    File &quot;C:\Users\MonPc\AppData\Local\Programs\Python\Python37\lib\multiprocessing\spawn.py&quot;, line 115, in _main
      self = reduction.pickle.load(from_parent)
  EOFError: Ran out of input
  </code></pre>
  <p>This is just similar to the original code that I want to work on.
  MyCode :</p>
  <pre><code>from multiprocessing import Process
  
  class class1:
      def __init__(self):
          super().__init__()
          txt = &quot;Rachid&quot;
          p1 = class2(txt)
          p1.start()
          p1.join()
  
  class class2(Process):
      def __init__(self, txt):
          Process.__init__(self)
          self.txt = txt
  
      def run (self):
          print(&quot;*&quot;*10)
          print(self.txt)
          print(&quot;*&quot;*10)
  
  class1()
  </code></pre>
  <p>How can I avoid getting this error ?</p>