Opened 10 years ago

Closed 6 years ago

#43501 closed defect (invalid)

py-ephem fails with incorrect binary architecture

Reported by: amannucci (Anthony Mannucci) Owned by: lpsinger (Leo Singer)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: py-ephem

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (2)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: aronnax removed
Description: modified (diff)
Owner: changed from macports-tickets@… to aronnax@…
Port: py-ephem added
Summary: Py-ephem fails with incorrect binary architecturepy-ephem fails with incorrect binary architecture
Version: 2.2.12.1.1

Please update to MacPorts 2.2.1 by running "sudo port selfupdate".

Please remember to use WikiFormatting when writing in Trac.

The Cc field requires complete email addresses.

What does "port -v installed py27-ephem" say MacPorts thinks the architecture is?

What does "lipo -info /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ephem/_libastro.so" say the architecture of the file actually is?

What program are you running when this problem occurs, and what is its architecture, according to "lipo -info"?

What is /Users/mannucci/tle_progs?

What version of Xcode do you have installed?

comment:2 Changed 6 years ago by lpsinger (Leo Singer)

Resolution: invalid
Status: newclosed

Please reopen if this is still an issue.

Note: See TracTickets for help on using tickets.