以下、--backtraceを付けた場合のエラー
C:\Users\A\narou>narou u 695 --backtrace
C:/Ruby22/lib/ruby/2.2.0/psych.rb:370:in `parse': (C:/Users/A/narou/小説デー タ/小説家になろう/n1714bn いっぺん死んで人生やり直せ/toc.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:370:in `parse_stream'
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:318:in `parse'
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:245:in `load'
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:464:in `block in load_file'
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:464:in `open'
from C:/Ruby22/lib/ruby/2.2.0/psych.rb:464:in `load_file'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/downloader.rb:1239:in `load_novel_data'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/downloader.rb:331:in `load_toc_file'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/downloader.rb:338:in `run_download'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/downloader.rb:322:in `start_download'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/command/update.rb:193:in `block (2 levels) in execute'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/command/update.rb:168:in `each'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/command/update.rb:168:in `block in execute'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/narou_logger.rb:81:in `call'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/narou_logger.rb:81:in `capture'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/command/update.rb:167:in `execute'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/commandline.rb:46:in `run'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/narou.rb:52:in `block in <top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/lib/backtracer.rb:16:in `capture'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/narou.rb:51:in `<top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/bin/narou:10:in `require_relative'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/narou-3.1.11/bin/narou:10:in `<top (required)>'
from C:/Ruby22/bin/narou:22:in `load'
from C:/Ruby22/bin/narou:22:in `<main>'
>>11
C:/Ruby22/lib/ruby/2.2.0/psych.rb:370:in `parse': (C:/Users/A/narou/小説デー タ/小説家になろう/n1714bn いっぺん死んで人生やり直せ/toc.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
C:\kindle\down>java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
再現方法(何をやったら起こったのか詳細に):
user:MyNovel user$ narou c 137 --verbose
ID:137 お茶目クール系TS美少女を極めてたら告られた件 の変換を開始
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:2件、警告:0件、INFO:2件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.........
--------
変換開始 : /Users/user/Documents/MyNovel/小説データ/ハーメルン/136452 お茶目クール系TS美少女を極めてたら告られた件/[ロンドベル] お茶目クール系TS美少女を極めてたら告られた件.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:968)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException
at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
at com.github.hmdev.image.ImageUtils.readImage(ImageUtils.java:107)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:152)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1032)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:909)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 8 more
pid 704 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
以下、トレース内容
--- 2018/04/04 10:51:47 ---
C:/Ruby23/bin/narou d [カクヨムの小説URL]
C:/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError)
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect'
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:852:in `start'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:717:in `open'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:35:in `open'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/downloader.rb:699:in `get_toc_source'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/downloader.rb:734:in `get_latest_table_of_contents'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/downloader.rb:339:in `run_download'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/downloader.rb:322:in `start_download'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/command/download.rb:133:in `block in execute'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/command/download.rb:101:in `each'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/command/download.rb:101:in `with_index'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/command/download.rb:101:in `execute'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/commandline.rb:46:in `run'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/narou.rb:52:in `block in <top (required)>'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/lib/backtracer.rb:16:in `capture'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/narou.rb:51:in `<top (required)>'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/bin/narou:10:in `require_relative'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.1.11/bin/narou:10:in `<top (required)>'
from C:/Ruby23/bin/narou:22:in `load'
from C:/Ruby23/bin/narou:22:in `<main>'
バックアップを作成しています.....C:/Ruby25/lib/ruby/gems/2.5.0/gems/rubyzip-1.2.1/lib/zip/file.rb:396:in `check_entry_exists': add failed. Entry raw/1177354054885566638 侵攻_.html already exists (Zip::EntryExistsError)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/rubyzip-1.2.1/lib/zip/file.rb:270:in `add'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:54:in `block (2 levels) in create_backup'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:47:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:47:in `block in create_backup'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/rubyzip-1.2.1/lib/zip/file.rb:101:in `open'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:46:in `create_backup'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:84:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:83:in `tap'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:83:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:69:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:69:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/backup.rb:69:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/commandbase.rb:107:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/commandbase.rb:115:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/downloader.rb:499:in `block in process_digest'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/downloader.rb:478:in `loop'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/downloader.rb:478:in `process_digest'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/downloader.rb:369:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/downloader.rb:322:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/update.rb:193:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/update.rb:168:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/update.rb:168:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/narou_logger.rb:81:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/command/update.rb:167:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/narou.rb:52:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/narou.rb:51:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/bin/narou:10:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.1.11/bin/narou:10:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
おそらく同じファイル名になってしまうのは raw フォルダ内だけだと思うので(他のはIDが振られるので同じ名前にならない)、
raw フォルダをまるごと消すか、同じファイル名になってしまってるファイルを直接消すと解決するものと思われます。(対症療法)
raw フォルダ自体は特にシステムに必要なファイルではないのでサクサク消して良いです。
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/downloader.rb:54:in `initialize': 指定のID(176)は存在しません (Downloader::InvalidTarget)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:184:in `new'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:184:in `block (2 levels) in execute'
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/downloader.rb:54:in `initialize': 指定のID(176)は存在しません (Downloader::InvalidTarget)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:184:in `new'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:184:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/narou_logger.rb:81:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:167:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
narou convert 24
ID:24 田中のアトリエ 〜年齢イコール彼女いない歴の錬金術師〜 の変換を開始
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:2件、INFO:4件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.......
--------
変換開始 : C:\Users\ryogi\Pictures\MANGA\novel\小説データ\小説家になろう\n2662ca 田中のアトリエ 〜年齢イコール彼女いな い歴の錬金術師〜\[金髪ロリ文庫] 田中のアトリエ 〜年齢イコール彼女いない歴の錬金術師〜.txt
[INFO] 濁点フォント利用 (22011) : あ゛
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:968)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException
at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
at com.github.hmdev.image.ImageUtils.readImage(ImageUtils.java:107)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:152)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1032)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:909)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
pid 17864 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
C:/Prog/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)
from C:/Prog/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect'
from C:/Prog/Ruby23/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from C:/Prog/Ruby23/lib/ruby/2.3.0/net/http.rb:852:in `start'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:717:in `open'
from C:/Prog/Ruby23/lib/ruby/2.3.0/open-uri.rb:35:in `open'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:58:in `request_api'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:51:in `block in request'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:49:in `each'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:49:in `each_slice'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:49:in `with_index'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/narou/api.rb:49:in `request'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update/general_lastup_updater.rb:39:in `block in update_narou_novels'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update/general_lastup_updater.rb:37:in `each'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update/general_lastup_updater.rb:37:in `update_narou_novels'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update.rb:294:in `update_general_lastup'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update.rb:86:in `block in initialize'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1547:in `block in parse_in_order'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1534:in `catch'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1534:in `parse_in_order'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1528:in `order!'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1620:in `permute!'
from C:/Prog/Ruby23/lib/ruby/2.3.0/optparse.rb:1642:in `parse!'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/commandbase.rb:43:in `execute'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/command/update.rb:150:in `execute'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/commandline.rb:46:in `run'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/narou.rb:48:in `block in <top (required)>'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/lib/backtracer.rb:16:in `capture'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/narou.rb:47:in `<top (required)>'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/bin/narou:10:in `require_relative'
from C:/Prog/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.2.0.1/bin/narou:10:in `<top (required)>'
from C:/Prog/Ruby23/bin/narou:22:in `load'
from C:/Prog/Ruby23/bin/narou:22:in `<main>'
OS のバージョン:Windows10 64bit
以下ログ
c:\MyNovel>narou web
C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse': (c:/MyNovel/.narou/database.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse_stream'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:350:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:263:in `load'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:498:in `block in load_file'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `open'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `load_file'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:52:in `rescue in block in init'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:45:in `block in init'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/helper.rb:476:in `block in memo'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/helper.rb:469:in `synchronize'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/helper.rb:469:in `memo'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:44:in `init'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:22:in `block in load'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:20:in `tap'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/inventory.rb:20:in `load'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/database.rb:28:in `refresh'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/database.rb:24:in `initialize'
from C:/Ruby25/lib/ruby/2.5.0/singleton.rb:141:in `new'
from C:/Ruby25/lib/ruby/2.5.0/singleton.rb:141:in `block in instance'
from C:/Ruby25/lib/ruby/2.5.0/singleton.rb:139:in `synchronize'
from C:/Ruby25/lib/ruby/2.5.0/singleton.rb:139:in `instance'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/downloader.rb:242:in `<class:Downloader>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/downloader.rb:22:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/backup.rb:7:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/backup.rb:7:in `<top (required)>'
from C:/Ruby25/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from C:/Ruby25/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command.rb:9:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command.rb:8:in `glob'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command.rb:8:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandline.rb:7:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandline.rb:7:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:45:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:45:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/novelconverter.rb:33:in `extensions_of_converted_files': undefined
method `ebook_file_ext' for nil:NilClass (NoMethodError)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:198:in `block in convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:181:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:181:in `with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:181:in `convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:162:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:155:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/convert.rb:155:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandbase.rb:107:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandbase.rb:115:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:222:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:168:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/narou_logger.rb:81:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/command/update.rb:167:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.0.1/bin/narou:10:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
def self.extensions_of_converted_files(device)
exts = [".txt"]
# if device&.kobo?
if device.kobo?
exts.push(device.ebook_file_ext)
else
# exts.push(".epub", device&.ebook_file_ext)
exts.push(".epub", device.ebook_file_ext)
end
exts.compact
end
narou convert (対象の小説)の実行結果(kepub.epub):
>> Kobo用に変換します
/var/lib/gems/2.5.0/gems/narou-3.2.2/lib/novelconverter.rb:360:in `clean_up_temp_files': undefined method `each' for nil:NilClass (NoMethodError)
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:200:in `block (2 levels) in convert_novels'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:198:in `each'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:198:in `block in convert_novels'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:181:in `each'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:181:in `with_index'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:181:in `convert_novels'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:162:in `block in execute'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:155:in `each'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/command/convert.rb:155:in `execute'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/commandline.rb:46:in `run'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/narou.rb:48:in `block in <top (required)>'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/lib/backtracer.rb:16:in `capture'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/narou.rb:47:in `<top (required)>'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/bin/narou:13:in `require_relative'
from /var/lib/gems/2.5.0/gems/narou-3.2.2/bin/narou:13:in `<top (required)>'
from /usr/local/bin/narou:23:in `load'
from /usr/local/bin/narou:23:in `<main>'
Narou.rb のバージョン:Narou.rb version 3.2.3
OS のバージョン:Windows 10 Pro
その他環境情報(任意):ruby 2.5.1p57
何が起きたのか:[蜘蛛ですが、なにか?]の変換に失敗します。
再現方法(何をやったら起こったのか詳細に):
WEB UI上から失敗しましたので、コマンドも試しましたが下記の通りエラーになりました。
narou --backtrace convert n7975cr
ID:2661 蜘蛛ですが、なにか? の変換を開始
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:183:in `block in countup_return_in_brackets': undefined method `scan' for #<Array:0x03910428> (NoMethodError)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:182:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/inspector.rb:182:in `countup_return_in_brackets'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:723:in `inspect_novel'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:394:in `convert_main'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/novelconverter.rb:51:in `convert'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:208:in `block in convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:181:in `convert_novels'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:162:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:155:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/command/convert.rb:155:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.3/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
※ Narou.rb version 3.1.11 の環境が別PCに残っていたので試したところ、そちらでは変換に成功しました。
C:/Ruby25/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect': Failed to open TCP connection to ncode.syosetu.com:443 (A connectio
n attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connec
ted host has failed to respond. - connect(2) for "ncode.syosetu.com" port 443) (Errno::ETIMEDOUT)
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:936:in `block in connect'
from C:/Ruby25/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
from C:/Ruby25/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:935:in `connect'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
from C:/Ruby25/lib/ruby/2.5.0/net/http.rb:909:in `start'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:337:in `open_http'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:755:in `buffer_open'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:226:in `block in open_loop'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:224:in `catch'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:224:in `open_loop'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:165:in `open_uri'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:735:in `open'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:35:in `open'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:711:in `get_toc_source'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:746:in `get_latest_table_of_contents'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:339:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/downloader.rb:322:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:193:in `block (2 levels) in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:168:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/narou_logger.rb:81:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/command/update.rb:167:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.4/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse': (I:/webssdl/mail_setting.yaml): did not find expected key while parsing a block mapping at line 27 column 1 (Psych::SyntaxError)
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse_stream'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:350:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:263:in `load'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:498:in `block in load_file'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `open'
from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `load_file'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/mailer.rb:25:in `create'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/command/mail.rb:48:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/commandline.rb:46:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/narou.rb:48:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/narou.rb:47:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.2.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>
再現方法(何をやったら起こったのか詳細に):
[2018-11-09 19:25:42] INFO WEBrick 1.4.2
[2018-11-09 19:25:42] INFO ruby 2.5.3 (2018-10-18) [x64-mingw32]
== Sinatra (v1.4.8) has taken the stage on 53302 for production with backup from WEBrick
[2018-11-09 19:25:42] INFO WEBrick::HTTPServer#start: pid=6952 port=53302
指定されたプログラムは実行できません。
以降何も進まなくなりました。
NASにフォルダを置いて、なにも問題なく使っていましたが、突然こうなりました。
rubyとnarou rbを入れ直したが変わりませんでした。
コマンドプロプトでの小説アップデートなどは出来、kindleへの送信も出来ました。
心当たりはOSビルドが上がったことくらいなので、ロールバックがまだできるなら、やってきます
内容:
E:\Nv\narou>narou u 12037 --backtrace
ID:12037 【くる ひなた】寮母さんには敵わないっ! のDL開始
C:/Ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): https://ncode.syosetu.com/txtdownload/dlstart/ncode/<li><a href="https://ncode.syosetu.com/txtdownload/top/ncode/(?<tcode>\d+?)/" onclick/?no=12 (URI::InvalidURIError)
from C:/Ruby25/lib/ruby/2.5.0/uri/rfc3986_parser.rb:73:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/uri/common.rb:237:in `parse'
from C:/Ruby25/lib/ruby/2.5.0/open-uri.rb:34:in `open'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:1142:in `download_raw_data'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:1092:in `a_section_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:988:in `sections_download_and_save'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:390:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/downloader.rb:332:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:182:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/command/update.rb:157:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandline.rb:29:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/commandline.rb:43:in `run!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/narou.rb:49:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.3.2/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
ID:118 気に入った幼女を悟られぬよう罠に嵌めて借金地獄にし奴隷落ちした所を颯爽と買いマッチポンプ的方法で自分のものにしたのに「私の事は家族だと思って」とか言って幼女の尊敬を集めその日の内に純愛ックスする百合 のDL開始
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:1085:in `a_section_download': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each'
D:\mynovels>narou trace
--- 2018/12/18 20:50:27 ---
C:/Ruby24-x64/bin/narou u
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:1085:in `a_section_download': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `each_with_index'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:988:in `sections_download_and_save'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:390:in `run_download'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/downloader.rb:332:in `start_download'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:182:in `block in execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `each'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/command/update.rb:157:in `execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandline.rb:29:in `run'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/commandline.rb:43:in `run!'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/narou.rb:49:in `<top (required)>'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/bin/narou:13:in `require_relative'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/narou-3.4.0/bin/narou:13:in `<top (required)>'
from C:/Ruby24-x64/bin/narou:23:in `load'
from C:/Ruby24-x64/bin/narou:23:in `<main>'
/Users/(ユーザ名)/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/narou-3.4.2/lib/sitesetting.rb:28: warning: use glob patterns list instead of nul-separated patterns
エラーメッセージ1:
$ narou convert --backtrace 158
>> Kindle用に変換します
ID:158 裏切られたSランク冒険者の俺は、愛する奴隷の彼女らと共に奴隷だけのハーレムギルドを作る(旧題:Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る) の変換を開始
#<Thread:0x0000561893e566c0@/var/lib/gems/2.5.0/gems/narou-3.4.2/lib/worker.rb:48 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
21: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/worker.rb:49:in `block (3 levels) in start'
20: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:123:in `block in execute!'
19: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:134:in `execute!'
18: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:125:in `execute!'
17: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:133:in `execute'
16: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:152:in `main'
15: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:152:in `each'
14: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:159:in `block in main'
13: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `convert_novels'
12: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `with_index'
11: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `each'
10: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:200:in `block in convert_novels'
9: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/mixin/locker.rb:26:in `lock'
8: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
7: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:236:in `convert_novel_main'
6: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:52:in `convert'
5: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `convert_main'
4: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `each_with_index'
3: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `each'
2: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:404:in `block in convert_main'
1: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:39:in `write'
/var/lib/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:39:in `rename': File name too long @ rb_file_s_rename - (/home/xxxxxxxxxxxxxxxxx/Novel/小説データ/ノクターンノベルズ/n8258et Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る/2d61a57ad63622875d689ba1d2cf2c, /home/xxxxxxxxxxxxxxxxx/Novel/小説データ/ノクターンノベルズ/n8258et Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る/[柊咲] 裏切られたSランク冒険者の俺は、愛する奴隷の彼女らと共に奴隷だけのハーレムギルドを作る(旧題:Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る).txt) (Errno::ENAMETOOLONG)
エラーメッセージ2:
Traceback (most recent call last):
20: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/worker.rb:49:in `block (3 levels) in start'
19: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:123:in `block in execute!'
18: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:134:in `execute!'
17: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:125:in `execute!'
16: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:133:in `execute'
15: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:152:in `main'
14: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:152:in `each'
13: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:159:in `block in main'
12: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `convert_novels'
11: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `with_index'
10: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:199:in `each'
9: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:200:in `block in convert_novels'
8: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/mixin/locker.rb:26:in `lock'
7: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
6: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/command/convert.rb:236:in `convert_novel_main'
5: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:52:in `convert'
4: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `convert_main'
3: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `each_with_index'
2: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:402:in `each'
1: from /var/lib/gems/2.5.0/gems/narou-3.4.2/lib/novelconverter.rb:404:in `block in convert_main'
/var/lib/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:39:in `write': File name too long @ rb_file_s_rename - (/home/xxxxxxxxxxxxxxxxx/Novel/小説データ/ノクターンノベルズ/n8258et Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る/2d61a57ad63622875d689ba1d2cf2c, /home/xxxxxxxxxxxxxxxxx/Novel/小説データ/ノクターンノベルズ/n8258et Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る/[柊咲] 裏切られたSランク冒険者の俺は、愛する奴隷の彼女らと共に奴隷だけのハーレムギルドを作る(旧題:Sランク冒険者の俺は奴隷の彼女らと共に、奴隷だけのハーレムギルドを作る).txt) (Errno::ENAMETOOLONG)
#<Thread:0x00000000127132b8@C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/l
ib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is t
rue):
Traceback (most recent call last):
17: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/web/web_
worker.rb:47:in `block (3 levels) in start'
16: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/web/apps
erver.rb:839:in `block (2 levels) in <class:AppServer>'
15: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandl
ine.rb:43:in `run!'
14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandl
ine.rb:29:in `run'
13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandb
ase.rb:134:in `execute!'
12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandb
ase.rb:125:in `execute!'
11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/
download.rb:110:in `execute'
10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/
download.rb:110:in `with_index'
9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/
download.rb:110:in `each'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/
download.rb:142:in `block in execute'
7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/download
er.rb:332:in `start_download'
6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/download
er.rb:362:in `run_download'
5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/download
er.rb:1292:in `init_novel_dir'
4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/download
er.rb:1292:in `each'
3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/download
er.rb:1302:in `block in init_novel_dir'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/template
.rb:33:in `write'
1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/extensio
n.rb:35:in `write'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:35:in `write
': No such file or directory @ rb_sysopen - H:/novel/小説データ/小説家になろう/n
4114fk 華麗なるオルレリアの謙虚なる転身 Histoire Merveilleuse de /79362a6b1a57f2
9aaaf4c86c567fc1 (Errno::ENOENT)
[2019-04-18 12:32:59] ERROR Errno::ENOENT: No such file or directory @ rb_sysope
n - H:/novel/小説データ/小説家になろう/n4114fk 華麗なるオルレリアの謙虚なる転身
Histoire Merveilleuse de /79362a6b1a57f29aaaf4c86c567fc1\n\tC:/Ruby25-x64/lib/ru
by/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:35:in `write'
D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:35:in `write': No such file or directory @ rb_sysopen - D:/novel/小説データ/小説家になろう/n0680fm 銀砂の港の策士たち-tacticians in a harbor fronting /e6f01d3b513be228798c1a5d5eb3a1 (Errno::ENOENT)
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/extension.rb:35:in `write'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/template.rb:33:in `write'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/downloader.rb:1302:in `block in init_novel_dir'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/downloader.rb:1292:in `each'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/downloader.rb:1292:in `init_novel_dir'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/downloader.rb:362:in `run_download'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/downloader.rb:332:in `start_download'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/download.rb:142:in `block in execute'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/download.rb:110:in `each'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/download.rb:110:in `with_index'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/command/download.rb:110:in `execute'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:125:in `execute!'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandbase.rb:134:in `execute!'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandline.rb:29:in `run'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/commandline.rb:43:in `run!'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/narou.rb:50:in `block in <top (required)>'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/lib/backtracer.rb:16:in `capture'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/narou.rb:49:in `<top (required)>'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/bin/narou:13:in `require_relative'
from D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.4.2/bin/narou:13:in `<top (required)>'
from D:/Ruby25-x64/bin/narou:23:in `load'
from D:/Ruby25-x64/bin/narou:23:in `<main>'
OSはWindow10でNarou.rbのバージョン3.4.3にて
SendをしてもKindlePWにファイルが送られないです。
3.4.2の時は発生しておらずバージョンアップしたら発生するようになりました。
log/**__convert.txtには送られるファイルの数だけ下のエラー文があります
このPsych::SyntaxErrorはRubyが壊れて発生してるんですかね?
[05:39:13] C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse': (D:/MyNovel/.narou/lock.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:402:in `parse_stream'
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:350:in `parse'
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:263:in `load'
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:498:in `block in load_file'
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `open'
[05:39:13] from C:/Ruby25/lib/ruby/2.5.0/psych.rb:497:in `load_file'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:53:in `rescue in block in init'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:46:in `block in init'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/helper.rb:497:in `block in memo'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/helper.rb:490:in `synchronize'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/helper.rb:490:in `memo'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:45:in `init'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:23:in `block in load'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:21:in `tap'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/inventory.rb:21:in `load'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/mixin/locker.rb:21:in `lock'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:200:in `block in convert_novels'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:199:in `each'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:199:in `with_index'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:199:in `convert_novels'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:159:in `block in main'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:152:in `each'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:152:in `main'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:133:in `execute'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/commandbase.rb:125:in `execute!'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/commandbase.rb:134:in `execute!'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/command/convert.rb:123:in `block in execute!'
[05:39:13] from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.4.3/lib/worker.rb:49:in `block (3 levels) in start'
C:/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError)
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:933:in `connect'
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from C:/Ruby23/lib/ruby/2.3.0/net/http.rb:852:in `start'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:717:in `open'
from C:/Ruby23/lib/ruby/2.3.0/open-uri.rb:35:in `open'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/downloader.rb:728:in `get_toc_source'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/downloader.rb:763:in `get_latest_table_of_contents'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/downloader.rb:349:in `run_download'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/command/download.rb:142:in `block in execute'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/command/download.rb:110:in `each'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/command/download.rb:110:in `with_index'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/command/download.rb:110:in `execute'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/commandline.rb:29:in `run'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/commandline.rb:43:in `run!'
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/web/appserver.rb:539:in `block (2 levels) in '
from C:/Ruby23/lib/ruby/gems/2.3.0/gems/narou-3.4.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
・起動時のコンソール表示は以下です。
[2019-11-24 10:44:05] INFO WEBrick 1.5.0
[2019-11-24 10:44:05] INFO ruby 2.6.5 (2019-10-01) [x64-mingw32]
== Sinatra (v1.4.8) has taken the stage on 58660 for production with backup from WEBrick
[2019-11-24 10:44:05] INFO WEBrick::HTTPServer#start: pid=11620 port=58660
== Sinatra has ended his set (crowd applauds)
[2019-11-24 10:46:24] INFO going to shutdown ...
[2019-11-24 10:46:24] INFO WEBrick::HTTPServer#start done.
・データに問題があるのかと思い、新しくフォルダを初期化したうえで試しましたが、起動しませんでした。
・narou traceでは直前のバックトレースがありませんでした。
・narou web --backtraceで起動しても、同様にバックトレースが出力されませんでした。
正しくは以下です。
[2019-11-24 11:43:12] INFO WEBrick 1.5.0
[2019-11-24 11:43:12] INFO ruby 2.6.5 (2019-10-01) [x64-mingw32]
== Sinatra (v1.4.8) has taken the stage on 58660 for production with backup from WEBrick
[2019-11-24 11:43:12] INFO WEBrick::HTTPServer#start: pid=10324 port=58660
Traceback (most recent call last):
15: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
14: from <internal:gem_prelude>:2:in `require'
13: from C:/tools/ruby26/lib/ruby/2.6.0/rubygems.rb:1375:in `<top (required)>'
12: from C:/tools/ruby26/lib/ruby/2.6.0/rubygems.rb:1375:in `require'
11: from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/defaults/operating_system.rb:3:in `<top (required)>'
10: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/singleton.rb:27:in `enable_dll_search_paths'
9: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb:99:in `enable_dll_search_paths'
8: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb:89:in `mingw_bin_path'
7: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb:76:in `msys_path'
6: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb:48:in `iterate_msys_paths'
5: from C:/tools/ruby26/lib/ruby/2.6.0/win32/registry.rb:542:in `open'
4: from C:/tools/ruby26/lib/ruby/2.6.0/win32/registry.rb:435:in `open'
3: from C:/tools/ruby26/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/msys2_installation.rb:49:in `block in iterate_msys_paths'
2: from C:/tools/ruby26/lib/ruby/2.6.0/win32/registry.rb:611:in `each_key'
1: from C:/tools/ruby26/lib/ruby/2.6.0/win32/registry.rb:910:in `export_string'
C:/tools/ruby26/lib/ruby/2.6.0/win32/registry.rb:910:in `encode': U+00AE to Windows-31J in conversion from UTF-16LE to UTF-8 to Windows-31J (Encoding::UndefinedConversionError)
narou webのUPDATEで下記ページの読み込みでエラーになりました。
#<Thread:0x00000000065f3650@C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/web/web_worker.rb:47:in `block (3 levels) in start'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `execute'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each_with_index'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:182:in `block in execute'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/downloader.rb:332:in `start_download'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/downloader.rb:348:in `run_download'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/downloader.rb:341:in `load_toc_file'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/downloader.rb:1270:in `load_novel_data'
6: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:577:in `load_file'
5: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:577:in `open'
4: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:578:in `block in load_file'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:277:in `load'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:390:in `parse'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse': (C:/MyNovel/小説データ/小説家になろう/n5529cy 老後に備えて異世界で8万枚の金貨を貯めます/toc.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
[2020-01-19 22:08:38] ERROR Psych::SyntaxError: (C:/MyNovel/小説データ/小説家になろう/n5529cy 老後に備えて異世界で8万枚の金貨を貯めます/toc.yaml): control characters are not allowed at line 1 column 1\n\tC:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse': (C:/Users/hide/.narou/lock.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:390:in `parse'
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:277:in `load'
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:578:in `block in load_file'
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:577:in `open'
from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:577:in `load_file'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:53:in `rescue in block in init'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:46:in `block in init'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:497:in `block in memo'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:490:in `synchronize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:490:in `memo'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:45:in `init'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:23:in `block in load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:21:in `tap'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:21:in `load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/mixin/locker.rb:21:in `lock'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:159:in `block in main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:152:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:152:in `main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:133:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:134:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/narou.rb:363:in `concurrency_call'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:122:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:212:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:134:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandline.rb:29:in `run'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandline.rb:43:in `run!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/narou.rb:50:in `block in <top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/backtracer.rb:16:in `capture'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/narou.rb:49:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/bin/narou:13:in `require_relative'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/bin/narou:13:in `<top (required)>'
from C:/Ruby26-x64/bin/narou:23:in `load'
from C:/Ruby26-x64/bin/narou:23:in `<main>'
と出ます。
WEB UIサーバを再起動しても直りませんでした。
WEB UIから登録してある小説を更新してみたところコンソールには
Traceback (most recent call last):
32: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/web/web_worker.rb:47:in `block (3 levels) in start'
31: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
30: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
29: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `execute'
28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each_with_index'
27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:157:in `each'
26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/update.rb:212:in `block in execute'
25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:122:in `execute!'
24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/narou.rb:363:in `concurrency_call'
23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:123:in `block in execute!'
22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:134:in `execute!'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:133:in `execute'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:152:in `main'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:152:in `each'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:159:in `block in main'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `convert_novels'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `with_index'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:199:in `each'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/command/convert.rb:200:in `block in convert_novels'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/mixin/locker.rb:21:in `lock'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:21:in `load'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:21:in `tap'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:23:in `block in load'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:45:in `init'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:490:in `memo'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:490:in `synchronize'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/helper.rb:497:in `block in memo'
4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.4.8/lib/inventory.rb:47:in `block in init'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:277:in `load'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:390:in `parse'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
C:/Ruby26-x64/lib/ruby/2.6.0/psych.rb:456:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
と出ます。知識がないので長々とすみません
D:\narou_test>narou d n7565bp --backtrace
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/helper.rb:496: warning: Using the last argument as keyword parameters is deprecated
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/helper.rb:496: warning: Using the last argument as keyword parameters is deprecated
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/sitesetting.rb:28:in `glob': nul-separated glob pattern is deprecated (ArgumentError)
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/sitesetting.rb:28:in `load_settings'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/sitesetting.rb:48:in `settings'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/sitesetting.rb:52:in `narou'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/downloader.rb:185:in `get_toc_url'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/downloader.rb:70:in `get_sitesetting_by_target'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/downloader.rb:50:in `initialize'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/command/download.rb:136:in `new'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/command/download.rb:136:in `block in execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/command/download.rb:110:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/command/download.rb:110:in `with_index'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/command/download.rb:110:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/commandbase.rb:125:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/commandbase.rb:134:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/commandline.rb:29:in `run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/commandline.rb:43:in `run!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/narou.rb:50:in `block in <top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/lib/backtracer.rb:16:in `capture'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/narou.rb:49:in `<top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/bin/narou:13:in `require_relative'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.4.8/bin/narou:13:in `<top (required)>'
from C:/Ruby27-x64/bin/narou:23:in `load'
from C:/Ruby27-x64/bin/narou:23:in `<main>'
再現方法(何をやったら起こったのか詳細に):
3.4.8から3.5.0.1にバージョンアップしたあとに、Narou.rbが再起動して
その後にボタンを押したらなりました。下記のエラーです。
Narou.rb version 3.5.0.1
最新話掲載日を確認しています...
C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:57:in `request_api': private method `open' called for URI:Module (NoMethodError)
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:50:in `block in request'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:48:in `each'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:48:in `each_slice'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:48:in `with_index'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/narou/api.rb:48:in `request'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update/general_lastup_updater.rb:40:in `block in update_narou_novels'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update/general_lastup_updater.rb:38:in `each'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update/general_lastup_updater.rb:38:in `update_narou_novels'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update.rb:239:in `update_general_lastup'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1552:in `block in parse_in_order'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1538:in `catch'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1538:in `parse_in_order'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1532:in `order!'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1626:in `permute!'
from C:/Ruby24/lib/ruby/2.4.0/optparse.rb:1648:in `parse!'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/commandbase.rb:59:in `execute'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/command/update.rb:140:in `execute'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/commandline.rb:29:in `run'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/commandline.rb:43:in `run!'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/web/appserver.rb:791:in `block (2 levels) in '
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/narou-3.5.0.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
再現方法(何をやったら起こったのか詳細に):
3.5.0.1 から、3.5.1 へバージョンアップしたと後に、
最新話掲載日を確認するとエラーになります。
---
D:\Win_AP\Narou.rb\MyNovel>narou u --gl narou --backtrace
最新話掲載日を確認しています...
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update/general_lastup_updater.rb:28:in `block in prepare': undefined method `[]' for nil:NilClass (NoMethodError)
from C:/Ruby27-x64/lib/ruby/2.7.0/forwardable.rb:235:in `each_key'
from C:/Ruby27-x64/lib/ruby/2.7.0/forwardable.rb:235:in `each_key'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update/general_lastup_updater.rb:25:in `prepare'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update/general_lastup_updater.rb:17:in `initialize'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update.rb:238:in `new'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update.rb:238:in `update_general_lastup'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1589:in `block in parse_in_order'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1575:in `catch'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1575:in `parse_in_order'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1569:in `order!'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1666:in `permute!'
from C:/Ruby27-x64/lib/ruby/2.7.0/optparse.rb:1691:in `parse!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:59:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/update.rb:140:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandline.rb:29:in `run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandline.rb:43:in `run!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/narou.rb:49:in `<top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/bin/narou:13:in `require_relative'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby27-x64/bin/narou:23:in `load'
from C:/Ruby27-x64/bin/narou:23:in `<main>'
---
ID:0 転生したらスライムだった件 の変換を開始
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:83件、INFO:2件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
変換開始 : /Users/%ユーザー名%/book/小説データ/小説家になろう/n6316bn 転生したらスライムだった件/[伏瀬] 転生したらスライムだった件.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:968)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException
at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
at com.github.hmdev.image.ImageUtils.readImage(ImageUtils.java:107)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:152)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1032)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:909)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 8 more
pid 2076 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
小説の保存フォルダを開きますか (y/n)?: n
narou u 1759 --backtrace
C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:885:in `block in update_body_check'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:831:in `select'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:831:in `update_body_check'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:370:in `run_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/command/update.rb:182:in `block in execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/command/update.rb:157:in `each'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/command/update.rb:157:in `execute'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/commandline.rb:29:in `run'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/commandline.rb:43:in `run!'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/narou.rb:49:in `<top (required)>'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/bin/narou:13:in `require_relative'
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/narou-3.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby25/bin/narou:23:in `load'
from C:/Ruby25/bin/narou:23:in `<main>'
C:\MyNovel>narou trace
--- 2020/06/22 09:11:27 ---
C:/Ruby27-x64/bin/narou web --boot
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/web/web-socket-ruby/lib/web_socket.rb:466:in `initialize': Permission denied - bind(2) for "192.168.100.12" port 56083 (Errno::EACCES)
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/web/web-socket-ruby/lib/web_socket.rb:466:in `open'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/web/web-socket-ruby/lib/web_socket.rb:466:in `initialize'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/web/pushserver.rb:34:in `new'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/web/pushserver.rb:34:in `run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/web.rb:130:in `boot'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/web.rb:87:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandline.rb:29:in `run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandline.rb:43:in `run!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/narou.rb:49:in `<top (required)>'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/bin/narou:13:in `require_relative'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby27-x64/bin/narou:23:in `load'
from C:/Ruby27-x64/bin/narou:23:in `<main>'
追記です。
コマンドの方を確認したところ、一箇所白い文字でエラーらしき表示が出ていたので書き写しておきます。
C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:456:in parse':(c:/MyNovel/.narou/lock.yaml):controlcharacters are not allowed at line 1 column 1(Psych::SyntaxError)
narou u -a --backtraceでは以下のエラーメッセージが表示されました。
--gl narouやotherでもほぼ同じエラーメッセージでしたが、otherの場合はエラーが出るまでに更新確認が10%ほどまで進行していました。
C:/Ruby25-x64/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock': SSL_connect SYSCALL returned=5 errno=0 state=SSLv3/TLS write client hello (OpenSSL::SSL::SSLError)
from C:/Ruby25-x64/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect'
from C:/Ruby25-x64/lib/ruby/2.5.0/net/http.rb:985:in `connect'
from C:/Ruby25-x64/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
from C:/Ruby25-x64/lib/ruby/2.5.0/net/http.rb:909:in `start'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:337:in `open_http'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:755:in `buffer_open'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:226:in `block in open_loop'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:224:in `catch'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:224:in `open_loop'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:165:in `open_uri'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:735:in `open'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:35:in `open'
from C:/Ruby25-x64/lib/ruby/2.5.0/open-uri.rb:46:in `open'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/downloader.rb:728:in `get_toc_source'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/downloader.rb:763:in `get_latest_table_of_contents'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/downloader.rb:349:in `run_download'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/command/update.rb:182:in `block in execute'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/command/update.rb:157:in `each'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/command/update.rb:157:in `execute'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/commandline.rb:29:in `run'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/commandline.rb:43:in `run!'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/narou.rb:49:in `<top (required)>'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/bin/narou:13:in `require_relative'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.5.0.1/bin/narou:13:in `<top (required)>'
from C:/Ruby25-x64/bin/narou:23:in `load'
from C:/Ruby25-x64/bin/narou:23:in `<main>'
>>328
返信ありがとうございます。
3.5.1にアップデートしてもほとんど結果は変わりませんでした。Rubyを再インストールして、Narou.rbをインストールするところからやり直しましたが、それでもダメでした
ただ、narou u -a --gl otherおよびハーメルンとカクヨムのアップデートは問題なく機能しました。問題点は小説家になろう掲載の小説に限られるようです。
エラーメッセージもバージョンの部分以外は前と同じです。
C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `initialize': No such file or directory @ rb_sysopen - D:/MyNovel/小説データ/小説家になろう/n9902bn デスマーチからはじまる異世界狂想曲( web版 )/[愛七ひろ] デスマーチからはじまる異世界狂想曲( web版 ).epub (Errno::ENOENT)
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `copy_file'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:511:in `copy_file'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:430:in `block in cp'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1588:in `block in fu_each_src_dest'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1602:in `fu_each_src_dest0'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1586:in `fu_each_src_dest'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:429:in `cp'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:320:in `copy_to_converted_file'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:255:in `block in convert_novel_main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:248:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:201:in `block (2 levels) in
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/mixin/locker.rb:26:in `lock'convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `with_index'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:159:in `block in main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:133:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/worker.rb:49:in `block (3 levels) in start'
>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'
>>445
>このOpenJDKを使うとは何をすればいいのでしょうか?
現在、Java実行環境に、OracleのJava 8 ランタイムを利用しているかと思いますが、新しいOpenJDKなどを利用しましょうということです。
例 ttps://docs.microsoft.com/ja-jp/java/openjdk/download
Long Term Support な ver.11がよろしいかと。
C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:872:in `block in result': no implicit conversion of Hash into Integer (TypeError)
from C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:874:in `result'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:53:in `block in get'
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing narou:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20210815-8176-18wllhj.rb extconf.rb
checking for yaml.h... no
checking for _WIN32... no
checking for dlfcn.h... no
checking for inttypes.h... yes
checking for memory.h... yes
checking for stdint.h... yes
checking for stdlib.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for yaml.h... yes
checking for config.h... yes
creating Makefile
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
make "DESTDIR=" clean
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
make "DESTDIR="
generating psych-x64-mingw32.def
compiling ./yaml/api.c
Cannot create temporary file in C:\Users\???V???Y\AppData\Local\Temp\: Invalid argument
make: *** [Makefile:247: api.o] エラー 3
make failed, exit code 2
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/psych-4.0.1/gem_make.out
Narou.rb のバージョン:3.8.0
OS のバージョン:Windows 10 Pro 21H1 19043.1415
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
何が起きたのか: なろう小説、特定話にて、ダウンロードが異常終了する
第166部分 162.冬ごもりをしています (166/176)C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:1047:in `different_section?': undefined method `[]' for false:FalseClass (NoMethodError)
from C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:1017:in `block in sections_download_and_save'
from C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:990:in `each'
>>473
超縦書2.3.1ではエラーが出て開けないね(ファイルが壊れています。コンテンツを再ダウンロードしてお試しください。(003003))
Kinoppy for Windows3.2.16だと開けるけど目次が認識されてない
変換対象をKindleにしてmobiを出力した場合はKindle PaperwhiteとKindle for Windowsどちらでも目次含めて問題なく開ける
Narou.rb のバージョン:3.8.1
OS のバージョン:win 10 21H2(2022年4月までのアプデ済み)
Ruby:2.6→3.1.1-1
AozoraEpub3:1.1.0b46
何が起きたのか:更新(ダウンロード後)・変換時にエラーがでて処理が完了しない
windowsの4月のアップデートでKB5012599とKB5012117を適用後に
narou,rbにて更新をしようとしましたが、更新が完了せずエラーで止まっていました
確認のためRubyを更新してnarou.rbを再インスト、Aozoraepub3も新規のフォルダーに設定しました
しかし同様の現象がおこり更新と変換ができません
対応よろしくお願い致します
再現方法:更新もしくは変感を実行する
-> /api/convert
#<Thread:0x000002962d06cb40 xxx/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
J:/program/Ruby31-x64/lib/ruby/3.1.0/psych.rb:455:in `parse': (G:/webnovel/.narou/lock.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from J:/program/Ruby31-x64/lib/ruby/3.1.0/psych.rb:455:in `parse_stream'
from xxx/psych.rb:399:in `parse'
from xxx/psych.rb:272:in `unsafe_load'
from xxx/psych.rb:649:in `block in unsafe_load_file'
from xxx/psych.rb:648:in `open'
from xxx/psych.rb:648:in `unsafe_load_file'
from xxx/inventory.rb:53:in `rescue in block in init'
from xxx/inventory.rb:46:in `block in init'
from xxx/helper.rb:497:in `block in memo'
from xxx/helper.rb:490:in `synchronize'
from xxx/helper.rb:490:in `memo'
from xxx/inventory.rb:45:in `init'
from xxx/inventory.rb:23:in `block in load'
from <internal:kernel>:90:in `tap'
from xxx/inventory.rb:21:in `load'
from xxx/mixin/locker.rb:21:in `lock'
from xxx/command/convert.rb:200:in `block in convert_novels'
from xxx/command/convert.rb:199:in `each'
from xxx/command/convert.rb:199:in `with_index'
from xxx/command/convert.rb:199:in `convert_novels'
from xxx/command/convert.rb:159:in `block in main'
from xxx/command/convert.rb:152:in `each'
from xxx/command/convert.rb:152:in `main'
from xxx/command/convert.rb:133:in `execute'
from xxx/commandbase.rb:125:in `execute!'
from xxx/commandbase.rb:134:in `execute!'
from xxx/command/convert.rb:123:in `block in execute!'
from xxx/narou.rb:369:in `concurrency_call'
from xxx/command/convert.rb:122:in `execute!'
from xxx/commandline.rb:29:in `run'
from xxx/commandline.rb:43:in `run!'
from xxx/web/appserver.rb:528:in `block (2 levels) in <class:AppServer>'
from xxx/web/web_worker.rb:47:in `block (3 levels) in start'
xxx/psych.rb:455:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
# get mobiheader and check SRCS section number and count
offset0, = in_file.pread(8, 78).unpack("N")
offset1, = in_file.pread(8, 86).unpack("N")
mobiheader = in_file.pread(offset1 - offset0 + 1, offset0)
srcs_secnum, srcs_cnt = mobiheader.unpack("@224NN")
if srcs_secnum == 0xffffffff || srcs_cnt == 0
raise StripException, "File doesn't contain the sources section."
end
puts "Found SRCS section number %d, and count %d" % [srcs_secnum, srcs_cnt] if verbose
# find its offset and length
_next = srcs_secnum + srcs_cnt
srcs_offset, = in_file.pread(4 * 2, 78 + srcs_secnum * 8).unpack("NN")
next_offset, = in_file.pread(4 * 2, 78 + _next * 8).unpack("NN")
srcs_length = next_offset - srcs_offset
if in_file.pread(4, srcs_offset) != "SRCS"
raise StripException, "SRCS section num does not point to SRCS."
end
puts " beginning at offset %0x and ending at offset %0x" % [srcs_offset, srcs_length] if verbose
# it appears bytes 68-71 always contain (2*num_sections) + 1
# this is not documented anyplace at all but it appears to be some sort of next
# available unique_id used to identify specific sections in the palm db
IO.copy_stream(in_file, temp_file, 68, 0)
temp_file.write([(num_sections - srcs_cnt) * 2 + 1].pack("N"))
IO.copy_stream(in_file, temp_file, 4, 72)
# write out the number of sections reduced by srtcs_cnt
temp_file.write([num_sections - srcs_cnt].pack("n"))
# we are going to remove srcs_cnt SRCS sections so the offset of every entry in the table
# up to the srcs secnum must begin 8 bytes earlier per section removed (each table entry is 8 )
delta = -8 * srcs_cnt
srcs_secnum.times do |i|
offset, flgval = in_file.pread(4 * 2, 78 + i * 8).unpack("NN")
offset += delta
temp_file.write([offset].pack("N") + [flgval].pack("N"))
end
# for every record after the srcs_cnt SRCS records we must start it
# earlier by 8*srcs_cnt + the length of the srcs sections themselves)
delta = delta - srcs_length
(srcs_secnum + srcs_cnt ... num_sections).each do |i|
offset, = in_file.pread(4 * 2, 78 + i * 8).unpack("NN")
offset += delta
flgval = 2 * (i - srcs_cnt)
temp_file.write([offset].pack("N") + [flgval].pack("N"))
end
# now pad it out to begin right at the first offset
# typically this is 2 bytes of nulls
first_offset, = temp_file.pread(4 * 2, 78).unpack("NN")
temp_file.write("\0" * (first_offset - temp_file.length))
# now finally add on every thing up to the original src_offset
IO.copy_stream(in_file, temp_file, srcs_offset - offset0, offset0)
# and everything afterwards
IO.copy_stream(in_file, temp_file, nil, srcs_offset + srcs_length)
#store away the SRCS section in case the user wants it output
if stripfile
stripped_data_header = in_file.pread(16, srcs_offset)
strip_file = File.open(stripfile, "wb")
IO.copy_stream(in_file, strip_file, srcs_length - 16, srcs_offset + 16)
strip_file.close
end
# update the number of sections count
num_section = num_sections - srcs_cnt
# update the srcs_secnum and srcs_cnt in the mobiheader
offset0, = temp_file.pread(4 * 2, 78).unpack("NN")
offset1, = temp_file.pread(4 * 2, 86).unpack("NN")
mobiheader = temp_file.pread(offset1 - offset0, offset0)
mobiheader = mobiheader[0, 0xe0] + [-1].pack("N") + [0].pack("N") + mobiheader[0xe8 .. -1]
in_file.close
# if K8 mobi, handle metadata 121 in old mobiheader
mobiheader = updateEXTH121(srcs_secnum, srcs_cnt, mobiheader, verbose)
unless outfile then
out_file = File.open(infile, "wb")
else
out_file = File.open(outfile, "wb")
end
IO.copy_stream(temp_file, out_file, offset0, 0)
out_file.write(mobiheader)
IO.copy_stream(temp_file, out_file, nil, offset1)
out_file.close
end
puts "done" if verbose
end
end
if __FILE__ == $0
puts "KndleStrip v#{KINDLESTRIP_VERSION}. " +
"Written 2010-2012 by Paul Durrant and Kevin Hendricks."
if ARGV.length < 2 || ARGV.length > 3
puts "Strips the Sources record from Mobipocket ebooks"
puts "For ebooks generated using KindleGen 1.1 and later that add the source"
puts "Usage:"
puts " %s <infile> <outfile> <strippeddatafile>" % File.basename(__FILE__)
puts "<strippeddatafile> is optional."
exit Narou::EXIT_ERROR_CODE
else
infile = ARGV[0]
outfile = ARGV[1]
if ARGV.length == 3
stripfile = ARGV[2]
end
begin
SectionStripper.strip(infile, outfile, stripfile, true)
#print "Header Bytes: " + binascii.b2a_hex(strippedFile.getHeader())
rescue StripException => e
warn "Error: #{e.message}"
exit Narou::EXIT_ERROR_CODE
end
end
end
----ここまで----
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:968)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:213)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1032)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:909)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
pid 14852 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
-----AozoraEpub3-1.1.0b55Q
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:970)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:217)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1034)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:911)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
pid 1532 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
Detected encoding = UTF-8
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archive contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:534)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:1090)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:1006)
at AozoraEpub3.convertFile(AozoraEpub3.java:519)
at AozoraEpub3.main(AozoraEpub3.java:438)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:203)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1070)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:947)
at AozoraEpub3.convertFile(AozoraEpub3.java:519)
at AozoraEpub3.main(AozoraEpub3.java:438)
pid 1988 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした pid 1988 exit 1 [ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
<internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sass-embedded (LoadError)
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:12:in `<class:SassTemplate>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:8:in `<module:Tilt>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:3:in `<top (required)>'
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:17:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/all.rb:7:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/all.rb:7:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:118:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:118:in `boot'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:87:in `execute'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/tools/ruby31/bin/narou:32:in `load'
from C:/tools/ruby31/bin/narou:32:in `<main>'
Refused to apply style from 'http://192.168.1.27:54223/style.css?_=3.8.2'
because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
[07:30:55:873] C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:73:in `block in short_number_option_parse': undefined method `=~' for 10:Integer (NoMethodError)
[07:30:55:877] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:72:in `map!'
[07:30:55:879] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:72:in `short_number_option_parse'
[07:30:55:881] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:83:in `execute'
[07:30:55:884] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
[07:30:55:887] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
[07:30:55:891] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
[07:30:55:894] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
[07:30:55:896] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:686:in `block (2 levels) in <class:AppServer>'
[07:30:55:899] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
/api/update_general_lastup
#<Thread:0x000001f3c69411f8 C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:29:in `block in prepare': undefined method `[]' for nil:NilClass (NoMethodError)
if setting["narou_api_url"]
^^^^^^^^^^^^^^^^^
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:26:in `prepare'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:18:in `initialize'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `new'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `update_general_lastup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1576:in `block in parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `catch'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1553:in `order!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1659:in `permute!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1684:in `parse!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:59:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:140:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-02-10 23:07:40] ERROR NoMethodError: undefined method `[]' for nil:NilClass\n\n if setting["narou_api_url"]\n ^^^^^^^^^^^^^^^^^\n\tC:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
「他」を実行した場合
> /api/update_general_lastup
#<Thread:0x000001f3c64dde68 C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:29:in `block in prepare': undefined method `[]' for nil:NilClass (NoMethodError)
if setting["narou_api_url"]
^^^^^^^^^^^^^^^^^
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:26:in `prepare'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:18:in `initialize'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `new'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `update_general_lastup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1576:in `block in parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `catch'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1553:in `order!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1659:in `permute!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1684:in `parse!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:59:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:140:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-02-10 23:09:39] ERROR NoMethodError: undefined method `[]' for nil:NilClass\n\n if setting["narou_api_url"]\n ^^^^^^^^^^^^^^^^^\n\tC:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
>>555
このエラーはnarou.rbがcopyコマンド叩いたら「More data is available.」って返ってきたやつです。
ERROR_MORE_DATAなんで、単純なコピー作業というより、ディレクトリエントリを読むとかそういうので発生してるのかな?って気はしますが、詳細は分かりませんね。
ググっても色々なパターンあるみたいで分かりません。
エクスプローラー経由でどうなるかとか、悪さをしてるファイルがないかとか、kindleのバックアップとってファイルを消したり移動したりしてみると何か分かるかも知れません。
narou web にはいつも大変お世話になっております。
narou web が、以下のエラーログを吐いて起動しなくなってしまいました。
対処方法ご教示のほどよろしくお願いいたします。
-----------------------------------------
Narou.rb のバージョン:3.5.1
#<Thread:0x000001e3bc6e0ef0 C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `read': ASCII incompatible encoding needs binmode (ArgumentError)
data = File.read(fullpath, **options)
^^^^^^^^^^^^^^^^^^^
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `block in memo'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:490:in `synchronize'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:490:in `memo'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:159:in `load_global_replace_pattern'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:199:in `block (2 levels) in <class:AppServer>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-04-30 02:54:51] ERROR ArgumentError: ASCII incompatible encoding needs binmode\n\tC:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `block in memo'
--- 2023/07/01 01:08:39 ---
C:/Ruby31-x64/bin/narou web --boot
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `write': Broken pipe @ io_writev - <STDERR> (Errno::EPIPE)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `puts'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `quit!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1514:in `ensure in run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1514:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:144:in `boot'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:87:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby31-x64/bin/narou:32:in `load'
from C:/Ruby31-x64/bin/narou:32:in `<main>'
C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:45:in `merge!': no implicit conversion of false into Hash (TypeError)
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:45:in `init'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:23:in `block in load'
from <internal:kernel>:90:in `tap'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:21:in `load'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/database.rb:29:in `refresh'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/database.rb:25:in `initialize'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:127:in `new'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:127:in `block in instance'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:125:in `synchronize'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:125:in `instance'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:247:in `<class:Downloader>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:23:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/backup.rb:8:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/backup.rb:8:in `<top (required)>'
from <internal:J:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:J:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command.rb:9:in `block in <top (required)>'
from <internal:dir>:220:in `glob'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command.rb:8:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandline.rb:8:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandline.rb:8:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/narou.rb:47:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/narou.rb:47:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Users/Owner/AppData/Local/Microsoft/WindowsApps/narou:32:in `load'
from C:/Users/Owner/AppData/Local/Microsoft/WindowsApps/narou:32:in `<main>'
-----------------------------------------
Narou.rb のバージョン:
Version 3.8.2+カクヨム対応
OS のバージョン:
エディション Windows 11 Pro
バージョン 22H2
インストール日 2022/12/02
OS ビルド 22621.2861
エクスペリエンス Windows Feature Experience Pack 1000.22681.1000.0
その他環境情報(任意):
何が起きたのか:
変換先にepubを指定するとエラー停止
再現方法(何をやったら起こったのか詳細に):
C:\mynovel>narou co 2
ID:2 ************** の変換を開始
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:0件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています...C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:425:in `encode': "\x8B" followed by " " on Windows-31J (Encoding::InvalidByteSequenceError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:425:in `exec'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:182:in `txt_to_epub'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:104:in `block (2 levels) in multi_match': target of repeat operator is not specified: /{"eval"=>"magicword = \"KakuyomuPreprocessEvalMagicWord\"……… (省略)kakuyomu2.jp.yaml に書いたコードが展開されてる …… #source.replace(str)\n end\nend\nnil"}/m (RegexpError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:103:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:103:in `block in multi_match'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:455:in `parse':
(C:/MyNovel/.narou/lock.yaml): control characters are not allowed at line 1 colu
mn 1 (Psych::SyntaxError)
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:455:in `p
arse_stream'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:399:in `p
arse'
-----------------------------------------
Narou.rb のバージョン:
Narou.rb version 3.8.2
OS のバージョン:
エディション Windows 11 Home
バージョン 22H2
インストール日 2023/06/02
OS ビルド 22621.3007
エクスペリエンス Windows Feature Experience Pack 1000.22681.1000.0
何が起きたのか:
WEB UI にてハーメルンの小説を更新すると、「縦書用の返還が終了しました」の後、
[ERROR] AozoraEpub3が見つからなかったのでEPUBが出力出来ませんでした。narou initでAozoraEpub3の設定を行なって下さい
という表示が出る。
再現方法(何をやったら起こったのか詳細に):
WEB UI を立ち上げて個別のタイトルを更新しただけです。変換も全く同じ表示が出ます。
ハーメルンとなろうしか試していませんが、どの小説でも同じ症状です。
narou inti で設定しなおしても以下のようなエラー表示が出ます。
C:\MyNovel>narou init
AozoraEpub3の設定を行います
AozoraEpub3のあるフォルダを入力して下さい:
(未入力でスキップ、:keep で現在と同じ場所を指定)
(現在の場所:C:/Users/rbbit/Documents/AozoraEpub3-1.1.0b46)
>C:\Users\rbbit\OneDrive\ドキュメント\AozoraEpub3-1.1.0b46C:\Users\rbbit\OneDrive\ドキュメント\AozoraEpub3-1.1.0b46\AozoraEpub3.ico
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:188:in `encode!': "\x88\\" from Windows-31J to UTF-8 (Encoding::UndefinedConversionError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:188:in `normalize_aozoraepub3_path'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:151:in `ask_aozoraepub3_path'
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.
Exception in thread "main" java.lang.UnsupportedClassVersionError: AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
pid 17696 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Failed to open TCP connection to ncode.syosetu.com:443 (Blocking operation timed out!) (IO::TimeoutError)
from C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `open'
from C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `block in connect'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write': Permission denied @ rb_sysopen - C:/Users/”ユーザー名”/Desktop/TEMP/narou/.narou/database.yaml.backup (Errno::EACCES)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:63:in `block in save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `synchronize'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/database.rb:50:in `save_database'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:224:in `ensure in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:225:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
#<Thread:0x0000024c7c0fc600 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)
from C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:1038:in `connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:970:in `do_start'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:959:in `start'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:323:in `open_http'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:741:in `buffer_open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:212:in `block in open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `catch'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:151:in `open_uri'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:721:in `open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:29:in `open'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:728:in `get_toc_source'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:763:in `get_latest_table_of_contents'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2024-03-22 00:13:14] ERROR OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)\n\tC:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
== Sinatra has ended his set (crowd applauds)
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:51:in `parse_novel_info'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:18:in `load'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:766:in `get_latest_table_of_contents'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
C:/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Blocking operation timed out! (IO::TimeoutError)
AozoraEpub3 Ver.1.1.1b23Q では、
--------------------------------------------------------------------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError:
AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
pid 10632 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
--------------------------------------------------------------------------------
と表示され、実行できないようです。
正常に動作するか否かは、エクスプローラー上から「AozoraEpub3.jar」を実行可能かどうかでも判断できる感じでしょうか?
ひとまずは、Javaの最新版から前バージョン以前に戻すことができれば、解決は可能なようですが、色々と不便ですね。
>>898
AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
というのは、Java Runtime Class File Version 65.0でコンパイルされているが、クライアントに入ってるJava Runtime Class FileのVersionは52.0だから起動できないというエラーです。
JavaのVerが1上がるごとにClass FileのVerも1上がる。
JDK Class File Versions 相対表
ttps://javaalmanac.io/bytecode/versions/
何が起きたのか:
892さんと同じくjava version "1.8.0_411"にアップデートした後から変換時に文字化けエラーが発生
java version "1.8.0_411をアンインストール、Version:21をインストール
AozoraEpub3-1.1.0b55QからAozoraEpub3-1.1.1b23Qに設定切り替え
再現方法(何をやったら起こったのか詳細に):
EPUBに変換を実行
AozoraEpub3でEPUBに変換しています....C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:202:in `txt_to_epub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:315:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:300:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `hook_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:252:in `block in convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `with_index'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:159:in `block in main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:133:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:369:in `concurrency_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:122:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
何が起きたのか:narou web を実行したが、WEB UI (ブラウザ) が立ち上がらず、以下のエラーが表示された
D:\MyNovel>narou web
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
D:\MyNovel>narou web --backtrace
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
from <internal:dir>:411:in `glob'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:29:in `load_settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:49:in `settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:947:in `block in <class:AppServer>'
from <internal:kernel>:90:in `tap'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:946:in `<class:AppServer>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:25:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `boot'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:87:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)
D:\MyNovel>narou update 5
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'