RPi 3b+ Name GPIO is not defined

523 views
Skip to first unread message

Sylvain Leroux

unread,
Aug 16, 2018, 10:36:37 PM8/16/18
to WebIOPi
Hello,
I've installed the last raspbian on a raspberry pi 3 b+
I've installed webiopi following the tutorial on the official website.
Now when I try to access to the interface via a browser: 127.0.0.1:8000, I have to enter username/password. I do it, it works but my interface doesn't want to load: ERR_CONTENT_LENGTH_MISMATCH.
In the terminal I have this error:
"NameError: name 'GPIO' is not defined"
Do you have any idea?
Thanks

hal8000b

unread,
Aug 20, 2018, 2:22:22 PM8/20/18
to WebIOPi
There are possibly two or more errors here.
First make sure you have installed the patch for webiopi as you are using Pi3

Also make sure you have installed  python GPIO. You need to type:

sudo apt-get update
sudo apt-get install python3 python3-pip
sudo pip3 install RPi.GPIO


Next 127.0.0.1  is your localhost address, not the address of your Pi3.
127.0.0.1 will only work from the Raspberrry Pi itself.

You need to look at your router and find the raspberry pi address, then from
another commputer or device on your home network , start the browser on that
device and point it to your raspberry pi.

It may be something like


but you need to find the correct IP address
Reply all
Reply to author
Forward
0 new messages