python-oauth2 icon indicating copy to clipboard operation
python-oauth2 copied to clipboard

Can not run example with python 3.6

Open truonghoangnguyen opened this issue 7 years ago • 0 comments

I Can not run example/server.py

(.evn) D:\projects\python-oauth2>python example\server.py
Traceback (most recent call last):
  File "example\server.py", line 25, in <module>
    from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
ModuleNotFoundError: No module named 'BaseHTTPServer'

after fix BaseHTTPRequestHandler (replace from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer to from http.server import BaseHTTPRequestHandler,HTTPServer)another error:

(.evn) D:\projects\python-oauth2>python example\server.py
Traceback (most recent call last):
  File "example\server.py", line 28, in <module>
    import oauth.oauth as oauth
ModuleNotFoundError: No module named 'oauth'

truonghoangnguyen avatar May 17 '17 03:05 truonghoangnguyen