質問編集履歴
3
Pythonのバージョンを3.8から3.7.4に修正(但し、3.8でも同じ現象がでる)
title
CHANGED
File without changes
|
body
CHANGED
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
環境:
|
93
93
|
Windows10 Pro
|
94
|
-
Python 3.
|
94
|
+
Python 3.7.4
|
95
95
|
|
96
96
|
よろしくお願いします。
|
97
97
|
以上です。
|
2
例外の内容を更新2
title
CHANGED
File without changes
|
body
CHANGED
@@ -59,30 +59,30 @@
|
|
59
59
|
|
60
60
|
The above exception was the direct cause of the following exception:
|
61
61
|
|
62
|
-
The instance's SvcRun() method failed
|
63
62
|
Traceback (most recent call last):
|
64
|
-
File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\win32serviceutil.py", line 847, in SvcRun
|
65
|
-
self.SvcDoRun()
|
66
|
-
File "C:\
|
63
|
+
File "C:\Users\nalgo\Desktop\test3.py", line 36, in SvcDoRun
|
67
|
-
|
64
|
+
self.main()
|
65
|
+
File "C:\Users\nalgo\Desktop\test3.py", line 42, in main
|
66
|
+
api.run(address="0.0.0.0", port=5042, debug=True)
|
68
|
-
File "C:\Users\
|
67
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 359, in run
|
69
68
|
self.serve(**kwargs)
|
70
|
-
File "C:\Users\
|
69
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 354, in serve
|
71
70
|
spawn()
|
72
|
-
File "C:\Users\
|
71
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 352, in spawn
|
73
72
|
uvicorn.run(self, host=address, port=port, debug=debug, **options)
|
74
|
-
File "C:\Users\
|
73
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\main.py", line 327, in run
|
75
74
|
config = Config(app, **kwargs)
|
76
|
-
File "C:\Users\
|
75
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\config.py", line 179, in __init__
|
77
76
|
self.configure_logging()
|
78
|
-
File "C:\Users\
|
77
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\config.py", line 232, in configure_logging
|
79
78
|
logging.config.dictConfig(self.log_config)
|
80
|
-
File "C:\Users\
|
79
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 799, in dictConfig
|
81
80
|
dictConfigClass(config).configure()
|
82
|
-
File "C:\Users\
|
81
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 545, in configure
|
83
|
-
|
82
|
+
'formatter %r' % name) from e
|
84
|
-
ValueError: Unable to configure formatter 'default'
|
83
|
+
ValueError: Unable to configure formatter 'default'
|
85
|
-
|
84
|
+
|
85
|
+
|
86
86
|
```
|
87
87
|
|
88
88
|
|
1
例外の内容を更新
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,6 +46,19 @@
|
|
46
46
|
表示されるエラーコードは以下の通りです。
|
47
47
|
|
48
48
|
```ここに言語を入力
|
49
|
+
Traceback (most recent call last):
|
50
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 542, in configure
|
51
|
+
formatters[name])
|
52
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 653, in configure_formatter
|
53
|
+
result = self.configure_custom(config)
|
54
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 472, in configure_custom
|
55
|
+
result = c(**kwargs)
|
56
|
+
File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\logging.py", line 34, in __init__
|
57
|
+
self.use_colors = sys.stdout.isatty()
|
58
|
+
AttributeError: 'NoneType' object has no attribute 'isatty'
|
59
|
+
|
60
|
+
The above exception was the direct cause of the following exception:
|
61
|
+
|
49
62
|
The instance's SvcRun() method failed
|
50
63
|
Traceback (most recent call last):
|
51
64
|
File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\win32serviceutil.py", line 847, in SvcRun
|