Skip to content
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

undefined symbol: dcopy_wrap_ #164

Closed
RafaelCRdeLima opened this issue Aug 23, 2017 · 14 comments
Closed

undefined symbol: dcopy_wrap_ #164

RafaelCRdeLima opened this issue Aug 23, 2017 · 14 comments

Comments

@RafaelCRdeLima
Copy link

Hello,
when I run the test suite I get this error:
raceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pymc/init.py", line 48, in
from . import gp
File "/usr/local/lib/python2.7/dist-packages/pymc/gp/init.py", line 22, in
from .Covariance import *
File "/usr/local/lib/python2.7/dist-packages/pymc/gp/Covariance.py", line 11, in
from .incomplete_chol import ichol, ichol_continue
ImportError: /usr/local/lib/python2.7/dist-packages/pymc/gp/incomplete_chol.so: undefined symbol: dcopy_wrap_

Could you please help me?

Thanks.

@fonnesbeck
Copy link
Member

This looks like a Fortran error. How did you install PyMC? If you built it from source, which Fortran compiler did you use?

Also, are you sure you want to be using PyMC2? You might want to check out PyMC3 unless you have a reason not to.

@RafaelCRdeLima
Copy link
Author

Hello,
Yes, I downloaded the sources and tried to build it.
I am using "GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0".

@RafaelCRdeLima
Copy link
Author

Now I've installed the PyMC3 using the pip install. But the same error persisted.

@fonnesbeck
Copy link
Member

Yes, pip will be installing it from source as well. Can you try building with the following?

python setup.py config_fc --fcompiler gfortran build

@fonnesbeck
Copy link
Member

Wait, just noticed that you said you installed PyMC3, so disregard my comment above. You can’t possibly get the same error with PyMC3 because it does not use Fortran. Make sure you import pymc3 And not pymc

@RafaelCRdeLima
Copy link
Author

I've installed the requirements.txt. But, actually my system said I have already everything satisfied. I am really doing something really wrong here. Did I create a conflict between the PyMC versions?

@fonnesbeck
Copy link
Member

It’s still not clear to me whether you are dealing with PyMC3 or PyMC2. They are completely different packages, not just versions.

@RafaelCRdeLima
Copy link
Author

My last try was this one:
git clone https://github.com/pymc-devs/pymc3
cd pymc3
pip install -r requirements.txt

Then I did the following test in the python shell:
import pymc
pymc.test()

and same error .....undefined symbol: dcopy_wrap_

@RafaelCRdeLima
Copy link
Author

Oh, sorry, now I saw I was in the "getting started" doc for the PyMC2.

@fonnesbeck
Copy link
Member

You should not be importing pymc, try importing pymc3.

Installing requirements.txt explicitly is not required; all you need to do is pip install pymc3 (or if you are using Anaconda, conda install pymc3) and it should install everything you need.

@fonnesbeck
Copy link
Member

Also, the docs for PyMC3 are here.

@RafaelCRdeLima
Copy link
Author

Now it is working! Thanks a lot, and sorry for disturbing you.
I have just one more question. The problem I want to solve involves the fitting of experimental data. I have a physical model to this data, whose has at least 8 parameters, and also I have a python class for this model. Do you have a example near to this problem?

@fonnesbeck
Copy link
Member

You might post that question to our Discourse discussion board, and someone from the community might be able to help. Also, there are a whole set of Jupyter notebooks with a selection of examples that are included in the package, which may be helpful.

@RafaelCRdeLima
Copy link
Author

Ok, thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants