teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

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

2021/01/17 04:12

投稿

spike0726
spike0726

スコア12

title CHANGED
File without changes
body CHANGED
@@ -91,7 +91,7 @@
91
91
 
92
92
  環境:
93
93
   Windows10 Pro
94
-  Python 3.8
94
+  Python 3.7.4
95
95
 
96
96
  よろしくお願いします。
97
97
  以上です。

2

例外の内容を更新2

2021/01/17 04:12

投稿

spike0726
spike0726

スコア12

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:\work\test\sample.py", line 34, in SvcDoRun
63
+ File "C:\Users\nalgo\Desktop\test3.py", line 36, in SvcDoRun
67
- api.run()
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 359, in run
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 354, in serve
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\responder\api.py", line 352, in spawn
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\main.py", line 327, in run
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\config.py", line 179, in __init__
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\suzuki\AppData\Local\Programs\Python\Python38\lib\site-packages\uvicorn\config.py", line 233, in configure_logging
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\suzuki\AppData\Local\Programs\Python\Python38\lib\logging\config.py", line 814, in dictConfig
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\suzuki\AppData\Local\Programs\Python\Python38\lib\logging\config.py", line 547, in configure
81
+ File "C:\Users\nalgo\AppData\Local\Programs\Python\Python37\lib\logging\config.py", line 545, in configure
83
- raise ValueError('Unable to configure '
82
+ 'formatter %r' % name) from e
84
- ValueError: Unable to configure formatter 'default'
83
+ ValueError: Unable to configure formatter 'default'
85
- %2: %3
84
+
85
+
86
86
  ```
87
87
 
88
88
 

1

例外の内容を更新

2021/01/17 04:10

投稿

spike0726
spike0726

スコア12

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