This is windows problem that we currently unfortunately don’t have a good solution. A workaround is:
trace = pm.sample(1000, tune=1000, cores=1)
Otherwise, you can check out some of the solution discussed here: Sample runtimeerror when cores>1 - #10 by aseyboldt