Giter Site home page Giter Site logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
check your iptables and specific configuration, this is not a webiopi issue

Original comment by [email protected] on 16 Feb 2013 at 1:34

  • Changed state: WontFix

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
I thinks It's WebIOPi Issue. It may specifics to work with eth0. But what I 
want is let WebIOPi work with wlan0. 

After I try to start it manual with "python3 -m webiopi" command. It print 
traceback bellows. 

================================================

$ python3 -m webiopi

Traceback (most recent call last):
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.3-py3.2-linux-armv6l.egg/webiopi.py", line 94, in getLocalIP
    s.connect(('8.8.8.8', 53))
socket.error: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.2/runpy.py", line 161, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python3.2/runpy.py", line 74, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.3-py3.2-linux-armv6l.egg/webiopi.py", line 489, in <module>
    main(sys.argv)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.3-py3.2-linux-armv6l.egg/webiopi.py", line 481, in main
    server = Server(port=port, passwdfile=passwdfile)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.3-py3.2-linux-armv6l.egg/webiopi.py", line 106, in __init__
    self.host = getLocalIP()
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.5.3-py3.2-linux-armv6l.egg/webiopi.py", line 98, in getLocalIP
    except (socket.error, e):
NameError: global name 'e' is not defined

================================================

if config looks like this.

# ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:3d:64:bb  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 
C8-3A-35-C6-E3-37-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:68847 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15753841 (15.0 MiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr c8:3a:35:c6:e3:37  
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:334 errors:0 dropped:46 overruns:0 frame:0
          TX packets:285 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48780 (47.6 KiB)  TX bytes:57719 (56.3 KiB)

================================================

I configured RPi as Access Point and it works fine. I sets wlan0 to static IP 
(10.0.0.1) and unplugged eth0 off. I can get IP address on client correctly. 
Ping 10.0.0.1 is fine and I can browse home page from Apache (i didn't install 
in this case). So, I don't thing its about iptables.

Well, I'm Java and Objective-C programmer and have no experience with Python. 
You may not necessary to change your code. Just give me some snipped code (or 
Google hint) and tell me where I can hard code to make it work only with wlan0.

Thank again.

Best Regards,
Olarn U.



Original comment by [email protected] on 17 Feb 2013 at 12:19

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
"mon.wlan0" ... french speaking ?
WebIOPi binds on all IPs/interfaces. The IP shown is just a hint.
Your error is due to a syntax error in exception handling when trying to get 
this hint.
see issue #25, it's fixed on the trunk

Original comment by [email protected] on 17 Feb 2013 at 12:30

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
I am having this same problem with the current version how does one go about 
solving this problem?

Original comment by [email protected] on 19 Mar 2013 at 3:52

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Do not change locale on RPi. 

Original comment by [email protected] on 20 Mar 2013 at 4:07

from webiopi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.