Date: Thu, 20 Nov 2014 14:02:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 195221] New: graphics/py-gdal: ImportError: numpy.core.multiarray failed to import Message-ID: <bug-195221-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: mazhe@alkumuna.eu Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@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@FreeBSD.org> --- Auto-assigned to maintainer sunpoet@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195221-13>