title: Flask: ModuleNotFoundError: No module named 'SocketServer'
body: <p>I have a strange error, that I never saw before.</p>
  <p>I wrote a small http web server using flask and when I run I got the error bellow.</p>
  <p>I am using virtual env and my python version is 3.8</p>
  <p>What can be?</p>
  <pre><code>from flask import Flask, request
  
  app = Flask(__name__)
  
  
  @app.route(&quot;/&quot;)
  def index():
      print(request.get_json())
  
  
  if __name__ == &quot;__main__&quot;:
      app.run(debug=True)
  
  </code></pre>
  <pre><code>python tools/fake.pyTraceback (most recent call last):
    File &quot;/home/ubuntu/workspace/otc/venv/lib/python3.8/site-packages/werkzeug/serving.py&quot;, line 58, in &lt;module&gt;
      from http.server import BaseHTTPRequestHandler
  ModuleNotFoundError: No module named 'http.server'; 'http' is not a package
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;tools/fake.py&quot;, line 1, in &lt;module&gt;
      from flask import Flask, request
    File &quot;/home/ubuntu/workspace/otc/venv/lib/python3.8/site-packages/flask/__init__.py&quot;, line 16, in &lt;module&gt;
      from werkzeug.exceptions import abort
    File &quot;/home/ubuntu/workspace/otc/venv/lib/python3.8/site-packages/werkzeug/__init__.py&quot;, line 15, in &lt;module&gt;
      from .serving import run_simple
    File &quot;/home/ubuntu/workspace/otc/venv/lib/python3.8/site-packages/werkzeug/serving.py&quot;, line 61, in &lt;module&gt;
      import SocketServer as socketserver
  ModuleNotFoundError: No module named 'SocketServer'```
  </code></pre>