pymc-devs / pymc2

THIS IS THE **OLD** PYMC PROJECT (VERSION 2). PLEASE USE PYMC INSTEAD:
http://pymc-devs.github.com/pymc/
Other
879 stars 229 forks source link

ImportError pymc on Anaconda/Mac OS X #110

Closed adakite closed 8 years ago

adakite commented 8 years ago

Hi,

I have anaconda (up-to-date) on my Mac running the very last OS X (10.11.4) and up to now I never had any issues with packages installation but for PyMC.

While installation ran smoothly, I cannot use it as while importing I got:

----> 8 import numpy, pymc
      9 
     10 # create some test data

/Users/user/anaconda/lib/python2.7/site-packages/pymc-2.3.6-py2.7-macosx-10.5-x86_64.egg/pymc/__init__.pyc in <module>()
     28 from .PyMCObjects import *
     29 from .InstantiationDecorators import *
---> 30 from .CommonDeterministics import *
     31 from .NumpyDeterministics import *
     32 from .distributions import *

/Users/user/anaconda/lib/python2.7/site-packages/pymc-2.3.6-py2.7-macosx-10.5-x86_64.egg/pymc/CommonDeterministics.py in <module>()
     19 import inspect
     20 import types
---> 21 from .utils import safe_len, stukel_logit, stukel_invlogit, logit, invlogit, value, find_element
     22 from copy import copy
     23 import sys

/Users/user/anaconda/lib/python2.7/site-packages/pymc-2.3.6-py2.7-macosx-10.5-x86_64.egg/pymc/utils.py in <module>()
     12 from copy import copy
     13 from .PyMCObjects import Variable
---> 14 from . import flib
     15 import pdb
     16 from numpy.linalg.linalg import LinAlgError

ImportError: dlopen(/Users/user/anaconda/lib/python2.7/site-packages/pymc-2.3.6-py2.7-macosx-10.5-x86_64.egg/pymc/flib.so, 2): Symbol not found: ___multc3
  Referenced from: /usr/local/lib/libquadmath.0.dylib
  Expected in: /usr/local/lib/libgcc_s.1.dylib
 in /usr/local/lib/libquadmath.0.dylib

Any idea how to fix that?

Thank you

fonnesbeck commented 8 years ago

Ddi you install this via pip or conda?

adakite commented 8 years ago

I used conda, should I try pip?

adakite commented 8 years ago

I did reinstall everything (including my anaconda distrib') and this is now working! Don't know what happened.