title: What can I do to resolve the "ModuleError: No module named 'new'" problem?
body: <p>I am trying to run a program but then I get an error saying:</p>
  
  <pre><code>Traceback (most recent call last):
   File "C:\Users\mmv456\AppData\Local\Programs\Python\Python36\lib\site.py", line 168, in addpackage
    exec(line)
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'new'
  </code></pre>
  
  <p>I tried finding this site.py file in that directory but it isn't there so I can't see what exactly is the problem within the python file. I appreciate any help with this.</p>
  
  <p>EDIT: Adding code:</p>
  
  <pre><code>import collections
  import itertools
  import sys
  
  if sys.platform == 'cli':
      import System
      CPU_COUNT = System.Environment.ProcessorCount
  else:
      #try:
      #    import multiprocessing
      #    CPU_COUNT = multiprocessing.cpu_count()
      #except ImportError:
      #    CPU_COUNT = 1
  
      # IronPython seems to be the only common Python implementation that   doesn't
      # have a GIL and therefore the only implementation that benefits from this.
      # Therefore, don't bother making any threads on other implementations.
  CPU_COUNT = 1
  
  try:
      import thread
      import threading
  except ImportError:
      import dummy_threading as threading
      import _dummy_thread as thread
      CPU_COUNT = 1
  </code></pre>