Python and Bottle Micro Framework [SOLVED]

Hi

I'm new to the python world but thought it would be a good place to start using it on the Yun since it was already pre installed. I was hoping to use the Bottle Micro Framework to create some web services. I followed the installation in the Bottle tutorial

http://bottlepy.org/docs/dev/tutorial.html#installation

And this worked fine. I have a virtual env setup and attempted to run the small hello.py example. It comes back after a few seconds instead of waiting on port 8080. It's a pretty trivial script

from bottle import route, run

@route('/hello')
def hello():
    return "Hello World!"
    
    run(host='localhost', port=8080, debug=True)

So the reason I ask exactly the same workflow on a Raspberrypi or x86 red hat version of linux works flawlessly. I'm wondering if anyone can spot the simple flaw in this otherwise simple test. I've tried different ports and changing localhost to an IP and hostname... nothing.

opkg update #updates the available packages list
opkg install nano 
opkg install python-openssl #adds ssl support to python
opkg install distribute #it contains the easy_install command line tool
easy_install bottle
nano /mnt/sda1/pythonweb.py
#!/usr/bin/python
from bottle import route, run

@route('/hello')
def hello():
    return "Hello World!"

run(host='192.168.0.101', port=8080, debug=True)

Mkae sure use your Yun ip address to replace localhost.

chmod 755 /mnt/sda1/pythonweb.py
/mnt/sda1/pythonweb.py

Use Browser test "http://192.168.0.101:8080/hello"

I'd changed localhost to the ip address. I'd just left localhost in their for clarity... So the hello.py looks like this

-rwxr-xr-x    1 root     root           163 Feb 27 19:34 hello.py

The script looks like

#!/usr/bin/python
from bottle import route, run

@route('/hello')
def hello():
    return "Hello World!"
    
    run(host='192.168.1.145', port=8080, debug=True)

and I execute it as

root@DomsYun:~/develop# ./hello.py 
root@DomsYun:~/develop#

It comes back after a second. I can't see anything. Ideas?

    run(host='192.168.1.145', port=8080, debug=True)
run(host='192.168.1.145', port=8080, debug=True)

Sigh... first lesson learned in python. Indentation. Feels like using fortran all over again.

Many Thanks for you patience

Last time I was coding fortran almost 40+ years ago, time is fly. :P