alexrudnick / iucs-guido

Automatically exported from code.google.com/p/iucs-guido
0 stars 0 forks source link

development server doesn't seem to work on Windows/IDLE #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out the code on Windows 7
2. load up devserver.py in IDLE
3. hit F5 to "run module"

What is the expected output? What do you see instead?

You expect the development server to come up and successfully serve pages, but 
instead it seems really really slow and eventually fails out, perhaps with a 
message that looks like:

Traceback (most recent call last):
  File "<pyshell#16>", line 1, in <module>
    import devserver.py
  File "c:/Users/Andrew/Desktop/Python/guido\devserver.py", line 10, in <module>
    bottle.run(host='localhost', port=8080, reloader=True)
  File "c:/Users/Andrew/Desktop/Python/guido\bottle.py", line 1700, in run
    _reloader_observer(server, app, interval)
  File "c:/Users/Andrew/Desktop/Python/guido\bottle.py", line 1780, in _reloader_observer
    sys.exit(p.poll())
SystemExit: 1

Original issue reported on code.google.com by alex.rudnick on 21 Feb 2011 at 3:57

GoogleCodeExporter commented 9 years ago
So I notice on Windows, it works OK if I take out the reference to the CSS file 
from the template; it seemed like it was loading the main HTML alright (I know 
this because it got the title of the page to the web browser), but it seems to 
hang when trying to load the static file. Investigating why that might be...

The issue seems to be specific to Windows/IDLE, too. Really weird. Running this 
from the command line seems to work fine.

Andrew: if you comment out the link to the CSS in the header template, does it 
load?

Original comment by alex.rudnick on 21 Feb 2011 at 4:00