Traceback (most recent call last):

 "/Users/dre/gam/gam.py", line 33, in <module>
import httplib2

 "/Users/dre/gam/httplib2/__init__.py", line 34, in <module>
import gzip

 "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 10, in <module>
import io

 "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/io.py", line 51, in <module>
import _ioImportError: dlopen(/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyCodecInfo_GetIncrementalDecoder
Traceback (most recent call last):


 "polyfit.py", line 6, in <module>

out = arr.polyfit(dim='x', deg=1)


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/xarray/core/dataarray.py", line 3455, in polyfit

return self._to_temp_dataset().polyfit(


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/xarray/core/dataset.py", line 5962, in polyfit

coeffs, residuals = duck_array_ops.least_squares(


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/xarray/core/duck_array_ops.py", line 625, in least_squares

return nputils.least_squares(lhs, rhs, rcond=rcond, skipna=skipna)


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/xarray/core/nputils.py", line 239, in least_squares

out[:, nan_cols] = np.apply_along_axis(


 "<__array_function__ internals>", line 5, in apply_along_axis


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/numpy/lib/shape_base.py", line 379, in apply_along_axis

res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs))


 "/home/stephan/venv/variogram/lib/python3.8/site-packages/xarray/core/nputils.py", line 227, in _nanpolyfit_1d

out[:-1], out[-1], _, _ = np.linalg.lstsq(x[~mask, :], arr[~mask], rcond=rcond)
ValueError: setting an array element with a sequence.
