I'm using ArcPy with multiprocessing to run area solar radiation tool. I keep getting this "Runtime Error The Product License has not been initialized". The script is still running and I can get results. But I wonder if this slows down the process and how I can avoid this error. Here is how I set up the multiprocessing part
# create a process pool
pool = Pool(processes=cpu_count())
pool.starmap(calcSolar,input_path)
pool.close()
pool.join()
I tried to change the number of processes and sometimes I didn't get this error. I'm very new to multiprocessing. Any help is appreciated!