Graphlab SFrame.show () problem

after importing data, it always reports an error after running show. I can"t find a solution. Have you ever encountered it before?

AttributeErrorTraceback (most recent call last)
<ipython-input-14-f3e970a4cdcd> in <module>()
----> 1 graphlab.SFrame("datas/home_data.gl/").show()

C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\data_structures\sframe.pyc in show(self, columns, view, x, y)
   4950             __LOGGER__.warn("Column selection for SFrame.show is deprecated. To show only certain columns, use the sf[["column1", "column2"]] syntax or construct a new SFrame with the desired columns.")
   4951         from ..visualization.show import show
-> 4952         show(self, view=view, x=x, y=y)
   4953 
   4954     def pack_columns(self, columns=None, column_prefix=None, dtype=list,

C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\multipledispatch\dispatcher.pyc in __call__(self, *args, **kwargs)
    208             self._cache[types] = func
    209         try:
--> 210             return func(*args, **kwargs)
    211 
    212         except MDNotImplementedError:

C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\canvas\glc_display_dispatch.pyc in show(obj, **kwargs)
      8     import graphlab.canvas.views.sframe
      9     graphlab.canvas.inspect.find_vars(obj)
---> 10     return graphlab.canvas.show(graphlab.canvas.views.sframe.SFrameView(obj, params=kwargs))
     11 
     12 

C:\ProgramData\Anaconda3\envs\python2.7\lib\site-packages\graphlab\canvas\utils.pyc in show(variable)
    127     """
    128     if variable is not None:
--> 129         get_target().state.set_selected_variable(variable)
    130         variable.validate_js_component_name(variable.get_js_component())
    131     return get_target().show()

AttributeError: "NoneType" object has no attribute "state"
Mar.03,2021

solve it by yourself. Previously, you created a new virtual environment python2.7, under anaconda3, so you will report an error
download anconda2 and install the graphlab environment. I hope it will be helpful to those who need it.

Menu