Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs in Web app #74744

Closed
Mahira mannequin opened this issue Jun 3, 2017 · 3 comments
Closed

Bugs in Web app #74744

Mahira mannequin opened this issue Jun 3, 2017 · 3 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@Mahira
Copy link
Mannequin

Mahira mannequin commented Jun 3, 2017

BPO 30559
Nosy @terryjreedy, @mdickinson

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2017-06-03.09:17:48.620>
created_at = <Date 2017-06-03.08:36:44.422>
labels = ['expert-IDLE', 'type-bug', 'invalid']
title = 'Bugs in Web app'
updated_at = <Date 2017-06-03.15:42:44.893>
user = 'https://bugs.python.org/Mahira'

bugs.python.org fields:

activity = <Date 2017-06-03.15:42:44.893>
actor = 'terry.reedy'
assignee = 'none'
closed = True
closed_date = <Date 2017-06-03.09:17:48.620>
closer = 'mark.dickinson'
components = ['IDLE']
creation = <Date 2017-06-03.08:36:44.422>
creator = 'Mahira'
dependencies = []
files = []
hgrepos = []
issue_num = 30559
keywords = []
message_count = 3.0
messages = ['295071', '295072', '295083']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'mark.dickinson', 'Mahira']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue30559'
versions = ['Python 3.6']

@Mahira
Copy link
Mannequin Author

Mahira mannequin commented Jun 3, 2017

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()

@Mahira Mahira mannequin assigned terryjreedy Jun 3, 2017
@Mahira Mahira mannequin added build The build process and cross-build topic-IDLE labels Jun 3, 2017
@mdickinson
Copy link
Member

Hi Mahira,

This site is for reporting bugs in the Python core language itself, not bugs in code written by users.

You appear to be using the "Learn Python the Hard Way" tutorial, which is a third-party resource that's not maintained by the Python language developers. You might want to try asking your questions on one of the Python mailing lists (see https://www.python.org/community/lists/), or the "Learn Code the Hard Way" chat room: https://gitter.im/lcthw/Lobby

@terryjreedy
Copy link
Member

It is good that you included both a short program and the full traceback. Too many beginners don't do that when asking questions. Three comments: your program does not have syntax errors and compiled just fine; exceptions almost never involved the editor/IDE you happen to use; if 'web' comes from a book, its discussion group should be your best bet.

@terryjreedy terryjreedy removed their assignment Jun 3, 2017
@terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Jun 3, 2017
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants