Opened 10 years ago

Last modified 6 years ago

#43501 closed defect

Py-ephem fails with incorrect binary architecture — at Initial Version

Reported by: amannucci (Anthony Mannucci) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: aronnax
Port: py-ephem

Description

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>()


/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ephem/init.py in <module>()

3 # convenient Python types.

4


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

Change History (0)

Note: See TracTickets for help on using tickets.