jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

error in jupyter notebook programming #321

Open shivambhardwaj120 opened 6 years ago

shivambhardwaj120 commented 6 years ago

i run a program of detection of diabetic retinopathy on jupyter notebook i got following error

IOErrorTraceback (most recent call last)
<ipython-input-6-20f5453ca716> in <module>()
      3 t_no = 0
      4 for img_no in range(20):
----> 5     imD = Image.open(Datapath + str(img_no+21) + '_training.tif')
      6     imD = np.array(imD)
      7 

/home/user/anaconda2/lib/python2.7/site-packages/PIL/Image.pyc in open(fp, mode)
   2475 
   2476     if filename:
-> 2477         fp = builtins.open(filename, "rb")
   2478         exclusive_fp = True
   2479 

IOError: [Errno 2] No such file or directory: 'DRIVE/training/images/home/user/downloads21_training.tif'

you are requested to help me. thank you.and i am new to this.

takluyver commented 6 years ago

The is trying to read a file that doesn't exist at that location. It looks like there might be a variable called Datapath in the notebook that you need to update.