Import error: No module named...

663 views
Skip to first unread message

ion sola

unread,
Aug 9, 2017, 1:41:25 PM8/9/17
to Project Jupyter
I am new in python, and I am trying to run a script in Jupyter notebook that calls to some .py files but when I try to import them an error appears: "No module named..." Everything worked fine in the beginning but I added Jupyter Drive to export some images to Google Drive and it is not working anymore:

(I added this in the command prompt)

pip install --upgrade https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip --user

git clone git://github.com/jupyter/jupyter-drive.git

pip install -e jupyter-drive

python -m jupyterdrive

ipython profile create nbserver

ipython notebook --profile=nbserver

I have uploaded the main file in ipynb extension and all the py files in the same folder but some problem appears again and again. Any idea?
error.JPG

Thomas Kluyver

unread,
Aug 10, 2017, 5:29:41 AM8/10/17
to Project Jupyter
Notebooks accessed from Google Drive probably aren't in a real folder on your filesystem, so I guess the kernel is running somewhere else. To see where the kernel is running, do:

import os
os.getcwd()

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/a8e4e923-3c95-4c98-8f79-3aa6091cc575%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages