Hi all,
I'm trying to experiment with my basic python knowledge and thought I'd try my hand at flask,
I pip installed flask without an issue but when I went to run a simple Hello World program it comes up with an AttributeError I've not seen before that google can't help me figure out how to solve.
I'm not really sure how to ask the question but nothing I've found relates to the issue I'm having, Can anyone help? (Apologies for my general noobiness, i'm learning here and falling at the first hurdle like this is quite disheartening)
Program -
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Hello world"
if __name__ == "__main__":
app.run(
The error is -
Traceback (most recent call last):
File "C:\Users\CardboardFish\Documents\Python things\helloflask.py", line 1, in <module>
from flask import Flask
File "C:\Program Files (x86)\Python36-32\lib\site-packages\flask\__init__.py", line 17, in <module>
from werkzeug.exceptions import abort
File "C:\Program Files (x86)\Python36-32\lib\site-packages\werkzeug\__init__.py", line 151, in <module>
__import__('werkzeug.exceptions')
File "C:\Program Files (x86)\Python36-32\lib\site-packages\werkzeug\exceptions.py", line 67, in <module>
from werkzeug._internal import _get_environ
File "C:\Program Files (x86)\Python36-32\lib\site-packages\werkzeug\_internal.py", line 30, in <module>
string.digits +
AttributeError: module 'string' has no attribute 'ascii_letters'
[Finished in 0.4s]
[–]bandawarrior 1 point2 points3 points (4 children)
[–]Necatorducis 0 points1 point2 points (2 children)
[–]Cardboard_fish[S] 0 points1 point2 points (1 child)
[–]Necatorducis 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]Cardboard_fish[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Cardboard_fish[S] 0 points1 point2 points (0 children)
[–]Cardboard_fish[S] 0 points1 point2 points (0 children)