[MacPorts] #43501: py-ephem fails with incorrect binary architecture (was: Py-ephem fails with incorrect binary architecture)
MacPorts
noreply at macports.org
Sat Apr 26 17:22:58 PDT 2014
#43501: py-ephem fails with incorrect binary architecture
------------------------------+-----------------------
Reporter: tony.mannucci@… | Owner: aronnax@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.1
Resolution: | Keywords:
Port: py-ephem |
------------------------------+-----------------------
Changes (by ryandesign@…):
* cc: aronnax (removed)
* version: 2.2.1 => 2.1.1
* owner: macports-tickets@… => aronnax@…
* port: => py-ephem
Old 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>()
> ----> 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
New 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>()
----> 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
}}}
--
Comment:
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?
--
Ticket URL: <https://trac.macports.org/ticket/43501#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list