[MacPorts] #37415: py27-numpy: cannot import numpy when built with atlas

MacPorts noreply at macports.org
Sun Apr 14 11:42:00 PDT 2013


#37415: py27-numpy: cannot import numpy when built with atlas
--------------------------------+-------------------
  Reporter:  macsforever2000@…  |      Owner:  dh@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.1.2
Resolution:                     |   Keywords:
      Port:  py-numpy           |
--------------------------------+-------------------

Comment (by jason-macports@…):

 Replying to [comment:21 michaelld@…]:
 > I see this issue too (I cannot actually compile the latest atlas, but
 the issue is also with the prior version):
 > {{{
 > nm -a `port contents atlas | grep libatlas` | grep omp_get_num_threads
 > }}}
 > returns "U _omp_get_num_threads" meaning that that symbol is undefined
 in the library. Hence, it seems like either libatlas.a needs to statically
 link with ${prefix}/lib/gccXY/libgomp.a, or any project using this library
 needs to link with ${prefix}/lib/gccXY/libgomp.dylib or .a. Basically:
 this seems to be an atlas issue, not a numpy issue. Or, maybe I'm missing
 something?

 I see the same result/issue, even following your suggestion in comment:28
 below.  The only way I've been able to get `py27-numpy` and `py27-scipy`,
 and `opencv+python27` is to drop `atlas`.  I haven't tried the `gcc45`
 trick, or the suggestion in ticket:38724#comment:24.

-- 
Ticket URL: <https://trac.macports.org/ticket/37415#comment:29>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list