質問編集履歴
5
エラーメッセージ追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -379,3 +379,39 @@
|
|
379
379
|
PermissionError: [WinError 5] アクセスが拒否されました。
|
380
380
|
|
381
381
|
```
|
382
|
+
|
383
|
+
config.jsonをいじったところ、だいぶエラーが減ったようです。
|
384
|
+
|
385
|
+
```cmd
|
386
|
+
|
387
|
+
C:\Users\user\Desktop\nicolive-mastodon-1.1.2>python run.py
|
388
|
+
|
389
|
+
Traceback (most recent call last):
|
390
|
+
|
391
|
+
File "run.py", line 100, in <module>
|
392
|
+
|
393
|
+
config = generate_from_file(path_config)
|
394
|
+
|
395
|
+
File "C:\Users\user\Desktop\nicolive-mastodon-1.1.2\config\config.py", line 18, in generate_from_file
|
396
|
+
|
397
|
+
info = json.load(open(path, encoding='utf-8'))
|
398
|
+
|
399
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 296, in load
|
400
|
+
|
401
|
+
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
|
402
|
+
|
403
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 348, in loads
|
404
|
+
|
405
|
+
return _default_decoder.decode(s)
|
406
|
+
|
407
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
|
408
|
+
|
409
|
+
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
|
410
|
+
|
411
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
|
412
|
+
|
413
|
+
raise JSONDecodeError("Expecting value", s, err.value) from None
|
414
|
+
|
415
|
+
json.decoder.JSONDecodeError: Expecting value: line 4 column 23 (char 104)
|
416
|
+
|
417
|
+
```
|
4
エラーメッセージ編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -322,6 +322,60 @@
|
|
322
322
|
|
323
323
|
```cmd
|
324
324
|
|
325
|
-
C:\Users\user\Desktop\nicolive-mastodon-1.1.2>python run.py
|
325
|
+
C:\Users\user\Desktop\nicolive-mastodon-1.1.2>python run.py
|
326
|
+
|
327
|
+
running...
|
328
|
+
|
329
|
+
['.']
|
330
|
+
|
331
|
+
Traceback (most recent call last):
|
332
|
+
|
333
|
+
File "run.py", line 127, in <module>
|
334
|
+
|
335
|
+
runner.run()
|
336
|
+
|
337
|
+
File "run.py", line 96, in run
|
338
|
+
|
339
|
+
self.mastodon.stream_local(self)
|
340
|
+
|
341
|
+
File "<decorator-gen-85>", line 2, in stream_local
|
342
|
+
|
343
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 77, in wrapper
|
344
|
+
|
345
|
+
return function(self, *args, **kwargs)
|
346
|
+
|
347
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 2001, in stream_local
|
348
|
+
|
349
|
+
return self.__stream('/api/v1/streaming/public/local', listener, run_async=run_async, timeout=timeout, reconnect_async=reconnect_async, reconnect_async_wait_sec=reconnect_async_wait_sec)
|
350
|
+
|
351
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 2393, in __stream
|
352
|
+
|
353
|
+
listener.handle_stream(r)
|
354
|
+
|
355
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\streaming.py", line 72, in handle_stream
|
356
|
+
|
357
|
+
self._dispatch(event)
|
358
|
+
|
359
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\streaming.py", line 145, in _dispatch
|
360
|
+
|
361
|
+
handler(payload)
|
362
|
+
|
363
|
+
File "run.py", line 83, in on_update
|
364
|
+
|
365
|
+
subprocess.run(construct_execute_command(f, comment).split(' '))
|
366
|
+
|
367
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 466, in run
|
368
|
+
|
369
|
+
with Popen(*popenargs, **kwargs) as process:
|
370
|
+
|
371
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 769, in __init__
|
372
|
+
|
373
|
+
restore_signals, start_new_session)
|
374
|
+
|
375
|
+
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1172, in _execute_child
|
376
|
+
|
377
|
+
startupinfo)
|
378
|
+
|
379
|
+
PermissionError: [WinError 5] アクセスが拒否されました。
|
326
380
|
|
327
381
|
```
|
3
プリントデバッグ
test
CHANGED
File without changes
|
test
CHANGED
@@ -317,3 +317,11 @@
|
|
317
317
|
PermissionError: [WinError 5] アクセスが拒否されました。
|
318
318
|
|
319
319
|
```
|
320
|
+
|
321
|
+
プリントデバックしています。
|
322
|
+
|
323
|
+
```cmd
|
324
|
+
|
325
|
+
C:\Users\user\Desktop\nicolive-mastodon-1.1.2>python run.py running... ['.'] Traceback (most recent call last): File "run.py", line 127, in <module> runner.run() File "run.py", line 96, in run self.mastodon.stream_local(self) File "<decorator-gen-85>", line 2, in stream_local File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 77, in wrapper return function(self, *args, **kwargs) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 2001, in stream_local return self.__stream('/api/v1/streaming/public/local', listener, run_async=run_async, timeout=timeout, reconnect_async=reconnect_async, reconnect_async_wait_sec=reconnect_async_wait_sec) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\Mastodon.py", line 2393, in __stream listener.handle_stream(r) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\streaming.py", line 72, in handle_stream self._dispatch(event) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\mastodon\streaming.py", line 145, in _dispatch handler(payload) File "run.py", line 83, in on_update subprocess.run(construct_execute_command(f, comment).split(' ')) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 466, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 769, in __init__ restore_signals, start_new_session) File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1172, in _execute_child startupinfo) PermissionError: [WinError 5] アクセスが拒否されました。
|
326
|
+
|
327
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Pythonでマストドンの読み上げプログラムを作っています。以下のコードを実行したところ、今度はパーミッションエラーに悩まされています。これはウインドウズ特有のエラーらしく、管理者権限でコマンドプロンプトを実行したり、Pythonのインストールフォルダなどのアクセス許可を確認したりしましたが、だめでした。UACは下げてあります。
|
1
|
+
Pythonでマストドンの読み上げプログラムを作っています。以下のコードを実行したところ、今度はパーミッションエラーに悩まされています。これはウインドウズ特有のエラーらしく、管理者権限でコマンドプロンプトを実行したり、Pythonのインストールフォルダなどのアクセス許可を確認したりしましたが、だめでした。UACは下げてあります。ファイル属性を読み取り専用から解除しました。
|
2
2
|
|
3
3
|
```Python
|
4
4
|
|
1
誤字の修正、追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Pythonでマストドンの読み上げプログラムを作っています。以下のコードを実行したところ、今度はパーミッションエラーに悩まされています。これはウインドウズ特有のエラーらしく、管理者権限でコマンドプロンプトを実行したり、Pythonのインストールフォルダなどのアクセス許可を
|
1
|
+
Pythonでマストドンの読み上げプログラムを作っています。以下のコードを実行したところ、今度はパーミッションエラーに悩まされています。これはウインドウズ特有のエラーらしく、管理者権限でコマンドプロンプトを実行したり、Pythonのインストールフォルダなどのアクセス許可を確認したりしましたが、だめでした。UACは下げてあります。
|
2
2
|
|
3
3
|
```Python
|
4
4
|
|