0

The version of Nebula is 3.4.1, deployed in a distributed manner and installed via RPM. The version details are as follows: Python 3.8, Nebula 3.4.1, and ipython-ngql 0.5.0.

I run it as follows, but the error is reported.

%load_ext ngql
%ngql --address  --port 9669 --user root --password


The ngql extension is already loaded. To reload it, use:
  %reload_ext ngql
Connection Pool Created
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-ae675d934b52> in <module>
      1 get_ipython().run_line_magic('load_ext', 'ngql')
----> 2 get_ipython().run_line_magic('ngql', '--address  --port 9669 --user root --password )
      3 

~/anaconda3/lib/python3.8/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2342                 kwargs['local_ns'] = self.get_local_scope(stack_depth)
   2343             with self.builtin_trap:
-> 2344                 result = fn(*args, **kwargs)
   2345             return result
   2346 

~/anaconda3/lib/python3.8/site-packages/decorator.py in fun(*args, **kw)
    230             if not kwsyntax:
    231                 args, kw = fix(args, kw, sig)
--> 232             return caller(func, *(extras + args), **kw)
    233     fun.__name__ = func.__name__
    234     fun.__doc__ = func.__doc__

~/anaconda3/lib/python3.8/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

~/anaconda3/lib/python3.8/site-packages/ngql/magic.py in ngql(self, line, cell, local_ns)
     85             print("Connection Pool Created")
     86             if not cell:
---> 87                 return self._stylized(self._show_spaces())
     88             else:
     89                 # When connection info in first line and with nGQL lines followed

~/anaconda3/lib/python3.8/site-packages/ngql/magic.py in _stylized(self, result)
    202                 col_name = columns[col_num]
    203                 col_list = result.column_values(col_name)
--> 204                 d[col_name] = [x.cast() for x in col_list]
    205             return pd.DataFrame(d)
    206         elif self.ngql_result_style == STYLE_RAW:

~/anaconda3/lib/python3.8/site-packages/ngql/magic.py in <listcomp>(.0)
    202                 col_name = columns[col_num]
    203                 col_list = result.column_values(col_name)
--> 204                 d[col_name] = [x.cast() for x in col_list]
    205             return pd.DataFrame(d)
    206         elif self.ngql_result_style == STYLE_RAW:

AttributeError: 'ValueWrapper' object has no attribute 'cast'

Confused with the error, anyone here who can help

Lisa Liu
  • 139
  • 1
  • 6

0 Answers0