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

Cannot start with no access to DNS #26

Closed
GoogleCodeExporter opened this issue Aug 2, 2015 · 1 comment
Closed

Cannot start with no access to DNS #26

GoogleCodeExporter opened this issue Aug 2, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Disconnect from access to DNS
2. Start webiopi with: "sudo python -m webiopi"

What is the expected output? What do you see instead?
The expected response is that webiopi starts normally with the hostname set to 
'localhost'

Actual response:
pi@raspberrypi ~/webiopi/WebIOPi-0.5.3 $ sudo python -m webiopi
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.5.3-py2.7-linux-armv6l.egg/webiopi.py", line 489, in <module>
    main(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.5.3-py2.7-linux-armv6l.egg/webiopi.py", line 481, in main
    server = Server(port=port, passwdfile=passwdfile)
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.5.3-py2.7-linux-armv6l.egg/webiopi.py", line 106, in __init__
    self.host = getLocalIP()
  File "/usr/local/lib/python2.7/dist-packages/WebIOPi-0.5.3-py2.7-linux-armv6l.egg/webiopi.py", line 98, in getLocalIP
    except (socket.error, e):
NameError: global name 'e' is not defined

What version of the product are you using? On what operating system?
0.5.3 on Raspbian

Please provide any additional information below.
The fix is the change line 98 of python/webiopi.py to:

  except socket.error as e:

and reinstall. I found I had to manually remove the directory python/build 
before the setup would reinstall correctly.

Original issue reported on code.google.com by josephh...@gmail.com on 10 Feb 2013 at 12:59

@GoogleCodeExporter
Copy link
Author

Original comment by tro...@trouch.com on 10 Feb 2013 at 3:56

  • Changed state: Duplicate

This issue was closed.
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