Jump to content

Welcome, Guest!

Recommended Posts

We are doing a project for our intro to programming class. We are making a temperature sensor that will send our data to sen.se.  When we run our program on our raspberry pi this comes up:

 

Traceback (most recent call last) :

           File "/home/pi/Desktop/1.py", line 14, in <module>

                    device_folder = glob.glob(base_dir + '28*')[0]

IndexError: list index out of range

 

What does this mean? and how can we fix it? Thank you :)

temperature code.txt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer

×
×
  • Create New...