[Bug 195221] New: graphics/py-gdal: ImportError: numpy.core.multiarray failed to import

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 20 14:02:08 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195221

            Bug ID: 195221
           Summary: graphics/py-gdal: ImportError: numpy.core.multiarray
                    failed to import
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: mazhe at alkumuna.eu
          Assignee: sunpoet at FreeBSD.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)

Created attachment 149641
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149641&action=edit
Add fortran to USES

As py-gdal scripts can use numpy for their ends, the Makefile shoud have
fortran in USES (because, sadly, numpy uses it) or else scripts may fail to
import stuff, for example, with gdal_calc.py:

% gdal_calc.py -h
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
  File "/usr/local/bin/gdal_calc.py", line 50, in <module>
    from gdalnumeric import *
  File "/usr/local/lib/python2.7/site-packages/gdalnumeric.py", line 5, in
<module>
    from osgeo.gdal_array import *
  File "/usr/local/lib/python2.7/site-packages/osgeo/gdal_array.py", line 25,
in <module>
    _gdal_array = swig_import_helper()
  File "/usr/local/lib/python2.7/site-packages/osgeo/gdal_array.py", line 21,
in swig_import_helper
    _mod = imp.load_module('_gdal_array', fp, pathname, description)
ImportError: numpy.core.multiarray failed to import

Attached patch do so.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer sunpoet at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list