iamdual / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

while i am running my script i am getting following error:WebIOPi-ERROR-EOF read where not expected #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.
...

WebIOPi version used?
=>

Python version used?
=>

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

Raspberry Pi board revision? (1 or 2)
=>

For Javascript side bugs, Browser?
=>

Please provide any additional information below.

Original issue reported on code.google.com by jaydabhi...@gmail.com on 14 Sep 2014 at 7:20

GoogleCodeExporter commented 9 years ago
I have also had this problem. Script was working ok but next time had the error.
I am using Raspbian Wheezy on a Pi 2, chrome browser. If I comment out the 
script line in the config file the default works ok but when I reinstate a 
script that was working I get the error. I will check for Webiopi version, the 
debug I remember said Python 3. This occurred after a new script I was 
developing failed to work and I wanted to 'begin again' from a previously 
working script.

Original comment by olliemal...@gmail.com on 9 Feb 2015 at 3:38

GoogleCodeExporter commented 9 years ago
Good Day
I need your help.

What steps will reproduce the problem?

start debug
sudo webiopi -d -c /etc/webiopi/config

WebIOPi version used?
=>0.7.1 or 0.7.0

Python version used?
=> python 3.2

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

Raspberry Pi board revision? (1 or 2)
Pi B

For Javascript side bugs, Browser?
=>NO DEBUG -- sudo webiopi -d -c /etc/webiopi/config
2015-02-27 09:56:49 - WebIOPi - INFO - Starting WebIOPi/0.7.1/Python3.2
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.digitalCount to REST GET 
/GPIO/count
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.digitalRead to REST GET 
/GPIO/%(channel)d/value
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.digitalWrite to REST POST 
/GPIO/%(channel)d/value/%(value)d
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.getFunctionString to REST 
GET /GPIO/%(channel)d/function
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.getPulse to REST GET 
/GPIO/%(channel)d/pulse
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.outputSequence to REST 
POST /GPIO/%(channel)d/sequence/%(args)s
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.portRead to REST GET 
/GPIO/*/integer
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.portWrite to REST POST 
/GPIO/*/integer/%(value)d
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.pulse to REST POST 
/GPIO/%(channel)d/pulse/
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.pulseAngle to REST POST 
/GPIO/%(channel)d/pulseAngle/%(value)f
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.pulseRatio to REST POST 
/GPIO/%(channel)d/pulseRatio/%(value)f
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.setFunctionString to REST 
POST /GPIO/%(channel)d/function/%(value)s
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping GPIO.wildcard to REST GET 
/GPIO/*
2015-02-27 09:56:49 - WebIOPi - INFO - GPIO - Native mapped to REST API /GPIO
2015-02-27 09:56:49 - WebIOPi - INFO - Loading configuration from 
/etc/webiopi/config
2015-02-27 09:56:49 - WebIOPi - DEBUG - Setup GPIO 17
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping Serial(/dev/ttyAMA0, 
9600bps).readString to REST GET /devices/serial0/
2015-02-27 09:56:49 - WebIOPi - DEBUG - Mapping Serial(/dev/ttyAMA0, 
9600bps).writeString to REST POST /devices/serial0/
2015-02-27 09:56:49 - WebIOPi - INFO - Serial - Serial(/dev/ttyAMA0, 9600bps) 
mapped to REST API /devices/serial0
2015-02-27 09:56:49 - WebIOPi - INFO - Loading myscript from 
/home/pi/sistemas/proceso/python/script.py
2015-02-27 09:56:49 - WebIOPi - ERROR - EOF read where not expected
Traceback (most recent call last):
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/__main__.py", line 75, in <module>
    main(sys.argv)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/__main__.py", line 69, in main
    server = Server(port=port, configfile=configfile, scriptfile=scriptfile)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/server/__init__.py", line 75, in __init__
    loader.loadScript(name, source, self.restHandler)
  File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/utils/loader.py", line 8, in loadScript
    script = imp.load_source(name, source)
EOFError: EOF read where not expected

Thanks

Original comment by jdgaviri...@misena.edu.co on 27 Feb 2015 at 3:03