# My pymc3 can't work,could you tell me how to fix it

**URL:** <https://discourse.pymc.io/t/my-pymc3-cant-work-could-you-tell-me-how-to-fix-it/4257>\
**Category:** Questions\
**Created:** [December 24, 2019, 9:17am UTC](https://discourse.pymc.io/t/my-pymc3-cant-work-could-you-tell-me-how-to-fix-it/4257 "2019-12-24T09:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TSinCUG](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@TSinCUG](https://discourse.pymc.io/u/TSinCUG)\
**Post date:** [December 24, 2019, 9:17am UTC](https://discourse.pymc.io/t/my-pymc3-cant-work-could-you-tell-me-how-to-fix-it/4257/1 "2019-12-24T09:17:36Z")

</div>

You can find the C code in this temporary file: C:\Users\CUG\_AS\AppData\Local\Temp\theano\_compilation\_error\_ggtzltfr  
Traceback (most recent call last):  
File “D:/Spyder/edwqe.py”, line 16, in   
y = pm.Bernoulli(‘y’, p=theta, observed=data)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\pymc3\distributions\distribution.py”, line 46, in **new**  
return model.Var(name, dist, data, total\_size)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\pymc3\model.py”, line 856, in Var  
total\_size=total\_size, model=self)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\pymc3\model.py”, line 1389, in **init**  
self.logp\_elemwiset = distribution.logp(data)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\pymc3\distributions\discrete.py”, line 357, in logp  
value \>= 0, value \<= 1,  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\tensor\var.py”, line 59, in **le**  
rval = theano.tensor.basic.le(self, other)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\op.py”, line 670, in **call**  
no\_recycling=[])  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\op.py”, line 955, in make\_thunk  
no\_recycling)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\op.py”, line 858, in make\_c\_thunk  
output\_storage=node\_output\_storage)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cc.py”, line 1217, in make\_thunk  
keep\_lock=keep\_lock)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cc.py”, line 1157, in **compile**  
keep\_lock=keep\_lock)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cc.py”, line 1624, in cthunk\_factory  
key=key, lnk=self, keep\_lock=keep\_lock)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cmodule.py”, line 1189, in module\_from\_key  
module = lnk.compile\_cmodule(location)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cc.py”, line 1527, in compile\_cmodule  
preargs=preargs)  
File “C:\Users\CUG\_AS\Anaconda3\lib\site-packages\theano\gof\cmodule.py”, line 2399, in compile\_str  
(status, compile\_stderr.replace(’\n’, '. ')))  
Exception: ('Compilation failed (return status=1): C:\Users\CUG\_AS\AppData\Local\Temp\ccKAQVaE.s: Assembler messages:\r. C:\Users\CUG\_AS\AppData\Local\Temp\ccKAQVaE.s:284: Error: invalid register for .seh\_savexmm\r. ', ‘[Elemwise{le,no\_inplace}(TensorConstant{[1 0 0 0]}, \<TensorType(int8, (True,))\>)]’)

---

<div class="post-metadata">

**Author:** ![Marion2025](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@Marion2025](https://discourse.pymc.io/u/Marion2025)\
**Post date:** [March 18, 2020, 3:32am UTC](https://discourse.pymc.io/t/my-pymc3-cant-work-could-you-tell-me-how-to-fix-it/4257/2 "2020-03-18T03:32:44Z")

</div>

I have this same problem. I believe the key issue here is

> Error: invalid register for .seh\_savexmm\r. ’

Stack Overflow has many similar cases

> <https://stackoverflow.com/questions/52372620/invalid-register-for-seh-savexmm-r-using-theano-with-mingw>

Lots of googling suggest this is an issue with the compiler. Are you using GCC compiler? Were you able to resolve the problem and get PyMC3 running?
