title: ParallelPython created in thread gives
body: <p>Creating a job server gives the error:</p>
  
  <pre><code>Python int too large to convert to C long
  </code></pre>
  
  <p>when created in thread (win32), using parallel python version 1.6.5 &amp; Python27.</p>
  
  <p>Here is the traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\lib\site-packages\ParrallelPython.py", line 91, in __init__
      self.job_server = pp.Server(ppservers=self.ppservers, socket_timeout=3600)
    File "C:\Python27\lib\site-packages\pp.py", line 341, in __init__
      self.set_ncpus(ncpus)
    File "C:\Python27\lib\site-packages\pp.py", line 505, in set_ncpus
      range(ncpus - len(self.__workers))])
    File "C:\Python27\lib\site-packages\pp.py", line 138, in __init__
      self.start()
    File "C:\Python27\lib\site-packages\pp.py", line 150, in start
      self.pid = int(self.t.receive())
    File "C:\Python27\lib\site-packages\pptransport.py", line 148, in receive
      msg = self.r.read(e_size-r_size)
  OverflowError: Python int too large to convert to C long
  </code></pre>
  
  <p>Similar issue to link below:</p>
  
  <p><a href="http://www.parallelpython.com/component/option,com_smf/Itemid,1/topic,385.0/wap2,wap2" rel="nofollow noreferrer">ParallelPython Forum Question</a></p>