I would try to clear all installed versions of numpy. Remove the local build directory from where you downloaded and installed the numpy source and then re-install numpy.
Johan On Fri, Sep 20, 2013 at 11:20 AM, Ronald Haynes <[email protected]> wrote: > No mention of num py in either of these locations. > > Best, > R Haynes > > Dr. Ronald D. Haynes (PhD) > Associate Professor > Department of Mathematics & Statistics > Memorial University of Newfoundland > St. John's, NL, Canada > A1C 5S7 > (P) 709-864-8825 > (F) 709-864-3010 > > > > On 2013-09-20, at 11:17 AM, Johan Hake <[email protected]> wrote: > > Then you should have the latest version. It also looks like we do the > correct thing > by defining: > > -DNPY_NO_DEPRECATED_API=NPY_1_8_API_VERSION > > The weird thing is that it complains that we should set it to 1_7. So I > wonder if you have an older version of numpy installed in one of: > > -I/usr/local/include -I/usr/local/opt/sqlite/include > > which is picked up instead of your latest version? > > Johan > > > On Fri, Sep 20, 2013 at 10:41 AM, Ronald Haynes <[email protected]>wrote: > >> I used the version obtained with the "download" button from the bitbucket >> website. >> How do I get the development version? >> >> Best, >> R Haynes >> >> Dr. Ronald D. Haynes (PhD) >> Associate Professor >> Department of Mathematics & Statistics >> Memorial University of Newfoundland >> St. John's, NL, Canada >> A1C 5S7 >> (P) 709-864-8825 >> (F) 709-864-3010 >> >> >> >> On 2013-09-20, at 10:19 AM, Johan Hake <[email protected]> wrote: >> >> This should have been fixed in the development version of FFC. >> >> Johan >> >> >> On Fri, Sep 20, 2013 at 10:07 AM, Ronald Haynes <[email protected]>wrote: >> >>> Hi folks, just downloaded and tried to build fenics on my mac os >>> system. I normally use home-brew for installs - as far as I recall >>> numpy was installed that way. Here is the output for the build for ffc >>> any help would be appreciated. >>> >>> sudo python setup.py install >>> Password: >>> running install >>> running build >>> running build_py >>> creating build >>> creating build/lib.macosx-10.8-x86_64-2.7 >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/__init__.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/analysis.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/codegeneration.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/codesnippets.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/compiler.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/constants.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/cpp.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/enrichedelement.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/evaluatebasis.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/evaluatebasisderivatives.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/evaluatedof.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/extras.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/fiatinterface.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/formatting.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/interpolatevertexvalues.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/jitcompiler.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/jitobject.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/log.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/mixedelement.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/optimization.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/parameters.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/plot.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/quadrature_schemes.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/quadratureelement.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/representation.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/representationutils.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/restrictedelement.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/timeelements.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/utils.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> copying ffc/wrappers.py -> build/lib.macosx-10.8-x86_64-2.7/ffc >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/__init__.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/expr.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/floatvalue.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/fraction.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/optimisedquadraturetransformer.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/product.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadraturegenerator.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadratureoptimization.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadraturerepresentation.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadraturetransformer.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadraturetransformerbase.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/quadratureutils.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/reduce_operations.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/sumobj.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/symbol.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> copying ffc/quadrature/symbolics.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/quadrature >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/__init__.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/costestimation.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/geometrytensor.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/monomialextraction.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/monomialintegration.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/monomialtransformation.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/multiindex.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/referencetensor.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/tensorgenerator.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/tensoroptimization.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/tensorreordering.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> copying ffc/tensor/tensorrepresentation.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/tensor >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc/uflacsrepr >>> copying ffc/uflacsrepr/__init__.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/uflacsrepr >>> copying ffc/uflacsrepr/uflacsgenerator.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/uflacsrepr >>> copying ffc/uflacsrepr/uflacsoptimization.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/uflacsrepr >>> copying ffc/uflacsrepr/uflacsrepresentation.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/uflacsrepr >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc/errorcontrol >>> copying ffc/errorcontrol/__init__.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/errorcontrol >>> copying ffc/errorcontrol/errorcontrol.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/errorcontrol >>> copying ffc/errorcontrol/errorcontrolgenerators.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/errorcontrol >>> creating build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/__init__.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/capsules.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/form.py -> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/functionspace.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/goalfunctional.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/includes.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> copying ffc/dolfin/wrappers.py -> >>> build/lib.macosx-10.8-x86_64-2.7/ffc/dolfin >>> running build_ext >>> building 'ffc.time_elements_ext' extension >>> creating build/temp.macosx-10.8-x86_64-2.7 >>> creating build/temp.macosx-10.8-x86_64-2.7/ffc >>> creating build/temp.macosx-10.8-x86_64-2.7/ffc/ext >>> cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include >>> -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall >>> -Wstrict-prototypes -DNPY_NO_DEPRECATED_API=NPY_1_8_API_VERSION >>> -I/Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include >>> -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 >>> -c ffc/ext/time_elements_interface.cpp -o >>> build/temp.macosx-10.8-x86_64-2.7/ffc/ext/time_elements_interface.o >>> In file included from ffc/ext/time_elements_interface.cpp:24: >>> In file included from >>> /Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include/numpy/arrayobject.h:15: >>> In file included from >>> /Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17: >>> In file included from >>> /Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1722: >>> /Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include/numpy/npy_deprecated_api.h:11:2: >>> warning: >>> "Using deprecated NumPy API, disable it by #defining >>> NPY_NO_DEPRECATED_API >>> NPY_1_7_API_VERSION" [-W#warnings] >>> #warning "Using deprecated NumPy API, disable it by #defining... >>> ^ >>> /Library/Python/2.7/site-packages/numpy-1.8.0.dev_f2f0ac0_20120725-py2.7-macosx-10.8-x86_64.egg/numpy/core/include/numpy/npy_deprecated_api.h:23:2: >>> error: >>> Should never include npy_deprecated_api directly. >>> #error Should never include npy_deprecated_api directly. >>> ^ >>> 1 warning and 1 error generated. >>> error: command 'cc' failed with exit status 1 >>> >>> Best, >>> R Haynes >>> >>> Dr. Ronald D. Haynes (PhD) >>> Associate Professor >>> Department of Mathematics & Statistics >>> Memorial University of Newfoundland >>> St. John's, NL, Canada >>> A1C 5S7 >>> (P) 709-864-8825 >>> (F) 709-864-3010 >>> >>> >>> >>> >>> _______________________________________________ >>> fenics-support mailing list >>> [email protected] >>> http://fenicsproject.org/mailman/listinfo/fenics-support >>> >>> >> >> > >
_______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
