python3 运行sanic报错
来源:互联网 发布:模式识别算法 编辑:程序博客网 时间:2024/04/30 05:41
python3运行 sanic的时候报错
D:\python>python web.py
2017-01-04 00:04:56,851: INFO: Goin' Fast @ http://0.0.0.0:8000
2017-01-04 00:04:56,853: ERROR: Experienced exception while trying to serve
Traceback (most recent call last):
File "D:\software\python\lib\site-packages\sanic-0.1.9-py3.5.egg\sanic\sanic.p
y", line 304, in run
serve(**server_settings)
File "D:\software\python\lib\site-packages\sanic-0.1.9-py3.5.egg\sanic\server.
py", line 290, in serve
loop.add_signal_handler(_signal, loop.stop)
File "D:\software\python\lib\asyncio\events.py", line 475, in add_signal_handl
er
raise NotImplementedError
NotImplementedError
这是代码缩进有问题,检查一下代码
但是在运行python web的时候,还是会出问题:
网上说用:
python -m SimpleHTTPServer 8080
然而并没有什么用,因为在python3.5里面根本就没有SimpleHTTPServer
SimpleHTTPServer 被http.server替代了,所以我们应该用:
python -m http.server [<portNo>]
这个启动起来我们访问本地:http://localhost:8080/web.py
这时候显示的都是源代码
说明我们的服务器起来了
- python3 运行sanic报错
- python3 用sanic时 import ssl 报错
- python3运行selenium下HTMLTestRunner报错
- python3.5 运行pip报错
- Sanic
- django 框架运行 python3 manage.py runserver 报错
- python3 报错
- 基于python3.5+的web框架sanic中文入门教程
- 基于python3.5+的web框架sanic中文入门教程
- python3.5入门1--运行报错:IndentationError: expected an indented block
- Python3.4运行报错:FileNotFountError:[Error 2]No such file or directory:'mnist_train.mat'
- Python3 Pickle报错 TypeError
- python3.5 运行from skimage import morphology,feature报错ImportError: DLL load failed:找不到指定模块
- 【python3问题解决】python3代码添加中文注释报错
- python3.6 xlwt 安装报错解决
- python3 ssl经常性报错解决方案
- python3的urllib2报错问题解决方法
- python3的urllib2报错问题解决方法
- LintCode: 解码方法
- 线性表学习笔记
- cocos2d-x 3.x版本开发环境搭建
- 文章标题 SPOJ PHT : Pigeonhole Tower(二分)
- Mac OS X下清理磁盘及缓存等碎片的实用技巧
- python3 运行sanic报错
- 洛谷 P2010 回文日期
- cuda8.0运行oceanFFT案例报错解决方法
- 关于点击手势冲突的处理
- c语言笔记——对缓冲区的理解
- Windows中的环境变量一览
- Windows常用快捷键
- 第十七期 CyanogenMod 编译小米3W《手机就是开发板》
- python中的ValueError