質問編集履歴

3

Pythonのバージョンを3.8から3.7.4に修正(但し、3.8でも同じ現象がでる)

2021/01/17 04:12

投稿

spike0726
spike0726

スコア12

test CHANGED
File without changes
test CHANGED
@@ -184,7 +184,7 @@
184
184
 
185
185
   Windows10 Pro
186
186
 
187
-  Python 3.8
187
+  Python 3.7.4
188
188
 
189
189
 
190
190
 

2

例外の内容を更新2

2021/01/17 04:12

投稿

spike0726
spike0726

スコア12

test CHANGED
File without changes
test CHANGED
@@ -120,53 +120,53 @@
120
120
 
121
121
 
122
122
 
123
- The instance's SvcRun() method failed
124
-
125
123
  Traceback (most recent call last):
126
124
 
127
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\win32\lib\win32serviceutil.py", line 847, in SvcRun
125
+ File "C:\Users\nalgo\Desktop\test3.py", line 36, in SvcDoRun
128
126
 
129
- self.SvcDoRun()
127
+ self.main()
130
128
 
131
- File "C:\work\test\sample.py", line 34, in SvcDoRun
129
+ File "C:\Users\nalgo\Desktop\test3.py", line 42, in main
132
130
 
133
- api.run()
131
+ api.run(address="0.0.0.0", port=5042, debug=True)
134
132
 
135
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 359, in run
133
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 359, in run
136
134
 
137
135
  self.serve(**kwargs)
138
136
 
139
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 354, in serve
137
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 354, in serve
140
138
 
141
139
  spawn()
142
140
 
143
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 352, in spawn
141
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\responder\api.py", line 352, in spawn
144
142
 
145
143
  uvicorn.run(self, host=address, port=port, debug=debug, **options)
146
144
 
147
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\main.py", line 327, in run
145
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\main.py", line 327, in run
148
146
 
149
147
  config = Config(app, **kwargs)
150
148
 
151
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\config.py", line 179, in __init__
149
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\config.py", line 179, in __init__
152
150
 
153
151
  self.configure_logging()
154
152
 
155
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\config.py", line 233, in configure_logging
153
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\config.py", line 232, in configure_logging
156
154
 
157
155
  logging.config.dictConfig(self.log_config)
158
156
 
159
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\logging\config.py", line 814, in dictConfig
157
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 799, in dictConfig
160
158
 
161
159
  dictConfigClass(config).configure()
162
160
 
163
- File "C:\Users\suzuki\AppData\Local\Programs\Python\Python38\lib\logging\config.py", line 547, in configure
161
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 545, in configure
164
162
 
165
- raise ValueError('Unable to configure '
163
+ 'formatter %r' % name) from e
166
164
 
167
- ValueError: Unable to configure formatter 'default'
165
+ ValueError: Unable to configure formatter 'default'
168
166
 
169
- %2: %3
167
+
168
+
169
+
170
170
 
171
171
  ```
172
172
 

1

例外の内容を更新

2021/01/17 04:10

投稿

spike0726
spike0726

スコア12

test CHANGED
File without changes
test CHANGED
@@ -94,6 +94,32 @@
94
94
 
95
95
  ```ここに言語を入力
96
96
 
97
+ Traceback (most recent call last):
98
+
99
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 542, in configure
100
+
101
+ formatters[name])
102
+
103
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 653, in configure_formatter
104
+
105
+ result = self.configure_custom(config)
106
+
107
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 472, in configure_custom
108
+
109
+ result = c(**kwargs)
110
+
111
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\site-packages\uvicorn\logging.py", line 34, in __init__
112
+
113
+ self.use_colors = sys.stdout.isatty()
114
+
115
+ AttributeError: 'NoneType' object has no attribute 'isatty'
116
+
117
+
118
+
119
+ The above exception was the direct cause of the following exception:
120
+
121
+
122
+
97
123
  The instance's SvcRun() method failed
98
124
 
99
125
  Traceback (most recent call last):