Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not callable #14043

Closed
0-wiz-0 opened this issue Aug 19, 2016 · 3 comments
Closed

TypeError: 'NoneType' object is not callable #14043

0-wiz-0 opened this issue Aug 19, 2016 · 3 comments
Labels
Testing pandas testing functions or related to the test suite

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Aug 19, 2016

When running the 0.18.1 self tests with python-3.5.2 on NetBSD, I see a couple of test failures. One is tracked in #12337, here's the log for the others:


======================================================================
ERROR: test_secondary_kde (pandas.tseries.tests.test_plotting.TestTSPlot)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tseries/tests/test_plotting.py", line 611, in test_secondary_kde
    ax = ser.plot(secondary_y=True, kind='density')
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_df_legend_labels (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2675, in test_df_legend_labels
    ax = df.plot(kind=kind, legend=True)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_colors (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3020, in test_kde_colors
    ax = df.plot.kde(color=custom_colors)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3855, in kde
    return self(kind='kde', **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_colors_and_styles_subplots (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3043, in test_kde_colors_and_styles_subplots
    axes = df.plot(kind='kde', subplots=True)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_df (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2491, in test_kde_df
    ax = _check_plot_works(df.plot, kind='kde')
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_missing_vals (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2512, in test_kde_missing_vals
    _check_plot_works(df.plot, kind='kde')
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kind_both_ways (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3186, in test_kind_both_ways
    df.plot(kind=kind)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_memory_leak (pandas.tests.test_graphics.TestDataFramePlots)
Check that every plot type gets properly collected.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3647, in test_memory_leak
    results[kind] = weakref.proxy(df.plot(kind=kind, **args))
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_no_legend (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 2765, in test_no_legend
    ax = df.plot(kind=kind, legend=False)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_plot (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1322, in test_plot
    df.plot.line(blarg=True)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3760, in line
    return self(kind='line', x=x, y=y, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3740, in __call__
    sort_columns=sort_columns, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2614, in plot_frame
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1707, in _make_plot
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1722, in _plot
    lines = MPLPlot._plot(ax, x, y_values, style=style, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1342, in _plot
    return ax.plot(*args, **kwds)
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/__init__.py", line 1819, in inner
    return func(ax, *args, **kwargs)
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 1382, in plot
    for line in self._get_lines(*args, **kwargs):
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 381, in _grab_next_args
    for seg in self._plot_args(remaining, kwargs):
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 369, in _plot_args
    seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs)
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 276, in _makeline
    seg = mlines.Line2D(x, y, **kw)
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/lines.py", line 380, in __init__
    self.update(kwargs)
  File "/usr/pkg/lib/python3.5/site-packages/matplotlib/artist.py", line 859, in update
    raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property blarg

======================================================================
ERROR: test_hist_kde (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1023, in test_hist_kde
    _check_plot_works(self.ts.plot.kde)
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde
    return self(kind='kde', **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_hist_kde_color (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1078, in test_hist_kde_color
    ax = self.ts.plot.kde(logy=True, color='r')
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde
    return self(kind='kde', **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_kwargs (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1038, in test_kde_kwargs
    ind=linspace(-100, 100, 20))
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde
    return self(kind='kde', **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kde_missing_vals (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1052, in test_kde_missing_vals
    _check_plot_works(s.plot.kde)
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3671, in kde
    return self(kind='kde', **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_kind_both_ways (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1099, in test_kind_both_ways
    s.plot(kind=kind)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_plot (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 557, in test_plot
    _check_plot_works(self.series[:5].plot, kind=kind)
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_series_grid_settings (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1193, in test_series_grid_settings
    plotting._common_kinds)
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 480, in _check_grid_settings
    obj.plot(kind=kind, **kws)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_valid_object_plot (pandas.tests.test_graphics.TestSeriesPlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 1117, in test_valid_object_plot
    _check_plot_works(s.plot, kind=kind)
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 3566, in __call__
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2645, in plot_series
    **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2441, in _plot
    plot_obj.generate()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 1028, in generate
    self._make_plot()
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2073, in _make_plot
    stacking_id=stacking_id, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 2127, in _plot
    gkde = gaussian_kde(y, bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_scatter_plot_legacy (pandas.tests.test_graphics_others.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../pandas-0.18.1/pandas/tests/test_graphics_others.py", line 408, in test_scatter_plot_legacy
    _check_plot_works(scat, diagonal='kde')
  File ".../pandas-0.18.1/pandas/tests/test_graphics.py", line 3982, in _check_plot_works
    ret = f(**kwargs)
  File ".../pandas-0.18.1/pandas/tests/test_graphics_others.py", line 402, in scat
    return plotting.scatter_matrix(df, **kwds)
  File ".../pandas-0.18.1/pandas/tools/plotting.py", line 370, in scatter_matrix
    gkde = gaussian_kde(y)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 171, in __init__
    self.set_bandwidth(bw_method=bw_method)
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 498, in set_bandwidth
    self._compute_covariance()
  File "/usr/pkg/lib/python3.5/site-packages/scipy/stats/kde.py", line 513, in _compute_covariance
    self._norm_factor = sqrt(linalg.det(2*pi*self.covariance)) * self.n
  File "/usr/pkg/lib/python3.5/site-packages/scipy/linalg/basic.py", line 747, in det
    a_det, info = fdet(a1, overwrite_a=overwrite_a)
TypeError: 'NoneType' object is not callable

----------------------------------------------------------------------
Ran 10272 tests in 1498.940s

FAILED (errors=20, skipped=572)

Any ideas what could cause this? Missing dependency, missing support in libc, something else?

@jorisvandenbossche
Copy link
Member

All errors (except one, the test_plot) seem to come from scipy. Which version of scipy have you installed? Do the tests of scipy pass?

@0-wiz-0
Copy link
Author

0-wiz-0 commented Aug 19, 2016

I'm using scipy-0.17.0. I'll run its tests next.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Aug 19, 2016
@mroeschke
Copy link
Member

Our setup has python_requires=">=3.5.3" now. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

4 participants