py25-numpy Failed to Build, 10.5.2

Morgan Sutherland morgan at morgansutherland.net
Mon May 12 22:07:31 PDT 2008


Does anybody know what to make of this?

/opt/local/bin: sudo port install py25-numpy
--->  Fetching py25-numpy
--->  Verifying checksum(s) for py25-numpy
--->  Extracting py25-numpy
--->  Applying patches to py25-numpy
--->  Configuring py25-numpy
--->  Building py25-numpy with target build
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.0.4"
&& /opt/local/bin/python2.5 setup.py config_fc --fcompiler g95
--f77exec /opt/local/bin/g95 --f90exec /opt/local/bin/g95 build "
returned error 1
Command output: Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Running from numpy source directory.
Traceback (most recent call last):
  File "setup.py", line 89, in <module>
    setup_package()
  File "setup.py", line 61, in setup_package
    from numpy.distutils.core import setup
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.0.4/numpy/distutils/__init__.py",
line 6, in <module>
    import ccompiler
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.0.4/numpy/distutils/ccompiler.py",
line 11, in <module>
    from numpy.distutils import log
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.0.4/numpy/distutils/log.py",
line 7, in <module>
    from misc_util import red_text, yellow_text, cyan_text,
green_text, is_sequence, is_string
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-numpy/work/numpy-1.0.4/numpy/distutils/misc_util.py",
line 8, in <module>
    import tempfile
  File "/opt/local/lib/python2.5/tempfile.py", line 33, in <module>
    from random import Random as _Random
  File "/opt/local/lib/python2.5/random.py", line 43, in <module>
    from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: No module named math


-- 
Morgan Sutherland


More information about the macports-users mailing list