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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

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

The Fruity Computer