Issue: Jupyter Notebook

60 views
Skip to first unread message

Naresh Bhat

unread,
Aug 22, 2019, 7:05:06 AM8/22/19
to Project Jupyter
Hi,

I am trying to run the Jyputer Notebook on my machine using Python3 and facing the below error,  Can somebody suggest any hints what could be wrong with the setup ? We have put some debug prints as below

Thanks and Regards
-Naresh


Logs:
===

  %drill connect 
ganesh - in - interactiveshell.py:2314
ganesh - in - drill_base - 01
Connecting as user linaro

ganesh - in - drill_base - 03
Connecting to Drill URL: http://<IP>:8047

Please enter the password you wish to connect with:
Drill Connect Password: ········
ganesh - in - drill_base - 04 before self.authDrill()
ganesh - in authDrill 01
ganesh - inside else of self.drill_opts
ganesh - before r=self.mysession.post
ganesh - after r=self.mysession.post
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-4-3352f08ce66c> in <module>
----> 1 get_ipython().run_line_magic('drill', 'connect')

~/jupyter/jupyter-env/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2313             with self.builtin_trap:
   2314                 print("ganesh - in - interactiveshell.py:2314")
-> 2315                 result = fn(*args, **kwargs)
   2316                 print("ganesh - out - interactiveshell.py:2314")
   2317             return result

</home/linaro/jupyter/jupyter-env/lib/python3.5/site-packages/decorator.py:decorator-gen-126> in drill(self, line, cell)

~/jupyter/jupyter-env/lib/python3.5/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):

~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in drill(self, line, cell)
    363                 self.connectDrill(True)
    364             elif line.lower() == "connect":
--> 365                 self.connectDrill(False)
    366             elif line.lower() .find('set ') == 0:
    367                 self.setvar(line)

~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in connectDrill(self, prompt)
    217             result = -1
    218             print("ganesh - in - drill_base - 04 before self.authDrill()")
--> 219             result = self.authDrill()
    220             print("ganesh - in - drill_base - 05 after self.authDrill()")
    221             if result == 0:

~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in authDrill(self)
    310             result = 0
    311         else:
--> 312             raise Exception("Status Code: %s - Error" % r.status_code)
    313         return result
    314 

Exception: Status Code: 500 - Error


Roland Weber

unread,
Aug 23, 2019, 2:04:38 AM8/23/19
to Project Jupyter
Is this an error that you get when you try to run Jupyter? Or is Jupyter running fine, and you get the error when you try to use Apache Drill from within a Jupyter session? In the latter case, the subject you have chosen would be quite misleading.

The jupyter_drill readme has a few lines of code that seem to be required before using the drill magics:

Naresh Bhat

unread,
Aug 23, 2019, 2:26:29 AM8/23/19
to jup...@googlegroups.com
Hi Ronald,

My apologies,  sorry for the misleading information.

On Fri, 23 Aug 2019 at 11:34, Roland Weber <rolw...@de.ibm.com> wrote:
Is this an error that you get when you try to run Jupyter? Or is Jupyter running fine, and you get the error when you try to use Apache Drill from within a Jupyter session? In the latter case, the subject you have chosen would be quite misleading.

Later yesterday, I found the Jupyter is running fine.  The error could be because of Apache Drill configurations.  Actually it is trying to connect with Drill and getting failed.
So I am thinking this might be a not a right place to ask the question.  Probably I should ask the question on Apache Drill community ?
 

The jupyter_drill readme has a few lines of code that seem to be required before using the drill magics:

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/595897ef-f684-4bbe-a791-d4e39a6ca581%40googlegroups.com.

Roland Weber

unread,
Aug 26, 2019, 2:01:51 AM8/26/19
to Project Jupyter
Yes, sounds more like an Apache Drill problem. In addition to the Apache Drill community, you can also try here or on discourse.jupyter.org while mentioning "Apache Drill" in the subject. It#s all about getting the right people's attention :-)

cheers,
  Roland

Reply all
Reply to author
Forward
0 new messages