[MacPorts] #37415: py27-numpy: cannot import numpy (was: py27-matplotlib cannot find numpy)

MacPorts noreply at macports.org
Thu Dec 27 12:44:05 PST 2012


#37415: py27-numpy: cannot import numpy
--------------------------------+-------------------
  Reporter:  macsforever2000@…  |      Owner:  ram@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.1.2
Resolution:                     |   Keywords:
      Port:  py27-numpy         |
--------------------------------+-------------------
Changes (by macsforever2000@…):

 * cc: dh@… (added)
 * port:  py27-matplotlib => py27-numpy


Old description:

> I'm seeing the following error on one computer running Mac OS X 10.8.2
> and Xcode 4.5.2. It installs fine on the rest of my 10.8.2 Macs but
> something is different about this one.
>
> {{{
> :notice:build --->  Building py27-matplotlib
> :debug:build Executing proc-pre-org.macports.build-build-0
> :debug:build Executing org.macports.build (py27-matplotlib)
> :debug:build Environment: CPATH='/opt/local/include' CFLAGS='-arch
> x86_64' CXXFLAGS='-arch x86_64' LIBRARY_PATH='/opt/local/lib'
> MACOSX_DEPLOYMENT_TARGET='10.8'
> PKG_CONFIG_PATH='/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/'
> CXX='/usr/bin/clang++'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_tarballs_ports_python_py-
> matplotlib/py27-matplotlib/work/.CC_PRINT_OPTIONS' F90FLAGS='-m64'
> LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJC='/usr/bin/clang'
> OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES'
> MPLIB_BASE='/opt/local' CC='/usr/bin/clang'
> :debug:build Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_tarballs_ports_python_py-
> matplotlib/py27-matplotlib/work/matplotlib-1.2.0" &&
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
> setup.py --no-user-cfg build'
> :debug:build Executing command line:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_tarballs_ports_python_py-
> matplotlib/py27-matplotlib/work/matplotlib-1.2.0" &&
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
> setup.py --no-user-cfg build
> :info:build basedirlist is: ['/opt/local']
> :info:build
> ============================================================================
> :info:build BUILDING MATPLOTLIB
> :info:build             matplotlib: 1.2.0
> :info:build                 python: 2.7.3 (default, Dec 27 2012,
> 09:11:40)  [GCC 4.2.1
> :info:build                         Compatible Apple Clang 4.1
> :info:build                         ((tags/Apple/clang-421.11.66))]
> :info:build               platform: darwin
> :info:build
> :info:build REQUIRED DEPENDENCIES
> :info:build                  numpy: no
> :info:build                         * You must install numpy 1.4 or later
> to build
> :info:build                         * matplotlib.
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_tarballs_ports_python_py-
> matplotlib/py27-matplotlib/work/matplotlib-1.2.0" &&
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
> setup.py --no-user-cfg build
> :info:build Exit code: 1
> :error:build org.macports.build for port py27-matplotlib returned:
> command execution failed
> }}}
>
> But numpy is installed:
>
> {{{
> $ port installed py27-numpy
> The following ports are currently installed:
>  py27-numpy @1.6.2_1+atlas+gcc47 (active)
> }}}
>
> Let me know what other information you need to debug this.

New description:

 I'm seeing the following error on one computer running Mac OS X 10.8.2 and
 Xcode 4.5.2. It installs fine on the rest of my 10.8.2 Macs but something
 is different about this one.
 {{{
 $ port installed py27-numpy
 The following ports are currently installed:
  py27-numpy @1.6.2_1+atlas+gcc47 (active)

 $ which python
 /opt/local/bin/python

 $ python
 Python 2.7.3 (default, Dec 27 2012, 09:11:40)
 [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on
 darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/__init__.py", line 137, in <module>
     import add_newdocs
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/add_newdocs.py", line 9, in <module>
     from numpy.lib import add_newdoc
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/lib/__init__.py", line 13, in <module>
     from polynomial import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/lib/polynomial.py", line 17, in <module>
     from numpy.linalg import eigvals, lstsq
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/linalg/__init__.py", line 48, in <module>
     from linalg import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/linalg/linalg.py", line 23, in <module>
     from numpy.linalg import lapack_lite
 ImportError:
 dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/linalg/lapack_lite.so, 2):
   Symbol not found: _omp_get_num_threads
   Referenced from:
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/linalg/lapack_lite.so
   Expected in: flat namespace
  in
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/linalg/lapack_lite.so
 >>>

 }}}

 Let me know what other information you need to debug this.

--

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


More information about the macports-tickets mailing list