ImportError: undefined symbol: floor_ on CentOS release 5.8

99 views
Skip to first unread message

Jeet Sukumaran

unread,
Jun 1, 2012, 3:28:31 PM6/1/12
to PyMC
Hi all,

I am trying to get PyMC to work on a Linux (CentOS 5.8) cluster.

I built and installed NumPy and SciPy from source.

I have tried both building and installing PyMC from source as well as
easy_install. In both cases, the build and installation seems to
succeed. But when I try to import PyMC I get the following error:

#################
Traceback (most recent call last):
File "x.py", line 9, in <module>
import pymc
File "/home/[...]/site-packages/pymc/__init__.py", line 47, in
<module>
from . import gp
File "/home/[...]/site-packages/pymc/gp/__init__.py", line 27, in
<module>
from .cov_funs import *
File "/home/[...]/site-packages/pymc/gp/cov_funs/__init__.py", line
1, in <module>
from .isotropic_cov_funs import *
ImportError: /home/[...]/site-packages/pymc/gp/cov_funs/
isotropic_cov_funs.so: undefined symbol: floor_
######################

Any suggestions on what could be the issue and how to resolve it?

Jeet Sukumaran

unread,
Jun 1, 2012, 3:47:40 PM6/1/12
to PyMC
Ok, I solved this by rebuilding PyMC using:

python setup.py config_fc --fcompiler=gfortran build

-- jeet
Reply all
Reply to author
Forward
0 new messages