[New-bugs-announce] [issue30559] Bugs in Web app

Mahira report at bugs.python.org
Sat Jun 3 04:36:44 EDT 2017


New submission from Mahira:

Hai 

I followed your Tutorial
In the Following Program, i am getting 
Traceback (most recent call last):
  File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\localhost.py", line 1, in <module>
    import web
  File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\web.py", line 6, in <module>
    app = web.application(("urls"),globals())
AttributeError: module 'web' has no attribute 'application'

And my program is:

import web

urls = (
    '/', 'index'
)

class index:
    def GET(self):
        return "Hello, world!"

if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()

----------
assignee: terry.reedy
components: IDLE
messages: 295071
nosy: Mahira, terry.reedy
priority: normal
severity: normal
status: open
title: Bugs in Web app
type: compile error
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30559>
_______________________________________


More information about the New-bugs-announce mailing list