unable to run simpletest.py

To matplotlib-users,

I ran the installation guide here on Mac OS:
http://matplotlib.org/basemap/users/installing.html

Except I did brew install geos and subsequently did:
export DYLD_LIBRARY_PATH=/Users/tc9/homebrew/lib
export GEOS_LIBRARY_PATH=/Users/tc9/homebrew/Cellar/geos/3.4.2
export GEOS_DIR=/Users/tc9/homebrew/Cellar/geos/3.4.2

And instead of python setup.py install I did:
/usr/local/bin/python3 setup.py install --user

I got this warning:
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py:260:
UserWarning: Unknown distribution option: 'namespace_packages'
  warnings.warn(msg)

When I try to run simpletest.py in the folder examples with
/usr/local/bin/python3 I get this error:
Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 285.
Abort trap: 6

What am I doing wrong?

Thanks,
Tommy

Here is a more detailed crash report in addition to the one from the
command line:

Application Specific Information:
Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 285.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff93f2e866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff9a44035c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff935bfb1a abort + 125
3 libsystem_c.dylib 0x00007fff935899bf __assert_rtn + 321
4 libgeos-3.4.2.dylib 0x0000000105df3e6b
geos::index::strtree::AbstractSTRtree::query(void const*,
geos::index::strtree::AbstractNode const*, std::__1::vector<void*,
std::__1::allocator<void*> >*) + 363
5 libgeos-3.4.2.dylib 0x0000000105e09c4d
geos::noding::MCIndexNoder::intersectChains() + 173
6 libgeos-3.4.2.dylib 0x0000000105e10514
geos::operation::buffer::BufferBuilder::computeNodedEdges(std::__1::vector<geos::noding::SegmentString*,
std::__1::allocator<geos::noding::SegmentString*> >&,
geos::geom::PrecisionModel const*) + 50
7 libgeos-3.4.2.dylib 0x0000000105e10028
geos::operation::buffer::BufferBuilder::buffer(geos::geom::Geometry
const*, double) + 170
8 libgeos-3.4.2.dylib 0x0000000105e11e84
geos::operation::buffer::BufferOp::bufferOriginalPrecision() + 178
9 libgeos-3.4.2.dylib 0x0000000105e11d94
geos::operation::buffer::BufferOp::computeGeometry() + 14
10 libgeos-3.4.2.dylib 0x0000000105e11d35
geos::operation::buffer::BufferOp::bufferOp(geos::geom::Geometry
const*, double, int, int) + 79
11 libgeos_c.1.dylib 0x0000000105ba8f9f GEOSBuffer_r + 42
12 _geoslib.so 0x00000001056ee0ac
__pyx_pw_8_geoslib_12BaseGeometry_11fix + 28 (_geoslib.c:1990)
13 org.python.python 0x00000001000e5496 PyEval_EvalFrameEx + 31398
14 org.python.python 0x00000001000e665d PyEval_EvalCodeEx + 2349
15 org.python.python 0x00000001000e51f7 PyEval_EvalFrameEx + 30727
16 org.python.python 0x00000001000e665d PyEval_EvalCodeEx + 2349
17 org.python.python 0x000000010003f76a function_call + 186
18 org.python.python 0x000000010000da08 PyObject_Call + 104
19 org.python.python 0x000000010002941c method_call + 140
20 org.python.python 0x000000010000da08 PyObject_Call + 104
21 org.python.python 0x0000000100078651 slot_tp_init + 81
22 org.python.python 0x00000001000736c4 type_call + 212
23 org.python.python 0x000000010000da08 PyObject_Call + 104
24 org.python.python 0x00000001000e1c3f PyEval_EvalFrameEx + 16975
25 org.python.python 0x00000001000e665d PyEval_EvalCodeEx + 2349
26 org.python.python 0x00000001000e671f PyEval_EvalCode + 63
27 org.python.python 0x0000000100110b2e PyRun_FileExFlags + 206
28 org.python.python 0x0000000100110edd
PyRun_SimpleFileExFlags + 717
29 org.python.python 0x000000010012856e Py_Main + 3262
30 org.python.python 0x0000000100000e32 0x100000000 + 3634
31 org.python.python 0x0000000100000c84 0x100000000 + 3204

···

On Fri, Oct 17, 2014 at 3:57 AM, Tommy Carstensen <tommy.carstensen@...287...> wrote:

To matplotlib-users,

I ran the installation guide here on Mac OS:
Installing — Basemap Matplotlib Toolkit 1.2.1 documentation

Except I did brew install geos and subsequently did:
export DYLD_LIBRARY_PATH=/Users/tc9/homebrew/lib
export GEOS_LIBRARY_PATH=/Users/tc9/homebrew/Cellar/geos/3.4.2
export GEOS_DIR=/Users/tc9/homebrew/Cellar/geos/3.4.2

And instead of python setup.py install I did:
/usr/local/bin/python3 setup.py install --user

I got this warning:
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py:260:
UserWarning: Unknown distribution option: 'namespace_packages'
  warnings.warn(msg)

When I try to run simpletest.py in the folder examples with
/usr/local/bin/python3 I get this error:
Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 285.
Abort trap: 6

What am I doing wrong?

Thanks,
Tommy