Skip to content

DAX NOAA example notebook fails execution #112

@ptitzler

Description

@ptitzler

https://github.com/elyra-ai/examples/blob/main/pipelines/dax_noaa_weather_data/Part%202%20-%20Data%20Analysis.ipynb
fails to execute, likely due to changes in an upstream dependency:

D 16:25:40.421]     template_paths: /usr/local/share/jupyter/nbconvert/templates/lab:/usr/local/share/jupyter/nbconvert/templates/base:/root/.local/share/jupyter:/root/.local/share/jupyter/nbconvert/templates:/root/.local/share/jupyter/nbconvert/templates/compatibility:/usr/local/share/jupyter:/usr/local/share/jupyter/nbconvert/templates:/usr/local/share/jupyter/nbconvert/templates/compatibility:/usr/share/jupyter:/usr/share/jupyter/nbconvert/templates:/usr/share/jupyter/nbconvert/templates/compatibility:/usr/local/share/jupyter/nbconvert/templates
[I 16:25:40.722] 'analyze_NOAA_weather_data':'Part 2 - Data Analysis' - Part 2 - Data Analysis-output.ipynb converted to Part 2 - Data Analysis.html (0.857 secs)
[D 16:25:40.767] 
http://cloning1.fyre.ibm.com:30887/
 "PUT /ptitzler-test/analyze_NOAA_weather_data-1003092202/Part%202%20-%20Data%20Analysis.ipynb HTTP/1.1" 200 0
[I 16:25:40.768] 'analyze_NOAA_weather_data':'Part 2 - Data Analysis' - uploaded Part 2 - Data Analysis-output.ipynb to bucket: ptitzler-test object: analyze_NOAA_weather_data-1003092202/Part 2 - Data Analysis.ipynb (0.045 secs)
[D 16:25:40.818] 
http://cloning1.fyre.ibm.com:30887/
 "PUT /ptitzler-test/analyze_NOAA_weather_data-1003092202/Part%202%20-%20Data%20Analysis.html HTTP/1.1" 200 0
[I 16:25:40.818] 'analyze_NOAA_weather_data':'Part 2 - Data Analysis' - uploaded Part 2 - Data Analysis.html to bucket: ptitzler-test object: analyze_NOAA_weather_data-1003092202/Part 2 - Data Analysis.html (0.051 secs)
Traceback (most recent call last):
  File "bootstrapper.py", line 697, in <module>
    main()
  File "bootstrapper.py", line 687, in main
    file_op.execute()
  File "bootstrapper.py", line 367, in execute
    raise ex
  File "bootstrapper.py", line 352, in execute
    papermill.execute_notebook(notebook, notebook_output, kernel_name=kernel_name)
  File "/usr/local/lib/python3.8/site-packages/papermill/execute.py", line 122, in execute_notebook
    raise_for_execution_errors(nb, output_path)
  File "/usr/local/lib/python3.8/site-packages/papermill/execute.py", line 234, in raise_for_execution_errors
    raise error
papermill.exceptions.PapermillExecutionError: 
---------------------------------------------------------------------------
Exception encountered at "In [8]":
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [8], in <cell line: 12>()
     10 # Zoom in on a year and plot temperature data converted to a daily frequency
     11 plt.subplot(1, 2, 2)
---> 12 data['2017'][TEMP_COL].asfreq('D').plot()
     13 plt.title('Daily Temperature in 2017')
     14 plt.ylabel('Temperature (F)')
File /usr/local/lib/python3.8/site-packages/pandas/plotting/_core.py:949, in PlotAccessor.__call__(self, *args, **kwargs)
    946             label_name = label_kw or data.columns
    947             data.columns = label_name
--> 949 return plot_backend.plot(data, kind=kind, **kwargs)
File /usr/local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/__init__.py:61, in plot(data, kind, **kwargs)
     59         kwargs["ax"] = getattr(ax, "left_ax", ax)
     60 plot_obj = PLOT_CLASSES[kind](data, **kwargs)
---> 61 plot_obj.generate()
     62 plot_obj.draw()
     63 return plot_obj.result
File /usr/local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py:274, in MPLPlot.generate(self)
    272 self._add_table()
    273 self._make_legend()
--> 274 self._adorn_subplots()
    276 for ax in self.axes:
    277     self._post_plot_logic_common(ax, self.data)
File /usr/local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py:468, in MPLPlot._adorn_subplots(self)
    466     all_axes = self._get_subplots()
    467     nrows, ncols = self._get_axes_layout()
--> 468     _handle_shared_axes(
    469         axarr=all_axes,
    470         nplots=len(all_axes),
    471         naxes=nrows * ncols,
    472         nrows=nrows,
    473         ncols=ncols,
    474         sharex=self.sharex,
    475         sharey=self.sharey,
    476     )
    478 for ax in self.axes:
    479     if self.yticks is not None:
File /usr/local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/tools.py:331, in _handle_shared_axes(axarr, nplots, naxes, nrows, ncols, sharex, sharey)
    326 if ncols > 1:
    327     for ax in axarr:
    328         # only the first column should get y labels -> set all other to
    329         # off as we only have labels in the first column and we always
    330         # have a subplot there, we can skip the layout test
--> 331         if ax.is_first_col():
    332             continue
    333         if sharey or len(ax.get_shared_y_axes().get_siblings(ax)) > 1:
AttributeError: 'AxesSubplot' object has no attribute 'is_first_col'

This impacts many of the introductory Elyra pipelines: #111

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions