Wednesday, 15 April 2015

python - Runtime error with kombu on Mac OS 10.9.5 -



python - Runtime error with kombu on Mac OS 10.9.5 -

i unusual error when trying utilize celery python on os x 10.9.5. used work, it's (apparently) failing utilize c library when importing kombu.five.

~$ python python 2.7.8 (default, aug 24 2014, 21:26:19) [gcc 4.2.1 compatible apple llvm 5.1 (clang-503.0.40)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import celery traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "/usr/local/lib/python2.7/site-packages/celery/__init__.py", line 130, in <module> celery import 5 file "/usr/local/lib/python2.7/site-packages/celery/five.py", line 51, in <module> kombu.five import monotonic file "/usr/local/lib/python2.7/site-packages/kombu/five.py", line 52, in <module> absolute_to_nanoseconds = coreservices.absolutetonanoseconds file "/usr/local/cellar/python/2.7.8_1/frameworks/python.framework/versions/2.7/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__ func = self.__getitem__(name) file "/usr/local/cellar/python/2.7.8_1/frameworks/python.framework/versions/2.7/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__ func = self._funcptr((name_or_ordinal, self)) attributeerror: dlsym(rtld_default, absolutetonanoseconds): symbol not found

i using python 2.7.8 (installed via brew install python) , latest versions of celery , kombu (installed via pip install celery). hint?

here output of brew --config:

homebrew_version: 0.9.5 origin: https://github.com/homebrew/homebrew.git head: c32db7bdaaedbf94d070ac13c1f8c42bd79c3853 lastly commit: 51 minutes ago homebrew_prefix: /usr/local homebrew_cellar: /usr/local/cellar cpu: quad-core 64-bit sandybridge os x: 10.9.5-x86_64 xcode: 6.0.1 clt: 6.0.0.0.1.1410400753 clang: 6.0 build 600 x11: 2.7.6 => /opt/x11 scheme ruby: 2.0.0-481 perl: /usr/bin/perl python: /usr/local/bin/python => /usr/local/cellar/python/2.7.8_1/frameworks/python.framework/versions/2.7/bin/python2.7

here more output regarding ctypes:

>>> import ctypes, ctypes.util >>> coreservices = ctypes.cdll(ctypes.util.find_library('coreservices')) >>> print coreservices <cdll 'none', handle fffffffffffffffe @ 10eac1e50> >>> print coreservices.absolutetonanoseconds traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "/usr/local/cellar/python/2.7.8_1/frameworks/python.framework/versions/2.7/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__ func = self.__getitem__(name) file "/usr/local/cellar/python/2.7.8_1/frameworks/python.framework/versions/2.7/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__ func = self._funcptr((name_or_ordinal, self)) attributeerror: dlsym(rtld_default, absolutetonanoseconds): symbol not found

found it, timsmith! conflict in dyld_fallback_library_path environment variable between libraries used homebrew python , paraview.

python osx homebrew kombu

No comments:

Post a Comment