I have written come code that has worked on both Windows XP and Windows Server 2008 64-Bit. However I have just launched an Amazon Windows 64-bit instance and the code fails.
Very simple it looks like this
import multiprocessing
processors = multiprocessing.cpu_count()
print processors
I receive a NotImplementedError which I do not understand and the docs are not that helpful in explaining.
I just do not understand why it would work on one server and not on another with identical installations of Python 2.7
Anyone else run into this problem/error?
It might be just the multiprocessing module, try using the psutil module it might work. SO in your case just do:
I tried this on the Amazon Windows 64-bit and it works quite well.