Python33, Flask: Lot of Errors starting Hello World
Question: I just have installed with pip flask and HTML5 on my window-sytem. When I
start the Hello World!-program with IDLE I get the text correct in a new tab
of Firefox. But also a lot of error-messages in the Python shell:

    
    
        Traceback (most recent call last):
          File "<frozen importlib._bootstrap>", line 1519, in _find_and_load_unlocked
        AttributeError: 'module' object has no attribute '__path__'
    
    During handling of the above exception, another exception occurred:
    
        Traceback (most recent call last):
          File "C:\Python33\lib\site-packages\werkzeug\utils.py", line 18, in <module>
            from html.entities import name2codepoint
        ImportError: No module named 'html.entities'; html is not a package
    
    During handling of the above exception, another exception occurred:
    
        Traceback (most recent call last):
          File "C:/Users/Public/python/testflask.py", line 13, in <module>
            from flask import Flask
          File "C:\Python33\lib\site-packages\flask\__init__.py", line 17, in <module>
            from werkzeug.exceptions import abort
          File "C:\Python33\lib\site-packages\werkzeug\__init__.py", line 154, in <module>
            __import__('werkzeug.exceptions')
          File "C:\Python33\lib\site-packages\werkzeug\exceptions.py", line 71, in <module>
            from werkzeug.wrappers import Response
          File "C:\Python33\lib\site-packages\werkzeug\wrappers.py", line 36, in <module>
            from werkzeug.utils import cached_property, environ_property, \
          File "C:\Python33\lib\site-packages\werkzeug\utils.py", line 20, in <module>
            from htmlentitydefs import name2codepoint
        ImportError: No module named 'htmlentitydefs'
    

Help! Help! Help!


Answer: You have a _local_ `html.py` module or `html` package that is masking the
built-in library. Rename it, as it is breaking software that relies on the
standard library version.

You can find what file you need to rename or move aside with:

    
    
    import html
    print(html)
    

Rename that file to something else. Take into account that there might be a
`.pyc` file as well; remove the `.pyc` bytecode cache altogeher if present.

