Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: global name 'GPIO' is not defined #140

Open
GoogleCodeExporter opened this issue May 31, 2015 · 19 comments
Open

NameError: global name 'GPIO' is not defined #140

GoogleCodeExporter opened this issue May 31, 2015 · 19 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I have downloaded it at 
:https://code.google.com/p/webiopi/wiki/DOWNLOADS?tm=2
2. I type that in a terminal :
tar xvzf WebIOPi-0.7.1.tar.gz
cd WebIOPi-0.7.1
sudo ./setup.sh
3. I have launched it : 
sudo python -m webiopi 8000
4. I connected at :
http://....:8000/app/gpio-list

WebIOPi version used?
=>0.7.1

Python version used?
=>3.2

Distro used? (WebIOPi has only been tested on Raspbian Wheezy)
=> Raspbian

Raspberry Pi board revision? (1 or 2)
=>I've got the Raspberry Pi 2

For Javascript side bugs, Browser?
=> No bug with JS

Please provide any additional information below.

I have got this error :


Exception happened during processing of request from ('192.168.0.91', 56443)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.7.1-py2.7-linux-armv7l.egg/webiopi/protocols/http.py", line 267, in do_GET
    self.processRequest()
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.7.1-py2.7-linux-armv7l.egg/webiopi/protocols/http.py", line 264, in processRequest
    raise e
NameError: global name 'GPIO' is not defined
----------------------------------------


Original issue reported on code.google.com by [email protected] on 23 Feb 2015 at 5:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant