当前位置:网站首页>Sanic service startup failed
Sanic service startup failed
2022-06-25 00:58:00 【70% spicy】
establish sanic Service startup failed :
#!/usr/bin/env python
# -*- coding: utf-8 -*
''' @Project :Sanic01 @File :main.py @Author :Aron @Date :2022/6/21 14:38 '''
from sanic import Sanic
from sanic.response import json,json_dumps
app = Sanic(name='hello-example') # name Must start with a string , Can only contain numbers and letters 、_、-
@app.get('/')
async def test(request):
return json({
'hello':'world'
})
if __name__ == '__main__':
app.run(host='0.0.0.0',port=8000)
Sanic When starting the service , Terminal display :
"D:\Program File\Python\python.exe" "D:\Program File\PythoProfessional\PyCharm 2021.3\plugins\python\helpers\pycharm\_jb_pytest_runner.py" --target main.py::test
Testing started at 15:04 ...
Launching pytest with arguments main.py::test --no-header --no-summary -q in D:\Project\pythonProject\Sanic01\bin
============================= test session starts =============================
collecting ... collected 1 item
main.py::test SKIPPED (async def function and no async plugin instal...) [100%]
Skipped: async def function and no async plugin installed (see warnings)
======================== 1 skipped, 1 warning in 0.12s ========================
Process finished with exit code 0
because , Interface functions with test* start , As a test case , Change your name (eg. demo) It will start normally !
"D:\Program File\Python\python.exe" D:/Project/pythonProject/Sanic01/bin/main.py
[2022-06-21 15:10:46 +0800] [18760] [INFO] Sanic v22.3.2
[2022-06-21 15:10:46 +0800] [18760] [INFO] Goin' Fast @ http://0.0.0.0:8000
[2022-06-21 15:10:46 +0800] [18760] [INFO] mode: production, single worker
[2022-06-21 15:10:46 +0800] [18760] [INFO] server: sanic
[2022-06-21 15:10:46 +0800] [18760] [INFO] python: 3.9.0
[2022-06-21 15:10:46 +0800] [18760] [INFO] platform: Windows-10-10.0.19041-SP0
[2022-06-21 15:10:46 +0800] [18760] [INFO] packages: sanic-routing==22.3.0
[2022-06-21 15:10:46 +0800] [18760] [INFO] Starting worker [18760]
边栏推荐
- Custom animation (simulated win10 loading animation) - Optimization
- 【Redis实现秒杀业务③】超卖问题之乐观锁具体实现
- 【微服务|Sentinel】簇点链路|微服务集群环境搭建
- Sliding window technology based on byte in transport layer
- Scrollview height cannot fill full screen
- Punch smart spirit 1. The brand is attractive. What is the strength of the product?
- 移动安全工具-dex2jar
- 108页(4万字)未来公寓智能化设计平台项目方案建议书2022版
- 无需显示屏的VNC Viewer远程连接树莓派
- Databinding quick start (still using findviewbyid?)
猜你喜欢

The interview questions and answers for the high-frequency software test of Dachang help you prepare for the golden nine silver ten

移动安全工具-jar

Using tcp/udp tools to debug the yeelight ribbon

Technologie des fenêtres coulissantes en octets dans la couche de transmission
5-minute NLP: summary of 3 pre training libraries for rapid realization of NER
Fuxin Kunpeng joins in, and dragon lizard community welcomes a new partner in format document technical service

生成订单30分钟未支付,则自动取消,该怎么实现?

Use of JMeter easynmon

ServerSocket and socket connection

Use of navigation and navigationui
随机推荐
Technologie des fenêtres coulissantes en octets dans la couche de transmission
【微服务|Sentinel】簇点链路|微服务集群环境搭建
The acceleration of 100 km is only 5.92 seconds, and the willanda high-performance version leads with the strength of high-energy products
【Redis实现秒杀业务②】超卖问题的解决方案
C#和C 的CAN通信实验
Eliminate duplicate dependencies
无需显示屏的VNC Viewer远程连接树莓派
Source code analysis the problem that fragments cannot be displayed in the custom ViewGroup
大厂高频软件测试面试题和答案都帮你准备好啦,备战金九银十
WordPress add photo album function [advanced custom fields Pro custom fields plug-in series tutorial]
Single blind box removal, social blind box and friend blind box program source code
移动安全工具-apktool
Go crawler framework -colly actual combat (II) -- Douban top250 crawling
iNFTnews | 国内NFT发展仅限于数字藏品吗?
Difficult and miscellaneous problems: A Study on the phenomenon of text fuzziness caused by transform
【Redis实现秒杀业务③】超卖问题之乐观锁具体实现
不重要的token可以提前停止计算!英伟达提出自适应token的高效视觉Transformer网络A-ViT,提高模型的吞吐量!...
Apk slimming compression experience
Basic summary of MySQL database knowledge
傳輸層 以字節為單比特的滑動窗口技術