#43501: Py-ephem fails with incorrect binary architecture -----------------------------+-------------------------------- Reporter: tony.mannucci@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: -----------------------------+-------------------------------- I installed py-ephem and received the failure listed below. I believe this is a problem with py-ephem itself. After installing pip using Macports, I followed the installation instructions on the Pyephem web site, which requires pip, and received the same error. I noted that the clang compiler was being used to build the code using pip. Prior builds for my other programs have used gcc. I am running OS X 10.7. I am running version 2.1.1 of Macports. I resolved this problem by installing from source. I note that gcc was the chosen compiler during the source install (using python setup.py install). Thank you! -Tony In [1]: import ephem --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/mannucci/tle_progs/<ipython-input-1-ec29536746b6> in <module>() ----> 1 import ephem /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/ephem/__init__.py in <module>() 3 # convenient Python types. 4 ----> 5 import ephem._libastro as _libastro 6 from math import pi 7 ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/ephem/_libastro.so, 2): no suitable image found. Did find: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/ephem/_libastro.so: mach-o, but wrong architecture -- Ticket URL: <https://trac.macports.org/ticket/43501> MacPorts <http://www.macports.org/> Ports system for OS X