以下、--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