You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/lib/python3.4/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2077 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2078 with self.builtin_trap:
-> 2079 result = fn(*args,**kwargs)
2080 return result
2081
in execute(self, line, cell, local_ns)
/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
in execute(self, line, cell, local_ns)
/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
I have followed these steps:
git clone https://github.com/catherinedevlin/ipython-sql
cd ipython-sql
python setup.py install
%config SqlMagic.autocommit=False
%sql impala://impala-host-0:21050/testdb
I am getting following error. Am I missing out on some configurations?
AttributeErrorTraceback (most recent call last)
in ()
----> 1 get_ipython().magic('sql impala://gam-cdh-ubuntu-gobblin-fivedec-hadoop-dn-0:21050/')
/usr/lib/python3.4/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2156 magic_name, _, magic_arg_s = arg_s.partition(' ')
2157 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2158 return self.run_line_magic(magic_name, magic_arg_s)
2159
2160 #-------------------------------------------------------------------------
/usr/lib/python3.4/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2077 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2078 with self.builtin_trap:
-> 2079 result = fn(*args,**kwargs)
2080 return result
2081
in execute(self, line, cell, local_ns)
/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
in execute(self, line, cell, local_ns)
/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
/usr/lib/python3.4/site-packages/ipython_sql-0.3.9-py3.4.egg/sql/magic.py in execute(self, line, cell, local_ns)
80 user_ns.update(local_ns)
81
---> 82 parsed = sql.parse.parse('%s\n%s' % (line, cell), self)
83 flags = parsed['flags']
84 try:
AttributeError: 'module' object has no attribute 'parse'
The text was updated successfully, but these errors were encountered: