Public bug reported:

Binary package hint: python-bottle

The most basic example on python bottle webpage at
http://bottle.paws.de/:

from bottle import route, run

@route('/:name')
def index(name='World'):
    return '<b>Hello %s!</b>' % name

run(host='localhost', port=8080)

fails with this traceback:

Bottle server starting up (using AutoServer())...
Listening on http://localhost:8080/
Use Ctrl-C to quit.

Traceback (most recent call last):
  File "bottlest.py", line 7, in <module>
    run(host='localhost', port=8080)
  File "/usr/lib/pymodules/python2.6/bottle.py", line 1247, in run
    server.run(app)
  File "/usr/lib/pymodules/python2.6/bottle.py", line 1220, in run
    return sa(self.host, self.port, **self.options).run(handler)
  File "/usr/lib/pymodules/python2.6/bottle.py", line 1193, in run
    reactor.listenTCP(self.port, self.host)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/posixbase.py", line 
419, in listenTCP
    p.startListening()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 865, in 
startListening
    self.factory.doStart()
AttributeError: 'str' object has no attribute 'doStart'

After that you have to force-kill the process.

The same problem doesn't happen if you install bottle from the website
instead of using the ubuntu package.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-bottle 0.8.0-3
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
Architecture: amd64
Date: Sat Feb 26 18:26:20 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.utf8
 SHELL=/bin/bash
SourcePackage: python-bottle

** Affects: python-bottle (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/725769

Title:
  crashes when running basic example

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to