Closed konabuta closed 5 years ago
can you please send me the full out cell with the error stack. Michael
Michael
From: konabuta notifications@github.com Sent: Saturday, June 8, 2019 11:10:08 AM To: microsoft/jupyter-Kqlmagic Cc: Subscribed Subject: [microsoft/jupyter-Kqlmagic] Notebook failed with error (AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget') (#14)
Running "%kql StormEvents | summarize count() by State | sort by count_ | limit 10 | render piechart title='my apple pie' " fails with error. It seems plotly version related issue. Any workaround ?
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in repr_html(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
[{'State': 'TEXAS', 'count': 4701}, {'State': 'KANSAS', 'count': 3166}, {'State': 'IOWA', 'count': 2337}, {'State': 'ILLINOIS', 'count': 2022}, {'State': 'MISSOURI', 'count': 2016}, {'State': 'GEORGIA', 'count': 1983}, {'State': 'MINNESOTA', 'count': 1881}, {'State': 'WISCONSIN', 'count': 1850}, {'State': 'NEBRASKA', 'count': 1766}, {'State': 'NEW YORK', 'count': 1750}]
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjupyter-Kqlmagic%2Fissues%2F14%3Femail_source%3Dnotifications%26email_token%3DACGKLXS2MJ34IMBAYRVDTPTPZNSOBA5CNFSM4HWF2CD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYL7E5A&data=02%7C01%7Cmichabin%40microsoft.com%7C3b51fb358d6740964d2908d6ebe8b964%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636955782107340375&sdata=IKo0N4XtxjHn5c7OoXb9P5UNhbuM57UFZlSnSSNIt%2FU%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGKLXSQNT6G47P76UA5YU3PZNSOBANCNFSM4HWF2CDQ&data=02%7C01%7Cmichabin%40microsoft.com%7C3b51fb358d6740964d2908d6ebe8b964%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636955782107350366&sdata=dx1E4xxIlXueo82g01HV9yQvu73Ns8QY2oQIKe2LDR8%3D&reserved=0.
Pls send me the following information :
Thanks, Michael
Michael
From: Michael Binshtock Sent: Saturday, June 8, 2019 1:20:18 PM To: microsoft/jupyter-Kqlmagic; microsoft/jupyter-Kqlmagic Cc: Subscribed Subject: Re: [microsoft/jupyter-Kqlmagic] Notebook failed with error (AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget') (#14)
can you please send me the full out cell with the error stack. Michael
Michael
From: konabuta notifications@github.com Sent: Saturday, June 8, 2019 11:10:08 AM To: microsoft/jupyter-Kqlmagic Cc: Subscribed Subject: [microsoft/jupyter-Kqlmagic] Notebook failed with error (AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget') (#14)
Running "%kql StormEvents | summarize count() by State | sort by count_ | limit 10 | render piechart title='my apple pie' " fails with error. It seems plotly version related issue. Any workaround ?
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in repr_html(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
[{'State': 'TEXAS', 'count': 4701}, {'State': 'KANSAS', 'count': 3166}, {'State': 'IOWA', 'count': 2337}, {'State': 'ILLINOIS', 'count': 2022}, {'State': 'MISSOURI', 'count': 2016}, {'State': 'GEORGIA', 'count': 1983}, {'State': 'MINNESOTA', 'count': 1881}, {'State': 'WISCONSIN', 'count': 1850}, {'State': 'NEBRASKA', 'count': 1766}, {'State': 'NEW YORK', 'count': 1750}]
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjupyter-Kqlmagic%2Fissues%2F14%3Femail_source%3Dnotifications%26email_token%3DACGKLXS2MJ34IMBAYRVDTPTPZNSOBA5CNFSM4HWF2CD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYL7E5A&data=02%7C01%7Cmichabin%40microsoft.com%7C3b51fb358d6740964d2908d6ebe8b964%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636955782107340375&sdata=IKo0N4XtxjHn5c7OoXb9P5UNhbuM57UFZlSnSSNIt%2FU%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGKLXSQNT6G47P76UA5YU3PZNSOBANCNFSM4HWF2CDQ&data=02%7C01%7Cmichabin%40microsoft.com%7C3b51fb358d6740964d2908d6ebe8b964%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636955782107350366&sdata=dx1E4xxIlXueo82g01HV9yQvu73Ns8QY2oQIKe2LDR8%3D&reserved=0.
I attached output of pip freeze. pipfreeze.txt
Full stack is as follows and see the jupyter notebook file.
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _reprhtml(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
Hi, Please install ipywidgets, and run again, and let me know if it solved your problem. Michael
From: konabuta notifications@github.com Sent: Saturday, June 8, 2019 5:17 PM To: microsoft/jupyter-Kqlmagic jupyter-Kqlmagic@noreply.github.com Cc: Michael Binshtock michabin@microsoft.com; Comment comment@noreply.github.com Subject: Re: [microsoft/jupyter-Kqlmagic] Notebook failed with error (AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget') (#14)
Full stack is as follows and see the jupyter notebook file.
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in repr_html(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjupyter-Kqlmagic%2Fissues%2F14%3Femail_source%3Dnotifications%26email_token%3DACGKLXXPDQ2SLNAE4ZARSGDPZO5OZA5CNFSM4HWF2CD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHVOZA%23issuecomment-500127588&data=02%7C01%7Cmichabin%40microsoft.com%7C3e64365aefb9412b7ff308d6ec1c02c1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636956002400165151&sdata=WwJ85weyCBykZ8gHp7Q6GDCDIQnnflTh7Cmh9bq4cGM%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGKLXW2AMFWMHCNO5XP7NDPZO5OZANCNFSM4HWF2CDQ&data=02%7C01%7Cmichabin%40microsoft.com%7C3e64365aefb9412b7ff308d6ec1c02c1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636956002400165151&sdata=0b4Fv6ftBQlzFOtSnS3a594gnDwIguJLsT09I5LmKa0%3D&reserved=0.
Fixed in version 0.1.99 Pls try and let me know. Thanks, Michael
From: konabuta notifications@github.com Sent: Saturday, June 8, 2019 5:17 PM To: microsoft/jupyter-Kqlmagic jupyter-Kqlmagic@noreply.github.com Cc: Michael Binshtock michabin@microsoft.com; Comment comment@noreply.github.com Subject: Re: [microsoft/jupyter-Kqlmagic] Notebook failed with error (AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget') (#14)
Full stack is as follows and see the jupyter notebook file.
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in repr_html(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjupyter-Kqlmagic%2Fissues%2F14%3Femail_source%3Dnotifications%26email_token%3DACGKLXXPDQ2SLNAE4ZARSGDPZO5OZA5CNFSM4HWF2CD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHVOZA%23issuecomment-500127588&data=02%7C01%7Cmichabin%40microsoft.com%7C3e64365aefb9412b7ff308d6ec1c02c1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636956002400165151&sdata=WwJ85weyCBykZ8gHp7Q6GDCDIQnnflTh7Cmh9bq4cGM%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGKLXW2AMFWMHCNO5XP7NDPZO5OZANCNFSM4HWF2CDQ&data=02%7C01%7Cmichabin%40microsoft.com%7C3e64365aefb9412b7ff308d6ec1c02c1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636956002400165151&sdata=0b4Fv6ftBQlzFOtSnS3a594gnDwIguJLsT09I5LmKa0%3D&reserved=0.
Solved ! Thank you for your help.
i always have the same problem. i install conda pip and i uninstall different versions of plotly i don't know what's exactly the problem: here are my errors
AttributeError: module 'plotly.files' has no attribute 'FILE_CONTENT'
ModuleNotFoundError: No module named 'plotly.plotly'
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\33788\Anaconda3\lib\site-packages\plotly\package_data\templates\plotly.json'
please can you help me i based my project analysis on iplot it works so long till i changed the version to make the map the other plots with old version don't work !!!!!!
Running "%kql StormEvents | summarize count() by State | sort by count_ | limit 10 | render piechart title='my apple pie'" fails with error. It seems plotly version related issue. Any workaround ?
Kqlmagic Quick Start
AttributeError Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in call(self, obj) 343 method = get_real_method(obj, self.print_method) 344 if method is not None: --> 345 return method() 346 return None 347 else:
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _reprhtml(self) 340 341 if self.is_chart(): --> 342 self.show_chart(self.options) 343 else: 344 self.show_table(self.options)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in show_chart(self, kwargs) 460 if window_mode and not options.get("button_text"): 461 options["button_text"] = "popup " + self.visualization + ((" - " + self.title) if self.title else "") + " " --> 462 c = self._getChartHtml(window_mode) 463 if c.get("body") or c.get("head"): 464 html = Display.toHtml(c)
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _getChartHtml(self, window_mode) 541 # First column is color-axis, second column is numeric 542 if self.visualization == VisualizationValues.PIE_CHART: --> 543 figure_or_data = self._render_piechart_plotly(self.visualization_properties, " ") 544 # chart = self._render_pie(self.visualization_properties, " ") 545
~/miniconda3/envs/kqlmagic/lib/python3.6/site-packages/Kqlmagic/results.py in _render_piechart_plotly(self, properties, key_word_sep, **kwargs) 1149 ], 1150 ) -> 1151 fig = go.FigureWidget(data=data, layout=layout) 1152 return fig 1153
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'
[{'State': 'TEXAS', 'count': 4701}, {'State': 'KANSAS', 'count': 3166}, {'State': 'IOWA', 'count': 2337}, {'State': 'ILLINOIS', 'count': 2022}, {'State': 'MISSOURI', 'count': 2016}, {'State': 'GEORGIA', 'count': 1983}, {'State': 'MINNESOTA', 'count': 1881}, {'State': 'WISCONSIN', 'count': 1850}, {'State': 'NEBRASKA', 'count': 1766}, {'State': 'NEW YORK', 'count': 1750}]