-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation failed (return status=1) #4922
Comments
Can you run a simpler model that doesn't involve Some more info that might help:
|
The following example is another model that I tried, the same error still happened. I assumed that the error code is this one:
np.random.seed(123)
n = 11
_a = 6
_b = 2
x = np.linspace(0, 1, n)
y = _a*x + _b + np.random.randn(n)
niter = 10000
with pm.Model() as linreg:
a = pm.Normal('a', mu=0, sd=100)
b = pm.Normal('b', mu=0, sd=100)
sigma = pm.HalfNormal('sigma', sd=1)
y_est = a*x + b
likelihood = pm.Normal('y', mu=y_est, sd=sigma, observed=y)
start = pm.find_MAP()
step = pm.NUTS(scaling=start)
trace = pm.sample(niter, step, start, random_seed=123)
t = trace[niter//2:]
pm.traceplot(trace, varnames=['a', 'b']) Additional info:
Thank you for your response! @michaelosthege |
@michaelosthege thanks for posting this configuration of your User variables. As soon as I set up mine correctly, all my problems have been resolved. To test if the RTools set up was conflicting with my Anaconda / Pymc3 compilation, I removed RTools completely and when I ran |
@sreedat thanks for that confirmation! I guess we should add corresponding troubleshooting instructions to the install guide.. |
@michaelosthege As a token of my appreciation I would like to create this troubleshooting guide and help developers such as you focus on the developmental aspects of these packages. During the past week, I went through installation of Pymc3 and testing it on Ubuntu 20.04 LTS, Windows 8.1 and Windows 10. So I can provide these instructions from a comparison perspective too if needed. I have never done any thing like this before. So if you can point me to a guide on how to do this, I would love to help. You helped slow down my balding without a doubt, so a double thank you! |
Having been through this in the past I can understand your pain 😅 I see two ways how you could contribute to the wiki page:
To focus the reader attention we could also just link from a troubleshooting section to Github issues where we can have more information and discussion. |
Description of your problem
To begin with, I have followed up the instruction of the installation guide and deploy the new virtual environment with the yml file presented over that page, but I still met with the same problem as I executed the following codes. I have tried out many ways to solve the problem, please assist me to solve the problem.
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Complete error traceback
Please provide any additional information below.
Versions and main components
The text was updated successfully, but these errors were encountered: