したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | メール | |
レス数が900を超えています。1000を超えると投稿できなくなるよ。

不具合報告スレ

1作者★:2017/11/21(火) 15:28:21 ID:???
不具合と思われた挙動をした時はこちらに書き込んでください。

報告用テンプレ
-----------------------------------------
Narou.rb のバージョン:

OS のバージョン:

その他環境情報(任意):

何が起きたのか:

再現方法(何をやったら起こったのか詳細に):

-----------------------------------------
エラーメッセージは再現方法に併記。
その際は --backtrace オプションをつけること。

373作者★:2020/12/02(水) 19:56:24 ID:???
>>372
ファイル名が問題そうなら、convert.filename-to-ncode などを試してみてください

374368:2020/12/02(水) 21:33:41 ID:hXO4u.Es
>>373

ありがとうございます!
教えていただいたオプションを試したら無事メール送信もできるようになりました。

375名無しさん:2021/01/05(火) 22:00:15 ID:dVgDL4t.
Narou.rb のバージョン:
Version 3.5.1

OS のバージョン:
Win8.1

その他環境情報(任意):
ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.107 Safari/537.36

何が起きたのか:
以下の二作品をDL中に同一のIDが振られる事象が発生

望まぬ不死の冒険者
ttps://ncode.syosetu.com/n8577dn/
悪役令嬢の怠惰な溜め息
ttps://ncode.syosetu.com/n1137di/

ただ、同時刻にWindowsDefenderがトロイの木馬を検出を発報していたので、それが原因かもしれません。
E:\MyNovels\小説データ\小説家になろう\n8577dn 望まぬ不死の冒険者\raw\771653ea924fa1715a5ebf6b1fb9dd

再度DLを行った所、別のIDが割り振られてDL出来たので、たまたまだとは思いますが報告させて頂きます。

新規DL機能に、DLリストのベリファイ機能があれば便利かもしれません。


ID:1528 望まぬ不死の冒険者 のDL開始
プロローグ
第1部分 第1話 プロローグ (1/657)
〜中略〜
第625部分 第593話 港湾都市と話し合い (625/657)
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 - (e:/MyNovels/小説データ/小説家になろう/n8577dn 望まぬ不死の冒険者/raw/771653ea924fa1715a5ebf6b1fb9dd, e:/MyNovels/小説データ/小説家になろう/n8577dn 望まぬ不死の冒険者/raw/626 第594話 あるケルピーライダーの憂鬱(前).html) (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/downloader.rb:1184:in `save_raw_data'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:1092:in `a_section_download'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:994:in `block in sections_download_and_save'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:988:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:988:in `each_with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:988:in `sections_download_and_save'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:390:in `run_download'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/download.rb:142:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/download.rb:110:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/download.rb:110:in `with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/download.rb:110: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/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/lib/web/appserver.rb:539:in `block (2 levels) in '
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
ID:1528 悪役令嬢の怠惰な溜め息 のDL開始
第1章 “楽しい”は唯一、絶対の正義です
第1部分 (1)色々な意味での覚醒 (1/306)
〜中略〜
第306部分 (59)譲れない条件 (306/306)
ID:1528 悪役令嬢の怠惰な溜め息 の変換を開始
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています....変換しました
kindlegen実行中...................変換しました
kindlestrip実行中
ncode_syosetu_com_n1137di.mobi を出力しました
MOBIファイルを出力しました
ID:ttps://ncode.syosetu.com/n1137di/ 
Kindleへ送信しています..
J:/documents/ncode_syosetu_com_n1137di.mobi へコピーしました

376作者★:2021/01/05(火) 22:50:56 ID:???
database.yaml が保存前にエラーで落ちたらたぶんそうなると思います
この場合はデータを認識できてないのでどうしようもないと思います

377松の内:2021/01/16(土) 01:03:35 ID:MT83/rC6
いつも大変有難く利用させていただいております。
キンドルでなろう小説が読めるのでとてもありがたいです。
本当にありがとうございます。
この度、少し不具合というか不思議なことがおこりましたのでご報告です。
-----------------------------------------
Narou.rb のバージョン:3.5.1

OS のバージョン:windows 10

その他環境情報(任意):kindle paperwhiteとkindle for PC利用
Microsoft Edge Ruby2.5.7-1-X64withMSYS2


何が起きたのか:ダウンロードした小説のあるページのみ、途中で話が途切れて、
タイトルや表示調整の文字やHPアドレスが出てきて、話が途切れます。
その次の回からは普通にダウンロードされてるようで、表示も普通です。
具体的には不具合があったのは 

薬の魔物の継続理由 524話です。本当にこの話のみです。
ttps://ncode.syosetu.com/n1031fh/524/

再現方法(何をやったら起こったのか詳細に):特に何もしてません。
普通にダウンロードしただけです。それをキンドルで表示したら表示が妙でした。
何故そうなったのか分からず、再起動をかけ、再度強制ダウンロードしましたが、
その当該ページのみ同じ状態です。パソコン上でも再確認しましたが同じでした。
エラーメッセージというより
ソース?が表示されてます。
こんな感じです。
1var microadCompass = microadCompass | | {}; microadCompass.queue = microadCompass.queue | |
それに加えてツイッターマークやログインなどの表記も表示されています。
なろうの上のバーの表示が出ている感じです。

-----------------------------------------
理由、改善方法等があればご教授いただきたいです。

378名無し:2021/01/18(月) 18:31:51 ID:Cdbs5r1M

Narou.rb:3.6.0

OS:Win 10 20H2

Ruby:2.6.6 & 2.7.2 & 3.0.0

Ruby 3.0 で、WebUIのその他の小説の最新話掲載日を確認する(update_other_novels)を実行するとArgument Errorになる。

最新話掲載日をなろうAPIで確認は正常に動作する。

2.6.6 & 2.7.2 ではその他の小説の最新話掲載日を確認する(update_other_novels)が正常動作するので Ruby 3.0に正常動作可能な状態で対応出来ていない。

379名無し:2021/01/18(月) 18:36:50 ID:Cdbs5r1M

追伸

Ruby:2.6.6 & 2.7.2 & 3.0.0 全てでgem update --systemとgem updateを済ませてからnarou を実行してるのでRuby側で出来ることはない。

380名無し:2021/01/18(月) 19:48:18 ID:Cdbs5r1M

>377
Ruby を2.6以上に更新してリトライするしかないかと…

Ruby 2.5系は3月に全サポート終了なので…

381名無し:2021/01/18(月) 20:42:36 ID:Cdbs5r1M

>>378-379

追伸

エラーコード

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

382名無しさん:2021/01/21(木) 20:25:11 ID:/zNTjlho
不具合と思われた挙動をした時はこちらに書き込んでください。

報告用テンプレ
-----------------------------------------
Narou.rb のバージョン:3.6.0

OS のバージョン:Windows10 64bit 20H2

その他環境情報(任意):
kepub.epubに変換して、Koboに入れています
電子書籍ファイル名は40文字に制限しています

何が起きたのか:
特定の小説でSendに失敗します

例えば n4595gp,n0678gq では、

[ERROR] まだファイル([赤野あかい] 転生したので、たった一人で地球と貿易してみる 〜TS魔術少女のゲ.epub.kepub.epub)が無いようです
[ERROR] まだファイル([0024] ネット上の男友達(だと思ってた奴)とオフで会ったら、まさかの小悪魔.epub.kepub.epub)が無いようです

と表示されます

通常は "hoge.kepub.epub" だと思うのですが、
エラーが出る小説だけ "hoge.epub.kepub.epub" がないと表示されます
他の小説は、"hoge.kepub.epub" でSendできます
また、エラーの電子書籍ファイルを"hoge.epub.kepub.epub" にリネームすればSendできます

再現方法(何をやったら起こったのか詳細に):
ファイルが存在しないことになっているのでよくわかりません
--backtrace を行っても特に何も表示されません

383松の内:2021/01/21(木) 20:33:45 ID:Zz2NdHqY
>380 
アドバイスをありがとうございます。377の報告者です。
Rubyを2.7にして再度ダウンロードしたところ、今回は大丈夫だったようです!。
きちんと読めるようになりました。

ありがとうございました。本当に助かりました。<(_ _)>

384作者★:2021/01/22(金) 15:29:15 ID:???
>>382
再現したので修正します

385382:2021/01/22(金) 22:19:48 ID:???
>>384
ご確認ありがとうございます
よろしくお願いします

386名無しさん:2021/01/22(金) 23:16:35 ID:???
>>356
いわゆるMixed Content(混合コンテンツ)として扱われてブロックされるようです

サイト(サブドメイン)毎に、サイト設定で、
「安全でないコンテンツ」を「許可」
でも一応、回避できました
サイト毎に設定しないといけませんし、セキュリティ上もあまり好ましくはありませんけど

387作者★:2021/01/23(土) 00:57:31 ID:???
>>385
v3.7.0 で修正しました

388382:2021/01/23(土) 01:45:49 ID:???
>>387
早々にありがとうございました
早速更新して、ちゃんと使えました

389名無し:2021/01/23(土) 08:17:09 ID:edvPFiJ6


>>381

Ruby 3系だとVer.3.7でも発生

[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] 縦書用の変換が終了しました

こっちは、CUIでnarou updateしても発生する。

390作者★:2021/01/23(土) 11:35:41 ID:???
>>389
再現しましたので修正します

391名無しさん:2021/01/26(火) 01:19:37 ID:2IMhxvd2
3.6.0を使用中ですが、3.7.0にバージョンアップできません。
不具合か私固有の問題か、確認をいただけると助かります。

WEB UI、コマンドラインともに、アップデート対象となりません。

▼WEB UI「Narou.rb について」画面の表示
Version 3.6.0
新しいバージョン(3.7.0)が見つかりました。
Narou.rb はすでに最新版です。

▼コマンドラインの結果
>narou version
3.6.0
>gem update narou
Updating installed gems
Nothing to update

▼環境
OS:Windows 10 Pro(バージョン1909, OSビルド18363.1316)
RUBY:3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]

392作者★:2021/01/26(火) 11:13:53 ID:???
>>391
gem install narou -v 3.7.0
とバージョンを直接指定してみてください

393名無しさん:2021/01/26(火) 13:14:19 ID:2IMhxvd2
>>392

391です。

教えていただいたように、
"gem install narou -v 3.7.0"
とバージョンを直接指定することで、
無事にアップデートすることができました。

回答ありがとうございました。

394名無し:2021/01/27(水) 22:09:33 ID:OlBheGC6

>>390

修正完了は後どの位掛かりますか?

まだgemに反映されてないようなので…

395作者★:2021/01/28(木) 09:17:48 ID:???
>>394
開発版では修正してあります

396名無し:2021/01/28(木) 20:41:20 ID:CMhmjAwo

>>395

gemで利用してるから、正式版に反映されてないと無意味なのだが…

397作者★:2021/01/28(木) 21:15:07 ID:???
>>396
なぜ無意味なのか理解できない
すでに開発版では修正が終わっているのだから、少しでも待てないのなら
自分で gem build してローカルインストールすればいい
HEAD では修正されてるけどリリースバージョンでは未修正なんて普通のこと
ひとつバグ修正するたびにバージョンをあげてたらキリがないだろ

398名無しさん:2021/02/04(木) 19:06:34 ID:R.V928G2
Narou.rb のバージョン:3.7.0

OS のバージョン:win10

その他環境情報(任意):web UI使用時

何が起きたのか:AozoraEpub3でEPUBに変換に変換の際にエラーが出る。以下ログ
[INFO] 濁点フォント利用 (24483) : な゛
[INFO] 濁点フォント利用 (24483) : に゛
[INFO] 濁点フォント利用 (24483) : を゛
[INFO] 濁点フォント利用 (27972) : ア゛
[INFO] 濁点フォント利用 (29617) : よ゛
[INFO] 濁点フォント利用 (34928) : ア゛
[INFO] 濁点フォント利用 (36196) : ア゛
[INFO] 濁点フォント利用 (40072) : ア゛
[INFO] 濁点フォント利用 (43471) : よ゛
[INFO] 濁点フォント利用 (43471) : ぉ゛
[INFO] 濁点フォント利用 (43471) : お゛
[INFO] 濁点フォント利用 (44685) : な゛
[INFO] 濁点フォント利用 (44685) : い゛
[INFO] 濁点フォント利用 (44690) : い゛
[INFO] 濁点フォント利用 (62917) : ア゛
[INFO] 濁点フォント利用 (63912) : も゛
[INFO] 濁点フォント利用 (63936) : な゛
[INFO] 濁点フォント利用 (63945) : ア゛
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 15208 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした

再現方法(何をやったら起こったのか詳細に):ttps://ncode.syosetu.com/n0170db/ ←この小説を変換しようとするとエラーが出て変換できない

399作者★:2021/02/04(木) 19:30:54 ID:???
>>398
改造版AozoraEpub3を使うか、濁点フォントの使用を中止してください

400名無しさん:2021/02/05(金) 13:10:34 ID:ITQ4PSbE
>>399
改造版AozoraEpub3を入れる→変化なし
濁点フォントの使用を中止→INFOは消えたけどERRORは出る
という感じで改善はされませんでした…

401作者★:2021/02/05(金) 14:58:05 ID:???
>>400
濁点フォントじゃなくて挿絵のほうかもしれないです
質問スレッドあたりで頻出なので検索してみてください

402名無しさん:2021/02/05(金) 22:57:02 ID:GSxqkK6M
>>400
JAVAが古いので最新バージョンを入れよう。
jre-8u281-windows-x64.exe

403名無しさん:2021/02/06(土) 12:12:43 ID:8Nby5GaM
>>401
質問スレ見てきました。設定で挿絵をoffにしたらエラーは出なくなりました
3.7.0にverを上げる前は挿絵onで変換できていたので3.7.0でなにか変更があったのでしょうか?

404作者★:2021/02/06(土) 13:51:06 ID:???
>>403
Javaの問題なので関係なし

405名無しさん:2021/02/06(土) 17:57:33 ID:???
私が確認した限りでは、改造版AozoraEpub3は 1.1.0b55Q 以前じゃないとうまく動かないです
1.1.1以降はCSSが電書協CSS仕様なので多分だめ?かと
私の環境では、1.1.0b55Q と JAVA OpenJDK11 の組み合わせで挿絵エラーもなく使えています

406作者★:2021/02/06(土) 20:30:29 ID:???
互換性を考えると両方対応は現状難しいので、改造版一本に対象を絞るか、
独自カスタマイズしていた部分を素の状態を使うようにするかの2択ですかね
とりあえず現状のままでも手動で設定すれば最新版でも動かせます
https://www.evernote.com/shard/s78/sh/79432b67-4263-50d5-1979-30b774ef36df/c6c7ff856d1588b7c8ba3640c808d01f を参照)

407名無しさん:2021/02/07(日) 02:57:27 ID:m3U346U6
>>402
Javaを最新版に更新しましたが変化ありませんでした…

>>405
改造版のAozoraEpub3のver.を1.1.0b55Qにしたら挿絵onでも変換でしました♪

皆さんのアドバイスのおかげで無事解決しました♪
作者様&レスをくださった方々、ありがとうございました。

408名無しさん:2021/02/19(金) 23:05:59 ID:DcwWn2xQ

Ver.3.70

DLボタン設置(Narou.rb) ver 2.0

SSLページだと、net::ERR_SSL_PROTOCOL_ERRORが発生し動作しないボタンが生成される。

409作者★:2021/02/19(金) 23:23:37 ID:???
>>408
>>357-

410名無しさん:2021/04/01(木) 05:20:43 ID:QoPoWbj2

>>409

仕様変更で、一部がSSLページへ強制自動遷移されるようになった。

ttps://blog.syosetu.com/?itemid=4225

411作者★:2021/04/01(木) 10:20:55 ID:???
>>410
>>363

412名無しさん:2021/04/03(土) 14:49:10 ID:Vp.0ih3Y

Ver.3.7.1

WebUI の[選択した小説を更新]をするとErrorになる。


2.6系だと

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'

413名無しさん:2021/04/03(土) 14:49:55 ID:Vp.0ih3Y

3.0系だと

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'

gem update --system

gem update

narou init
してある。

414名無しさん:2021/04/03(土) 14:53:37 ID:Vp.0ih3Y

>>412-413

一作品ずつだと更新できる。

長すぎて投稿できないので分割

415名無しさん:2021/04/03(土) 15:09:23 ID:Vp.0ih3Y

>>414

ハーメルンを更新対象から外すと更新出来た。

尚、ハーメルンは単発更新もできない上サイト自体にはアクセス出来ることから、仕様変更があった模様

416名無しさん:2021/04/06(火) 16:44:06 ID:???
Narou.rb のバージョン:3.5.0.1
AozoraEpub3のバージョン:1.1.0b46
kindlegenのバージョン:win32_v2_9
OS のバージョン:windows7 Pro 64bit

何が起きたのか:
数日前からエラーが出てn9798eiのアップデートのみmobi出力できなくなりました
他に読んでいるタイトルは今のところ問題ないです
小説データを確認しましたがrawフォルダのhtmlファイルと本文フォルダのyamlファイルは最新まで作成されていましたが
テキストファイルは更新されていませんでした

再現方法(何をやったら起こったのか詳細に):
narou u n9798eiで下のエラーメッセージが出ます
小説データを削除してnarou d n9798eiで新規にダウンロードすれば最新話まで問題なく出力されます
しかし次回アップデートするときにまた同じエラーになります

C:\MyNovel>narou u n9798ei
ID:147 戦国時代に宇宙要塞でやって来ました。 のDL開始
第1152部分 第千百五十一話・文化祭・その二 (1/3)
第1153部分 第千百五十二話・文化祭・その三 (2/3)
第1154部分 第千百五十三話・秋の終わりに (3/3) (新着)
n9798ei の変換を開始
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.
[ERROR] (1)
変換しました
kindlegen実行中.
[ERROR] kindlegen実行中にエラーが発生したため、MOBIが出力出来ませんでした
[ERROR] エラー(prcgen):E21017: EPUB ファイルの解凍中に問題が発生しました。

417作者★:2021/04/06(火) 22:30:15 ID:???
>>416
mobiというよりepubの生成(AozoraEpub3)の段階で死んでます
AozoraEpub3の環境を新しくすることをお勧めします(OpenJDK 使うなど)

AozoraEpub3でEPUBに変換しています.........変換しました
kindlegen実行中..................................................................................変換しました
kindlestrip実行中
[横蛍] 戦国時代に宇宙要塞でやって来ました。.mobi を出力しました
MOBIファイルを出力しました

java --version
openjdk 15.0.1 2020-10-20
OpenJDK Runtime Environment Zulu15.28+1013-CA (build 15.0.1+9)
OpenJDK 64-Bit Server VM Zulu15.28+1013-CA (build 15.0.1+9, mixed mode)

418作者★:2021/04/06(火) 22:31:25 ID:???
更新時の挙動に関しては確認できてないのでまた確認します

419名無しさん:2021/04/08(木) 23:30:47 ID:laWDri72
1.1.0b46はOpenJDKで動くのか、それとも改造版を使うのか。

420名無しさん:2021/04/11(日) 15:04:27 ID:???
>>415
うちじゃハーメルンも普通に更新できてるよ
Win10 20H2 19042.867
Narou.rb 3.7.1
AozoraEpub3: 1.1.1b7Q
ruby 3.0.0p0
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment Microsoft-18724 (build 11.0.10+9)
OpenJDK 64-Bit Server VM Microsoft-18724 (build 11.0.10+9, mixed mode)

421名無しさん:2021/04/18(日) 22:44:15 ID:T19K..SU
# 環境
* Windows10 Pro 64bit 20H2 19042.928
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
* openjdk version "11.0.10" 2021-01-19
* OpenJDK Runtime Environment Microsoft-18724 (build 11.0.10+9)
* OpenJDK 64-Bit Server VM Microsoft-18724 (build 11.0.10+9, mixed mode)
* Narou.rb version 3.7.1
* AozoraEpub3 1.1.1b8Q

# warning
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}

422421:2021/04/18(日) 23:12:22 ID:T19K..SU
すいません、テンプレートに従っておりませんでした。

-----------------------------------------
Narou.rb のバージョン:3.7.1

OS のバージョン:Windows10 Pro 64bit 20H2 19042.928

その他環境情報(任意):
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
* openjdk version "11.0.10" 2021-01-19
* OpenJDK Runtime Environment Microsoft-18724 (build 11.0.10+9)
* OpenJDK 64-Bit Server VM Microsoft-18724 (build 11.0.10+9, mixed mode)
* AozoraEpub3 1.1.1b8Q

何が起きたのか:
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}

再現方法(何をやったら起こったのか詳細に):
rubyを2.7系から3.0系に入れ替えました。
どの小説であってもnarou.rbよりEPUBに変換を行おうとすると、上記のwarningが表示されます。

-----------------------------------------
エラーメッセージは再現方法に併記。
その際は --backtrace オプションをつけること。

423名無しさん:2021/04/19(月) 19:12:07 ID:aH.Pph5.

>>411

仕様変更で小説閲覧ページもSSL必須になった。

ttps://blog.syosetu.com/?itemid=4233

Dockerはよくわからん。

424名無しさん:2021/05/09(日) 16:18:50 ID:H84hZHVc
Narou.rb のバージョン: 3.7.1

OS のバージョン: Windows 10 20H2 の WSL2 の Ubuntu 20.04

その他環境情報(任意):
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
openjdk-11-jre:amd64 11.0.11+9-0ubuntu2~20.04

何が起きたのか:
漢数字が欠落する

再現方法(何をやったら起こったのか詳細に):
「小説家になろう」掲載の小説を mobi に変換したら、漢数字がところどころ欠落します。
txt ファイルへの変換時点で当該箇所の漢数字が以下のように変換されているため、epub や mobi に出力する際に削除されるものと思われます。

[#漢数字=]

一例として「転生王女は世界を救いません! <ttps://ncode.syosetu.com/n4151gm/>」の「プロローグ」の節の各ファイルの冒頭を以下に転記します。

「小説データ\小説家になろう\n4151gm 転生王女は世界を救いません!\本文\1 プロローグ.yaml」
---
index: '1'
href: "/n4151gm/1/"
chapter: ''
subchapter: ''
subtitle: プロローグ
file_subtitle: プロローグ
subdate: 2020/09/10 07:00
subupdate: ''
element:
data_type: html
introduction: ''
postscript: ''
body: |-
<p id="L1"> </p>
<p id="L2"> 三十歳まで童貞だと魔法使いになれるらしい。</p>
<p id="L3"> それなら、三十歳まで処女だと何になれるの?</p>
<p id="L4"> そんなことを考えながら迎えた三十歳の誕生日。</p>
<p id="L5"> 深夜までの残業を終えて、どうにか終電を逃すまいと無理して点滅信号を渡ったのがいけなかったみたい。</p>
---
「小説データ\小説家になろう\n4151gm 転生王女は世界を救いません!\[もり] 転生王女は世界を救いません!.txt」

[#3字下げ][#中見出し]プロローグ[#中見出し終わり]



 [#漢数字=]歳まで童貞だと魔法使いになれるらしい。
 それなら、三十歳まで処女だと何になれるの?
 そんなことを考えながら迎えた三十歳の誕生日。
 深夜までの残業を終えて、どうにか終電を逃すまいと無理して点滅信号を渡ったのがいけなかったみたい。
---

425名無しさん:2021/05/09(日) 16:59:13 ID:H84hZHVc
>>424 での narou.rb の設定

[Local Variables]
hotentry=false
hotentry.auto-mail=false
concurrency=false
logging=false
update.strong=false
update.convert-only-new-arrival=false
convert.no-open=false
convert.inspect=false
convert.filename-to-ncode=false
download.use-subdirectory=false
send.without-freeze=false
send.backup-bookmark=false
guard-spoiler=false
normalize-filename=false
default.enable_half_indent_bracket=true
ebook-filename-length-limit=84
default.enable_convert_num_to_kanji=true
default.enable_kanji_num_with_units=true
default.kanji_num_with_units_lower_digit_zero=1
default.enable_alphabet_force_zenkaku=false
default.enable_auto_join_in_brackets=true
default.enable_ruby=true
default.enable_illust=true
default.enable_convert_horizontal_ellipsis=true
default.enable_prolonged_sound_mark_to_dash=true
default.slice_size=32
default.author_comment_style=simple
default.enable_kana_ni_to_kanji_ni=false
default.enable_pack_blank_line=true
device=kindle
[Global Variables]
aozoraepub3dir=/home/narou/AozoraEpub3
line-height=1.8
server-port=58761
no-color=false
server-digest-auth.enable=false
over18=true

426名無しさん:2021/05/30(日) 15:08:55 ID:spGlB.Oo

2021年07月20日になろうグループ完全SSL化 (API含)

ttps://blog.syosetu.com/index.php?itemid=4242

API含めてSSL接続のみになる。

427作者★:2021/06/01(火) 00:11:12 ID:???
>>424
default.kanji_num_with_units_lower_digit_zero=1
これの影響みたいですね(バグっぽい)
2以上なら大丈夫でしたので、回避する場合は2以上を指定してください

428作者★:2021/06/01(火) 00:13:19 ID:???
>>426
何が言いたいのかわからん

429名無しさん:2021/06/01(火) 09:50:58 ID:/w7wrhXs
>>427
default.kanji_num_with_units_lower_digit_zero=2 にしたら問題無くなったみたいです。
おかしかった箇所を何ヶ所か確認した限りではすべて正しく変換されているので、多分これで解決でしょう。
回答ありがとうございます。

430名無しさん:2021/06/15(火) 21:06:46 ID:???
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'

431名無しさん:2021/06/15(火) 21:07:20 ID:???

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'

すみません、よろしくお願いします

432作者★:2021/06/15(火) 22:43:38 ID:???
>>430
> 必須ツール
> Ruby 2.7 以上

433名無しさん:2021/06/16(水) 02:40:06 ID:???
>>432
ありがとうございます!
Ruby3をインストールしたら無事動きました…

434名無しさん:2021/06/17(木) 00:35:21 ID:7IzF./Ao
>>432
Wikiには、
> インストール
>> Ruby をインストールします。
>>> Download → RubyInstallers の欄にある Ruby+Devkit 2.5.?-? (x64) をダウンロードし、インストールします。
と書いているので、こちらの更新もしておいた方がいいかもしれません。

435435:2021/06/28(月) 13:35:58 ID:i0I7MMFo
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

436435:2021/06/28(月) 13:37:05 ID:i0I7MMFo
続き
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

437435:2021/06/28(月) 13:37:26 ID:i0I7MMFo
最後
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>'

438名無しさん:2021/07/04(日) 14:39:37 ID:Htls6l7k
>>435
再インストールするときに \MyNovel と \.narousetting のフォルダの削除も試してください、うちはそれで治りました。
小説データのバックアップは忘れずに、小説データ(5GB)を全部フォルダに戻すと再発したので新しくDLしたほうがいいかも

439435:2021/07/05(月) 10:52:51 ID:NjeyoDVM
>438
ありがとうございます。
再インストールというのは、narou.rbのみでしょうか。
gem uninstall narou
にてアンインストール後、新規フォルダ(空)で
narou init
を実行してみましたが、同じ結果でした。

440438:2021/07/05(月) 19:13:43 ID:XS2y9tI.
Cドライブのユーザーフォルダの中にある \.narousetting に設定が残っていて
再インストールした後もそこから不具合が再現しているみたいです。

441435:2021/07/08(木) 20:46:07 ID:sc4DT1IQ
とりあえずrubyを再インストールしました。
今のところ正常に動いてますが、いつの間にか動かなくなったりするんですよねぇ。
数日様子見です。

442名無しさん:2021/07/17(土) 15:25:21 ID:4HpAx2CM
Narou.rb のバージョン:
3.8.0
OS のバージョン:
Windows 10 Home
その他環境情報(任意):web UI使用時

何が起きたのか:
2週間ほど前から新規小説が一切ダウンロードできなくなりました。
URLを入れてダウンロードを押しても「キューに積まれた処理の数」が
一瞬赤くなりますがすぐに消えてWEB UIには履歴の表示は出ません。
すでに登録済みの小説は問題なく更新可能です。

ログにエラーが出ていますがPCに詳しくないのでどう解決していいのか分からす
なんとか出来ないものかと書き込みさせていただきました。


#<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'

443名無しさん:2021/07/17(土) 17:57:44 ID:sawdg8B.
>> 442

432にもあるように
> 必須ツール
> Ruby 2.7 以上
なので、Rubyをアップデートしてください。

444442:2021/07/17(土) 19:33:12 ID:4HpAx2CM
>>443
無事解決しました。
ありがとうございました。

445416:2021/07/30(金) 21:03:46 ID:8ffO/6L.
>>417
しばらく読んでいなくて放置していたため返事が遅くなりすみません

>AozoraEpub3の環境を新しくすることをお勧めします(OpenJDK 使うなど)
このOpenJDKを使うとは何をすればいいのでしょうか?
一応Ruby本体もAozoraEpub3も最初から入れ直してみましたがエラーは変わらずでした
よろしくお願いします

446名無しさん:2021/07/31(土) 00:24:52 ID:5UVViGsQ
>>445
>このOpenJDKを使うとは何をすればいいのでしょうか?
現在、Java実行環境に、OracleのJava 8 ランタイムを利用しているかと思いますが、新しいOpenJDKなどを利用しましょうということです。
例 ttps://docs.microsoft.com/ja-jp/java/openjdk/download
Long Term Support な ver.11がよろしいかと。

新しい環境で narou init して、新しいAozoraEpub3を指定しましたか。

447名無しさん:2021/07/31(土) 11:10:07 ID:???
>>446
ありがとうございます
ver.11入れてみましたがやはり同じエラーが出ます
Java8は削除しないといけないんですかね?

>新しい環境で narou init して、新しいAozoraEpub3を指定しましたか。
AozoraEpub3-1.1.0b46が最新ですよね?
verは更新されていませんでしたが一応置き換えてnarou initはしています

448名無しさん:2021/07/31(土) 19:32:09 ID:5UVViGsQ
>>447
>Java8は削除しないといけないんですかね?
java -version で現在使用しているjavaが確認できます

私もこの小説を頻繁に update していますが、エラーが起きたことはないです。
Win 10 64bit 21H1
openjdk 11.0.11 2021-04-20
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x64-mingw32]
AozoraEpub3-1.1.1b9Q

>AozoraEpub3-1.1.0b46が最新ですよね?
AozoraEpub3には改造版があります。narou init で設定できるのは55Qまでです。
>>405 >>406
AozoraEpub3-1.1.1b9Q を手動で設定。
AozoraEpub3-1.1.0b55Q を narou init で設定。
AozoraEpub3-1.1.0b46 を narou init で設定。
いずれも問題なく変換できます。

449名無しさん:2021/07/31(土) 20:34:47 ID:FDEqbTMM
>>448
openjdkになっていました
windows7 pro 64bit
openjdk version "11.0.11" 2021-04-20
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x64-mingw32]
AozoraEpub3-1.1.0b46

rubyは2.5から2.7に上げてみましたが同じでした
AozoraEpub3-1.1.0b46で問題ないならupdateしても意味ないですね
サブPCにも入れていたのを思い出したので確認したらruby2.5でJava8ですが問題なく変換できました

コマンドプロンプトでインストールしたgem install narouとnarou initの設定を削除することはできるんでしょうか?

450名無しさん:2021/07/31(土) 21:35:36 ID:5UVViGsQ
>>449
エラー内容が変わっていないのであれば、作者様もおっしゃっていますがAozoraEpub3が正常に動作していないので、AozoraEpub3の環境をまっさらな状態から作り直した方がいいですよ(上書きコピーなどではなく)
Java を OpenJDK にできたのであれば、あれこれやる前に AozoraEpub3 も改造版に入れ替えてみては?
ttps://github.com/kyukyunyorituryo/AozoraEpub3

451名無しさん:2021/07/31(土) 22:37:17 ID:???
>>450
AozoraEpub3の環境をまっさらな状態から作り直すにはどうしたらいいのでしょうか?

452名無しさん:2021/08/04(水) 01:03:19 ID:GhrCPQoc
はじめまして。
アップロードをしてから、

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'

となってしまいます。
どのように対応してよいかまるで分かりません。
Javaのアップロードは試しました。

453452:2021/08/04(水) 01:08:37 ID:GhrCPQoc
すみません。
これはおそらくRubyをアップロードしろ、ということでしょうか(質問の上記を検索したので、試してみます)

454名無しさん:2021/08/04(水) 04:26:27 ID:???
>>452-453
ttps://github.com/whiteleaf7/narou/wiki#require_tools
Ruby 2.7 以上

Rubyのバージョンアップデートが完了したら再度、gem install narouする必要があるかと

455452:2021/08/04(水) 21:42:12 ID:GhrCPQoc
>>454
Rubyアップロードをしたあとにっちもさっちもいかない状況でしたが、
レスを見て解決しました

助かりました。ありがとうございます。

456sage:2021/08/15(日) 17:01:17 ID:suykhfJ.
はじめまして、本日narou.rbのアップデートを行った際rubyを入れなおしたのですが、以下のようなエラーが出てどうしてよいかわからなく相談にきました
narou.rbをアップデート後、入れなおしたのはrubyのみです
対処法がわかるようでしたらアドバイスを頂けるとありがたいです
※本文が長すぎると警告が出ましたのでエラー部分以外を削っています


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

457sage:2021/08/15(日) 17:03:19 ID:suykhfJ.
>>456
書き忘れましたが、このログはgem install narouを行った際の物です
よろしくお願いします

458sage:2021/08/15(日) 17:36:24 ID:suykhfJ.
456ですが、もしかしたらと思うことが出てきましたので書き込んでおきます
ユーザー名が2バイト文字なので(漢字)それが悪影響を及ぼしているのかも?
と思っています。ただ、今まで(ruby2.5環境)は動いていたので本当にそれが原因なのか確信が持てません

459sage:2021/08/16(月) 05:28:18 ID:fqJzKOmc
456です
進展がありましたので書き込みます

ログを調べていたところ
C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:253:in `mkdir': Permission denied @ dir_s_mkdir - C:/Users/���V���Y/.local (Errno::EACCES)
が気になったのでネット情報を漁ったら書き込み権限がユーザーにないのが原因との情報があり、念のため該当フォルダを確認したところ管理者にしかフルアクセスが無かったのを
ユーザーにもフルアクセスを与えたところ状況が改善しました。
この後書き込みが無ければ問題は解決したものと思ってください

460名無しさん:2021/08/20(金) 23:43:46 ID:???
不具合のように思われるので報告と質問です。

作品の更新時、稀に「更新後の話数: 0」と処理される場合があります。
このとき、narou.rbはエラーを出しません。
再現性が悪く原因がわからないのですが、対処方法はありますか。

-----------------------------------------
Narou.rb のバージョン: 3.8.0
OS のバージョン:FreeBSD 13.0-RELEASE-p3
その他環境情報(任意):
何が起きたのか:

$ narou u -a

実行時に、稀に任意の作品で「更新後の話数: 0」となる場合がある。
数千作品の更新あたり1回くらいの割合で発生する。

(例)- - - - - - - - - - - - - - - - - - - - - - - - - - -
追放された悪役令嬢が家宝の鎧で返り咲く
更新後の話数が保存されている話数より減少していることを検知しました。
ダイジェスト化されている可能性があるので、更新に関しての処理を選択して下さい。

保存済み話数: 36
更新後の話数: 0

1: このまま更新する
2: 更新をキャンセル
3: 更新をキャンセルして小説を凍結する
4: バックアップを作成する
5: 最新のあらすじを表示する
6: 小説ページをブラウザで開く
7: 保存フォルダを開く
8: 変換する
> 1
ID:84 追放された悪役令嬢が家宝の鎧で返り咲く は一部の話が削除されています
追放された悪役令嬢が家宝の鎧で返り咲く の更新が完了しました
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

もう一度更新すると元の話数に戻る

$ narou u 84
ID:84 追放された悪役令嬢が家宝の鎧で返り咲く のDL開始
第1部分 一話 (1/36)
 (省略)
第36部分 三十六話 (36/36)
追放された悪役令嬢が家宝の鎧で返り咲く の更新が完了しました
ID:84 追放された悪役令嬢が家宝の鎧で返り咲く の変換を開始
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています..変換しました
[アネコユサギ] 追放された悪役令嬢が家宝の鎧で返り咲く.epub を出力しました
EPUBファイルを出力しました

なろう、カクヨムのサイトの掲載作品の両方で確認。
「1: このまま更新する」を選ぶと更新される。

なお目次が取得できないときは正常なエラーとなる。
(例)- - - - - - - - - - - - - - - - - - - - - - - - - - -
[ERROR] 小説が削除されているか非公開な可能性があります
千の彼方 を凍結しました
[ERROR] https://ncode.syosetu.com/n4409cz/ の目次データが取得出来ませんでした
ID:646 千の彼方 の更新は失敗しました
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

461作者★:2021/08/21(土) 00:03:17 ID:???
>>460
再現方法がわからないと修正は難しそうですが、
対処方法? とりあえず勝手に更新してほしいなら、
download.choices-of-digest-options
を設定すれば良いと思います

462名無しさん:2021/09/04(土) 14:08:19 ID:???
>>461
ありがとうございます。
常に全部更新していいかというと微妙なのが困りどころです。
環境はそのままですが、最近調子が良くなって問題が再現しなくなりました。
一時的な何かの支障だったと考えることにします。

463名無しさん:2021/09/28(火) 09:39:04 ID:J.Dge3wI
Narou.rb のバージョン:3.8.0

OS のバージョン:win10 20H2

その他環境情報(任意):

何が起きたのか: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/device.rb:153:in `copy_to_documents': パラメーターが間違っています。 (Device::SendFailure)
        と出て止まってしまう
        KindleかPCが悪いかわからない

再現方法(何をやったら起こったのか詳細に):小説のアップデート中に必ず起きます

464名無しさん:2021/10/23(土) 22:33:07 ID:???
Narou.rb のバージョン:3.8.0
OS のバージョン:Debian 11.1 Intel-x64
何が起きたのか: タイトルにパス区切り記号(/)を含むなろう掲載小説でダウンロード・変換までは正常だが、
AozoraEpub3に変換済みのファイルを渡す際にパス区切り記号の後に余計なデータが繋がり、File name too longで
エラーになる。
再現方法: なろう掲載小説 n6328ec をダウンロード・変換させる。

465名無しさん:2021/11/06(土) 23:45:40 ID:???
win10のシステムロケールの設定で"ベータ: ワールドワイド言語サポートでUnicode UTF-8を使用"にチェック入れてるとファイル変換段階でバグっちゃいますねー

466名無しさん:2021/11/07(日) 16:17:25 ID:???
>>465だけど、英語環境で動かないって既に議論されてたね。ごめんなさい

467名無しさん:2021/12/16(木) 20:05:32 ID:fn9EN6v.
"narou l"でリストID:1000以上を表示するとID3桁未満とID4桁でカラムがズレます。
これだけなら大した問題ではないのですが各所で4桁対応がされていない可能性があります。

468名無しさん:2021/12/20(月) 07:46:42 ID:wRlianl.
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'

再現方法:narou d N7295FL

OS再インストール直後で、ほとんどの環境は入れたばかりです。
以前はダウンロードできていたタイトルで、再ダウンロードの現在発生している状況です。

469名無しさん:2021/12/22(水) 07:06:11 ID:EychTgLQ
>468

お騒がせして申し訳ありませんでした。自己解決しました。

その後、他のタイトルでも同様の「`[]' for false:FalseClass」エラーが出現するようになったため再度調査しました。

結果、rawではダウンロードできている話が本文以下ではサイズ0となっており、ファイルは存在するが中身がない、という状態であることがわかりました。

対処としては、本文以下のサイズ0の.yamlファイルを削除したのちにupdateを掛けることで修復できました。

今回の問題の起点となった、「htmlダウンロード後本文への変換が、いつの間にかサイズ0で失敗していた。しかも最新話ではないことから、途中の特定話が修正されたかなにかで再ダウンロードされた際に発生したと思われる」については、発生タイミング、原因など不明なままですので、今後何かわかればまた投稿させていただきます。

お騒がせしました。

470名無しさん:2021/12/28(火) 15:06:26 ID:Q5APNNrI
Narou.rb のバージョン:3.8.1
OS のバージョン:Windows 8.1 Pro
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
何が起きたのか:Narou.rbの変換が失敗する
初ダウンロードの小説です。

C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.1/lib/extension.rb:39:in `renam
e': No such file or directory @ rb_file_s_rename - (D:/@epub/小説データ/小説家に
なろう/33/n3398fz 【読んで後悔させません!】ブレイドスキル・オンライン 〜ゴミ職
業『サモナー』で最弱武/f7e766f057eb554396d1fee1778b1d, D:/@epub/小説データ/小説
家になろう/33/n3398fz 【読んで後悔させません!】ブレイドスキル・オンライン 〜ゴ
ミ職業『サモナー』で最弱武/[9月25日漫画『底辺領主の勘違い英雄譚』&『ブレスキ
』発売! さらに『貧乏令嬢』『黒天の魔王』『破滅フラグしかない悪役貴族』『処刑令
嬢逆行記』発売中! 一つでも気になった方は検索を! 作者:馬路まんじ] 【読んで後
悔させません!】ブレイドスキル・オンライン 〜ゴミ職業『サモナー』で最弱武器『弓
使い』でクソステータス『幸運値極振り』の俺、いつのまにか『ラスボ...) (Errno::ENO
ENT)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.1/lib/extension.rb:39:in
`write'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.1/lib/novelconverter.rb:
404:in `block in convert_main'

エラーが発生したため終了しました。

471名無しさん:2021/12/28(火) 15:09:35 ID:Q5APNNrI
backtraceのログを貼ろうとしたら、本文が長過ぎとエラーが出て貼り付けできませんでsi
た。

472名無しさん:2021/12/29(水) 10:17:21 ID:???
ファイルパスが長すぎるとエラーになるので出力ファイル名の設定等を使って短くしましょう


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板