>narou co 69 --backtrace
ID:69 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うことになりました。〜未仔ちゃん、ちょっと甘やか しすぎでは?〜 の変換を開始
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/extension.rb:39:in `rename': Invalid argument @ rb_file_s_rename - (T:/小説まんが/小説データ/小説家になろう/n7863fx 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うこ とになりました。/5bd36903bf2cd4df0b32cf537a6476, T:/小説まんが/小説データ/小説家になろう/n7863fx 【書籍化予定】『おっぱ い揉みたい』って叫んだら、妹の友達と付き合うことになりました。/[凪木エコ@F文庫より『おひとり様』発売中] 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うことになりました。〜未仔ちゃん、ちょっと甘やかしすぎでは?〜.txt) (Errno::EINVAL)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/extension.rb:39:in `write'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:404:in `block in convert_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `each_with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `convert_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:52:in `convert'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:236:in `convert_novel_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:159:in `block in main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:133:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/narou.rb:363:in `concurrency_call'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:122:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandline.rb:29:in `run'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandline.rb:43:in `run!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/narou.rb:49:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/bin/narou:13:in `require_relative'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby26-x64/bin/narou:23:in `load'
from C:/Ruby26-x64/bin/narou:23:in `<main>'
だけどnovel.txt.erbのバージョンが上がったのは5年ほど前みたいだから、最近になって初めて出てきたというなら理由はわかりません。
h ttps://github.com/whiteleaf7/narou/commit/da041cb#diff-76ae2d8605226345b0d0d678abbb93cfa848e544537c9e6c2c08a15a4882cea7
一応影響についてはエラー出力してるコードのコメントが参考になると思います。
h ttps://github.com/whiteleaf7/narou/blob/ec1e7233eef8523340771575ba12f5e307578b11/lib/template.rb#L63-L75
> テンプレート内部で使われる変数の変更があった場合に binary_version が上がる
> (変数の追加ではバージョンは上がらない。現在使われている変数の中身が変わった場合は上る)
ttp://(IP) -> /api/list?view_frozen=false&view_nonfrozen=true&_=1610969738748
#<Thread:0x00000000092fd1f0 C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/downloader.rb:762:in `get_latest_table_of_contents': wrong number of arguments (given 0, expected 1) (ArgumentError)
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `each'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `each_with_index'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `update_other_novels'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:242:in `update_general_lastup'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1591:in `block in parse_in_order'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `catch'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `parse_in_order'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1571:in `order!'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1668:in `permute!'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1693:in `parse!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:59:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:140:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandline.rb:29:in `run'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandline.rb:43:in `run!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2021-01-18 20:35:53] ERROR ArgumentError: wrong number of arguments (given 0, expected 1)\n\tC:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
(IP) - - [18/Jan/2021:20:36:01 東京 (標準時)] "POST /api/clear_history HTTP/1.1" 200 0
[06:19:57] Narou.rb version 3.7.0
[06:20:22] 最新話掲載日を確認しています...
[06:20:22] C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/downloader.rb:762:in `get_latest_table_of_contents': wrong number of arguments (given 0, expected 1) (ArgumentError)
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `each'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `each_with_index'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `update_other_novels'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:242:in `update_general_lastup'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:76:in `block in initialize'
[06:20:22] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1591:in `block in parse_in_order'
[06:20:22] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `catch'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `parse_in_order'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1571:in `order!'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1668:in `permute!'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1693:in `parse!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:59:in `execute'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:140:in `execute'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:125:in `execute!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:134:in `execute!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandline.rb:29:in `run'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandline.rb:43:in `run!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/web/web_worker.rb:47:in `block (3 levels) in start'
>Ver.3.7からRuby3系で追加エラー発生
[08:13:07] ID:* * の変換を開始
[08:13:15] Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
[08:13:15] {:uplevel=>1}
[08:13:15] Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
[08:13:15] {:uplevel=>1}
[08:13:15] 縦書用の変換が終了しました
C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
12: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
11: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
10: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
9: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
8: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
7: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
6: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
5: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
4: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
3: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
2: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
1: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
[2021-04-03 14:39:42] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
2.7系だと
C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
12: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
11: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
10: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
9: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
8: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
7: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
6: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
5: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
4: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
3: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
2: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
1: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
[2021-04-03 14:23:35] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2021-04-03 14:18:44] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
{:uplevel=>1}
Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
{:uplevel=>1}
何が起きたのか:
Epubに変換する際、以下のwarningが表示されます。
Epubの出力含めNarou.rbの動作自体に問題はありません。
Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
{:uplevel=>1}
Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
{:uplevel=>1}
Narou.rb のバージョン:
3.7.2
OS のバージョン:
macOS BigSur 11.4(20F71)
何が起きたのか:
小説の更新までは出来るが小説の変換が出来ません
途中で固まってしまう?
再現方法(何をやったら起こったのか詳細に):
WEBUIで変換しようとしたところこうなっていることに気が付きました
具体的にいつから発生していたかはわかりません。ブラウザはSafariですがChromeで試しても不可能でした。
- - [15/Jun/2021:20:55:30 JST] "POST /api/convert HTTP/1.1" 200 0
ttp://192.168.0.4:5678/ -> /api/convert
#<Thread:0x00007fe3212ec2d0@/Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
31: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
30: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/web/appserver.rb:528:in `block (2 levels) in <class:AppServer>'
29: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/commandline.rb:43:in `run!'
28: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/commandline.rb:29:in `run'
27: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:122:in `execute!'
26: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/narou.rb:369:in `concurrency_call'
25: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:123:in `block in execute!'
24: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/commandbase.rb:134:in `execute!'
23: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/commandbase.rb:125:in `execute!'
22: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:133:in `execute'
21: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:152:in `main'
20: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:152:in `each'
19: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:159:in `block in main'
18: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:199:in `convert_novels'
17: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:199:in `with_index'
16: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:199:in `each'
15: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:200:in `block in convert_novels'
14: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/mixin/locker.rb:26:in `lock'
13: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
12: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/command/convert.rb:236:in `convert_novel_main'
11: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:52:in `convert'
10: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:396:in `convert_main'
9: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:652:in `convert_main_for_novel'
8: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:652:in `each_with_index'
7: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:652:in `each'
6: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:657:in `block in convert_main_for_novel'
5: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/novelconverter.rb:461:in `create_novel_text_by_template'
4: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/template.rb:49:in `get'
3: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/template.rb:49:in `each'
2: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/narou-3.7.2/lib/template.rb:53:in `block in get'
1: from /Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/erb.rb:883:in `result'
/Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/erb.rb:881:in `block in result': no implicit conversion of Hash into Integer (TypeError)
[2021-06-15 20:55:34] ERROR TypeError: no implicit conversion of Hash into Integer\n\t/Users/aaaa/.rbenv/versions/2.5.0/lib/ruby/2.5.0/erb.rb:881:in `block in result'
Narou.rb のバージョン:
3.8.0
OS のバージョン:
Windows 10 Home 21H1
何が起きたのか:
ここ数日、エラーが発生し小説データがダウンロードできない。
再現方法(何をやったら起こったのか詳細に):
narouコマンドを実行すると常に下記のエラーが発生し、何もできない。
一度rubyも含めすべて削除&再インストールした直後には動いたりすることもありますがすぐにエラーが発生してしまいます。
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:17: warning: already initialized constant Helper::HOST_OS
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:17: warning: previous definition of HOST_OS was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:18: warning: already initialized constant Helper::FILENAME_LENGTH_LIMIT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:18: warning: previous definition of FILENAME_LENGTH_LIMIT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:19: warning: already initialized constant Helper::FOLDER_LENGTH_LIMIT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:19: warning: previous definition of FOLDER_LENGTH_LIMIT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:98: warning: already initialized constant Helper::HR_TEXT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:98: warning: previous definition of HR_TEXT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:137: warning: already initialized constant Helper::ENTITIES
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:137: warning: previous definition of ENTITIES was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:254: warning: already initialized constant Helper::INTEGER_CLASS
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:254: warning: previous definition of INTEGER_CLASS was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:255: warning: already initialized constant Helper::TYPE_OF_VALUE
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:255: warning: previous definition of TYPE_OF_VALUE was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:454: warning: already initialized constant Helper::CacheLoader::DEFAULT_OPTIONS
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/helper.rb:454: warning: previous definition of DEFAULT_OPTIONS was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:19: warning: already initialized constant Narou::LOCAL_SETTING_DIR_NAME
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:19: warning: previous definition of LOCAL_SETTING_DIR_NAME was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:20: warning: already initialized constant Narou::GLOBAL_SETTING_DIR_NAME
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:20: warning: previous definition of GLOBAL_SETTING_DIR_NAME was here
続き
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:21: warning: already initialized constant Narou::AOZORAEPUB3_JAR_NAME
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:21: warning: previous definition of AOZORAEPUB3_JAR_NAME was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:22: warning: already initialized constant Narou::AOZORAEPUB3_DIR
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:22: warning: previous definition of AOZORAEPUB3_DIR was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:23: warning: already initialized constant Narou::PRESET_DIR
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:23: warning: previous definition of PRESET_DIR was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:24: warning: already initialized constant Narou::MISC_DIR
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:24: warning: previous definition of MISC_DIR was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:25: warning: already initialized constant Narou::LOG_DIR
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:25: warning: previous definition of LOG_DIR was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:26: warning: already initialized constant Narou::GLOBAL_REPLACE_NAME
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:26: warning: previous definition of GLOBAL_REPLACE_NAME was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:27: warning: already initialized constant Narou::EXIT_SUCCESS
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:27: warning: previous definition of EXIT_SUCCESS was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:28: warning: already initialized constant Narou::EXIT_ERROR_CODE
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:28: warning: previous definition of EXIT_ERROR_CODE was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:29: warning: already initialized constant Narou::EXIT_INTERRUPT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:29: warning: previous definition of EXIT_INTERRUPT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:30: warning: already initialized constant Narou::EXIT_REQUEST_REBOOT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:30: warning: previous definition of EXIT_REQUEST_REBOOT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:31: warning: already initialized constant Narou::MODIFIED_TAG
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:31: warning: previous definition of MODIFIED_TAG was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:32: warning: already initialized constant Narou::LINE_HEIGHT_DEFAULT
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:32: warning: previous definition of LINE_HEIGHT_DEFAULT was here
C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:34: warning: already initialized constant Narou::UPDATE_SORT_KEYS
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:34: warning: previous definition of UPDATE_SORT_KEYS was here
最後
C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:99:in `block (2 levels) in memoize': Already memoized root_dir (Memoist::AlreadyMemoizedError)
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:27:in `class_eval'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:27:in `memoist_eval'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:95:in `block in memoize'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:91:in `each'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/memoist-0.11.0/lib/memoist.rb:91:in `memoize'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:68:in `singleton class'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:41:in `<module:Narou>'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/narou.rb:18:in `<top (required)>'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/inventory.rb:9:in `require_relative'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/inventory.rb:9:in `<top (required)>'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/command/alias.rb:7:in `require_relative'
from C:/tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/command/alias.rb:7:in `<top (required)>'
from <internal:C:/Tools/Ruby30/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/Tools/Ruby30/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/command.rb:9:in `block in <top (required)>'
from <internal:dir>:134:in `glob'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/command.rb:8:in `<top (required)>'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/commandline.rb:8:in `require_relative'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/commandline.rb:8:in `<top (required)>'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/narou.rb:47:in `require_relative'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/narou.rb:47:in `<top (required)>'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/bin/narou:13:in `require_relative'
from C:/Tools/Ruby30/lib/ruby/gems/3.0.0/gems/narou-3.8.0/bin/narou:13:in `<top (required)>'
from C:/tools/Ruby30/bin/narou:23:in `load'
from C:/tools/Ruby30/bin/narou:23:in `<main>'
#<Thread:0x00000000045cb558@C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
20: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/web/web_worker.rb:47:in `block (3 levels) in start'
19: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/web/appserver.rb:539:in `block (2 levels) in <class:AppServer>'
18: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/commandline.rb:43:in `run!'
17: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/commandline.rb:29:in `run'
16: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/commandbase.rb:134:in `execute!'
15: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/commandbase.rb:125:in `execute!'
14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/command/download.rb:110:in `execute'
13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/command/download.rb:110:in `with_index'
12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/command/download.rb:110:in `each'
11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/command/download.rb:142:in `block in execute'
10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/downloader.rb:332:in `start_download'
9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/downloader.rb:362:in `run_download'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/downloader.rb:1294:in `init_novel_dir'
7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/downloader.rb:1294:in `each'
6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/downloader.rb:1304:in `block in init_novel_dir'
5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:31:in `write'
4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:49:in `get'
3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:49:in `each'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:53:in `block in get'
1: from C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:874:in `result'
C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:872:in `block in result': no implicit conversion of Hash into Integer (TypeError)
[2021-07-17 15:19:27] ERROR TypeError: no implicit conversion of Hash into Integer\n\tC:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:874:in `result'