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

不具合報告スレ

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

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

OS のバージョン:

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

何が起きたのか:

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

-----------------------------------------
エラーメッセージは再現方法に併記。
その際は --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:???
ファイルパスが長すぎるとエラーになるので出力ファイル名の設定等を使って短くしましょう

473名無しさん:2022/01/24(月) 10:13:15 ID:JutCV7xM
Narou.rb のバージョン:3.8.1

OS のバージョン: Windows 10 21H2 (19044.1469)

その他環境情報(任意): 改造版AozoraWpub3(kyukyunyorituryo) 1.1.1b12Q

何が起きたのか:特定の小説が返還の際にファイルサイズは正常だが破損する。
正常に変換ができたと表示される

再現方法(何をやったら起こったのか詳細に):https//syosetu.org/novel/232822/
https//kakuyomu.jp/works/1177354054935344286
                      上二つのような小説を変換する際、Narou rb 側では変換が成功したと表示されるが、epubファイルが破損していて開けない。ファイルサイズは正常。

つい先日までは全く同じ環境(Java,Rubyのバージョンも含め)正常に動作していましたが、最近になってepubファイルが破損するようになりました。
naarou rb ではエラーログが一切表示されませんでした。

474名無しさん:2022/01/24(月) 13:43:25 ID:???
>>473
超縦書2.3.1ではエラーが出て開けないね(ファイルが壊れています。コンテンツを再ダウンロードしてお試しください。(003003))
Kinoppy for Windows3.2.16だと開けるけど目次が認識されてない
変換対象をKindleにしてmobiを出力した場合はKindle PaperwhiteとKindle for Windowsどちらでも目次含めて問題なく開ける

Narou.rb Version 3.8.1
Win10 21H2 (OS ビルド 19044.1466)
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
AozoraEpub3-1.1.1b12Q

475名無しさん:2022/01/24(月) 20:05:22 ID:JutCV7xM
>>474

超縦書きで開けないのと、メインで使ってるiPadのブックアプリで使えないです...
メイン読書端末がiPadなんでどうしてもepubにしたいんですよ...

他の小説だと全く同じ環境(挿絵ありなしも確認済み)でも正常に作られるんですが...

476名無しさん:2022/01/25(火) 13:46:40 ID:???
それAozoraWpub3の問題だからここに報告しても解決しない。
改造版を使ってるなら改造した人に報告すれば修正してくれるかも。

試しにチェッカーに通して見た感じnavの入れ子構造に問題があってそれでエラーになってる。
サクッとタグを消したら普通に読み込まれたから、多分ね。

477名無しさん:2022/01/25(火) 23:25:56 ID:nyZ./Ey.
>>473
改造版の小説ダウンロード機能を使って変換したEPUBなら超縦書で開けた。
narou.rbが出力するテキストの見出しが変なのでは。

478名無しさん:2022/01/27(木) 13:29:46 ID:zfYkuadw
>>477
こちらの環境でも改造版で変換すると確かに開けました。

479名無しさん:2022/01/29(土) 09:07:23 ID:hdp2CtI.

Narou.rb のバージョン:3.8.1

narou clean -af

してもゴミファイルが消えない。

本文の方のyamlはキレイになったが、rawの方のhtmlファイルは掃除されていない。

480だんり:2022/02/22(火) 00:17:33 ID:???
Narou.rb のバージョン:3.8.1

目次データが取得出来ませんでした
何らかの理由により目次が取得できませんでした

481bulrush:2022/02/26(土) 15:18:19 ID:mOLugSBY
Narou.rb のバージョン:3.8.1
m1mac
ruby3.1.0

タイトルの最後に全角スペースがあると変換に失敗する問題があったので
暫定ですが下記の修正をして解決しました。
普段rubyを使っていないので、修正箇所も含めもっと良い方法があるかと思います。
何かと対応していただければ助かります。

例:「八男って、それはないでしょう! 」

def get_file_title
# すでにデータベースに登録されているならそれを引き続き使うようにする
file_title = record&.dig("file_title")

return file_title if file_title
ncode = @setting["ncode"]
return ncode unless @setting["append_title_to_folder_name"]
scrubbed_title_ = Helper.replace_filename_special_chars(get_title, true).strip
scrubbed_title = scrubbed_title_.gsub(/ /," ").strip

Helper.truncate_folder_title("#{ncode} #{scrubbed_title}")
end

482名無しさん:2022/03/02(水) 21:00:25 ID:mdzuvD3A
>>479
narou/lib/command/clean.rb を確認したところ
関数 find_orphans では
raw フォルダで拡張子 txt のファイルと
本文 フォルダで拡張子 yaml のファイルのみをチェックし、
拡張子 html のファイルはチェックしていないようです。
このため、raw フォルダで拡張子 html のファイルが削除されないと思います。


>>481
下記の条件で小説家になろうから epub ファイルに変換してみましたが、
問題なく変換できることを確認しました。
このため、環境による影響も考えられます。
報告用テンプレに沿った形式で不具合の詳細を記載してください。

[条件]
Linux Mint 20.3
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
openjdk 11.0.13 2021-10-19
narou 3.8.1
AozoraEpub3 1.1.0b46
対象小説「n8802bq 八男って、それはないでしょう! 」

483cube:2022/03/23(水) 22:11:48 ID:zSqMg0R2
要望スレとどちらに書こうかと思いましたが一応不具合なのでこちらに
Narou.rb のバージョン:3.8.1

OS のバージョン:windows10

その他環境情報(任意):kindleのファームウェアバージョン kindle 5.13.7

何が起きたのか:ttps://ncode.syosetu.com/n9584gd/ ←この作品をkindle paperwhiteに変換&転送したところ
kindle上でファイルが表示されない

再現方法(何をやったら起こったのか詳細に):PCからはkindle内に変換されたファイルがあるのが確認できましたので
もしやと思ってファイル名を削って短くしたらkindle側でもファイルが表示されました。

変換したファイル名が長すぎた場合narou.rb側で自動で削ってくれる仕様にしていただけるとうれしいです。

484名無しさん:2022/03/24(木) 08:25:12 ID:ljAlifuY
>>483
ebook-filename-length-limit が既に存在します。
詳細はヘルプ等で確認してください。

485名無しさん:2022/03/24(木) 17:32:08 ID:PScVId7w
Narou.rb のバージョン:3.8.1

特定の作品を変換したEPUBが、一部のEPUBリーダーでエラーが出て読み込むことができません。
読めないEPUBを pagina EPUB Checker にてチェックしましたところ、以下のようなエラーが確認されました。
---------------------------------------------------
ERROR (RSC-005) at "sample.epub/OPS/xhtml/nav.xhtml" (行数 36, 桁数 11):
ファイル解析時のエラー: 要素 "ol" はまだここには書けません. ; ここに書かれるべきものは 要素 "a" または "span" です.
---------------------------------------------------

どうやら、目次が「章+話」形式になっている作品で、
<ol>の下に<ol>が入れ子になっているのがEpubの書式として反しているように思われます。

入れ子の<li><ol>タグを削除してみましたところ読み込めるようにはなりました。
しかしその場合は書式チェックで以下のようなエラーが出ます(閲覧には支障ありません)。
---------------------------------------------------
ERROR (PKG-006) at "sample.epub/sample.epub":
mimetypeファイルエントリが存在しないか、アーカイブの先頭以外の場所に存在しています.
---------------------------------------------------


またこちらも読み込みには支障がありませんが
epub内に OPS/gaiji フォルダが作られる一部作品では以下のようなエラーも確認されます。
---------------------------------------------------
ERROR (RSC-008) at "sample.epub/OPS/css/vertical_text.css" (行数 60, 桁数 40):
参照されているリソース "OPS/gaiji/u308c-u3099.ttf" がOPF manifest内で宣言されていません.

WARNING (OPF-003) at "sample.epub/sample.epub":
アイテム "OPS/gaiji/u3041-u3099.ttf" がEPUB内に存在しますが、OPFマニフェストで宣言されていません.
---------------------------------------------------

486名無しさん:2022/03/24(木) 17:48:31 ID:k8mfOkyI
>>485
古いAozoraEpub3使っているのだろう。せめてAozoraEpub3のバージョン書くべきでは。

487485:2022/03/25(金) 00:09:39 ID:2QZe3oPI
>>486
AozoraEpub3のバージョン:1.1.0b46
です。公式から誘導されているページにある最新版です。
6年近く更新されていないようなのでバージョンはこれ一択だと思い省きました。

488cube:2022/03/25(金) 00:48:41 ID:BPrYIEHs
>>484
環境設定→詳細→ebook-filename-length-limitで設定出来ました
ありがとうございました♪

489名無しさん:2022/03/25(金) 18:14:03 ID:???
ttps://github.com/kyukyunyorituryo/AozoraEpub3

490485:2022/03/26(土) 00:03:35 ID:sB3twpio
>>489
別に改造版なんてのがあったんですね…
早速導入し解決しました、ありがとうございました

491名無しさん:2022/04/10(日) 11:06:02 ID:FnCiXqdc
Narou.rb のバージョン:3.8.0(3.8.1でも発生すると思われる)
OS のバージョン:FreeBSD 12.2-RELEASE-p7
何が起きたのか:command diffで差分があっても表示されない
再現方法(何をやったら起こったのか詳細に):
小説の保存フォルダに"["や"{"(globのワイルドカード)があると発生する
ttps://github.com/whiteleaf7/narou/blob/1b07ae1ae017a581bc987622ba9dcd26728cf28c/lib/downloader.rb#L233
ex: ttps://ncode.syosetu.com/n6761ha/
挿絵関係やcommand cleanでも不具合が発生すると思われる。
Helper.replace_filename_special_chars に"[]{}"も加えたほうがよい。

確認中にもう一つ見つけたのでついでに。
何が起きたのか:command diffで小説の保存フォルダがないとエラーが発生する
[ERROR] /usr/home/*****/kindle/narourb/小説データ/小説家になろう/n6761ha 初心者キャンパーの異世界転生 スキルキャンプでなんとか生きていきます。 が見つかりません。
保存フォルダが消去されていたため、データベースのインデックスを削除しました。
/usr/home/*****/.gem/ruby/2.7/gems/narou-3.8.0/lib/command/diff.rb:253:in `get_diff_list': undefined method `empty?' for nil:NilClass (NoMethodError)
from /usr/home/*****/.gem/ruby/2.7/gems/narou-3.8.0/lib/command/diff.rb:277:in `display_diff_list'
from /usr/home/*****/.gem/ruby/2.7/gems/narou-3.8.0/lib/command/diff.rb:109:in `execute'

492名無しさん:2022/04/16(土) 19:21:53 ID:???
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)

493名無しさん:2022/04/16(土) 19:24:55 ID:qH4gsX3k
>>492
G:/webnovel/.narou/lock.yaml を削除

494名無しさん:2022/04/16(土) 22:22:13 ID:???
>>493
解決しました
ありがとうございます

495名無しさん:2022/04/21(木) 15:23:47 ID:7V1SxY1Y
>>254,258,259

なかなか対応されないので、修正方法を検討してみました。

lib/downloader.rb
879-881
[変更前]
if old_subupdate == ""
next latest_subupdate != ""
end

[変更後]
if old_subupdate == ""
next latest_subupdate != "" || latest_subdate > old_subdate
end

また、subdate が download_time より新しい場合は、
restore346 と同じように以下の処理で変更すれば対応できそうです。

def restore_subupdate(toc)
subtitles = toc["subtitles"]
modified = false
subtitles.each do |subtitle|
subupdate = subtitle["subupdate"]

next if subupdate.present?

subdate = subtitle["subdate"]
download_time = subtitle["download_time"]
next if Time.parse(subdate) <= download_time

subtitle["subdate"] = download_time.strftime("%Y/%m/%d %H:%M")
modified = true
end

if modified
puts "<green>#{toc["title"].escape} の目次データを復元しました</green>".termcolor
end

modified
end

以上、よろしくお願いします。

496名無しさん:2022/07/16(土) 09:39:02 ID:B0TQuIJs
Narou.rb のバージョン:narou 3.6.0
OS のバージョン:windows 10
その他環境情報(任意):
何が起きたのか:Narou rbがアップデートできない。
再現方法(何をやったら起こったのか詳細に):
Narou web の「Narou rbについて」をクリックすると「最新版(3.8.1)があります」と表示され、
更新ボタンを押すと「既に最新版です」とでます。
なのに次に「Narou rbについて」をあけても、表示は常に3.6.0のままです。そしてまた「最新版があります」表示です。
コンソールでupdateをしてもupdateするものは無いとでて、バージョンは3.6.0のままです。
最新版に更新ができない状態です。

497名無しさん:2022/07/17(日) 17:19:02 ID:UcUPNBXs
>>496

391,392 と同様の現象に見えます。

498496です。:2022/07/18(月) 10:13:42 ID:bu9fV6e2
返信ありがとうございます。
392と同じ方法でやってみましたが、コンソール上でエラーがでました。やはりアップデートできないようです。
もしかして私個人のコンピューター上の問題なのかもしれません。

499名無しさん:2022/08/09(火) 04:30:37 ID:mxzR2W0c

>496
RubyのVerがないが、Ver.3.7以降はRuby3.0系以上でないとちゃんと動かなかったはず…

500名無しさん:2022/08/13(土) 19:52:08 ID:OzDoQTAc
Narou.rb のバージョン:Version 3.8.1
OS のバージョン:Windows 10 pro 19044.1889
その他環境構築:
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
openjdk version "18.0.2" 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+9-61)
OpenJDK 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing)

何が起きたのか:
convert.copy-to 変換したらこのフォルダにコピーする が動作しない
deviceはEPUB、convert.copy-to-groupingは未設定。

再現方法(何をやったら起こったのか詳細に):
WEB UIで小説を更新してもコマンドラインで更新しても変換したEPUBファイルがコピーされない。
コピー先フォルダにあるファイルの更新日時からすると、最後に動作したのは20220810なので、windowsアップデートの影響かもしれない。

501名無しさん:2022/08/14(日) 20:17:35 ID:OyPIks7g
>>500

Windows 上の OpenJDK 18 系統では変換時にエラーになると
Wiki の ISSUE や質問スレに出ていますが、
変換できてコピーに失敗していると判断している理由は何でしょうか。

通常、以下のような出力があると思いますが、どのような内容になっているのでしょうか。

[13:56:36] 縦書用の変換が終了しました
[13:56:36] AozoraEpub3でEPUBに変換しています..........変換しました
[13:56:40] [AA] BB.epub を出力しました
[13:56:40] EPUBファイルを出力しました
[13:56:40] C:/Users/XX/novel/copy/[AA] BB.epub へコピーしました

502500:2022/08/14(日) 20:21:11 ID:???
>>500
自己解決
java homeで使っているjavaのversionを18にしてしまったことが原因だったようです。
java11だと普通に動きました。

503500:2022/08/14(日) 20:29:30 ID:???
>>501
書き込んだ後にレス読みました。お恥ずかしい。
変換できてコピーに失敗していると判断した理由は、保存先フォルダ内のepuファイルはtxtファイルと同じ日付で更新されていたからですね。
が、とっておいたログを読むとモロに変換のところでエラーはいているのですよね。
もう少し状況まとめて書き込むべきでした。

504名無しさん:2022/09/23(金) 20:11:44 ID:vUUPDU7U
>>146-151

最近、更新の実行時に変換処理で Out of memory が発生するようになったので、
「Ruby 省メモリ」で検索したところ、
require "objspace"
puts "[#{__FILE__}][#{__LINE__}] memsize_of_all: #{ObjectSpace.memsize_of_all / 1000} KB, rss: #{`ps -o rss= #{Process.pid}`.chomp} KB"
で、メモリ使用量を確認できそうだったので、実施してみました。

実行したところ、KindleStrip の処理で元の mobi ファイルの
2倍以上のメモリを使用していました。

しかも kindlegen で作成される mobi ファイルでは、画像ファイルが多い場合、
1GB 前後の容量になるものもあるため、問題が発生していました。

この問題を回避するため、KindleStrip での処理をファイルベースで行うように
修正したところ、上記のような場合にメモリ使用量を劇的に減らすことができました。

下記の環境で動作確認を行いましたので、適用いただけると幸いです。

[動作環境]
Linux Mint 20.3
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
narou.rb 3.8.1

ソースは、次以降に貼り付けます。

505名無しさん:2022/09/23(金) 20:13:29 ID:vUUPDU7U
----ここから----
require "tempfile"

KINDLESTRIP_VERSION = '2.00'

class StripException < StandardError; end

class SectionStripper
def self.updateEXTH121(srcs_secnum, srcs_cnt, mobiheader, verbose = false)
mobi_length, = mobiheader[0x14...0x18].unpack("N")
exth_flag, = mobiheader[0x80...0x84].unpack("N")
exth = "NONE"
begin
if exth_flag & 0x40 != 0
exth = mobiheader[16 + mobi_length .. -1]
if exth.length >= 4 && exth[0, 4] == "EXTH"
nitems, = exth[8...12].unpack("N")
pos = 12
nitems.times do
type, size = exth[pos ... pos + 8].unpack("NN")
#puts "#{type}, #{size}"
if type == 121
boundaryptr, = exth[pos + 8 ... pos + size].unpack("N")
if srcs_secnum <= boundaryptr
boundaryptr -= srcs_cnt
prefix = mobiheader[0, 16 + mobi_length + pos + 8]
suffix = mobiheader[16 + mobi_length + pos + 8 + 4 .. -1]
nval = [boundaryptr].pack("N")
mobiheader = prefix + nval + suffix
end
end
pos += size
end
end
end
rescue
end
mobiheader
end

def self.strip(infile, outfile = nil, stripfile = nil, verbose = false)
in_file = File.open(infile, "rb")
Tempfile.open('', File.dirname(infile), binmode: "true") do |temp_file|
if in_file.pread(8, 0x3C) != "BOOKMOBI"
raise StripException, "invalid file format"
end
num_sections, = in_file.pread(2, 76).unpack("n")

# 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

506名無しさん:2022/09/23(金) 20:14:03 ID:vUUPDU7U
# 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
----ここまで----

507作者★:2022/09/23(金) 21:30:29 ID:???
>>504
ありがとうございます!

508名無し:2022/10/01(土) 18:48:23 ID:bG/hEyNI
narou webでいつものようになろう小説をダウンロードしてwebでKindleペーパーホワイトへ送信したら突然、題名が保存ファイルのNO、作者がUNKNOWNになってしまいました
原因がわからないので改善方法を教えていただけたら助かります

報告用テンプレ
-----------------------------------------
Narou.rb のバージョン:最新アップデート済

OS のバージョン:Windows10 21H1

その他環境情報(任意):Narou.rb最新、aozoraEpub最新、Ruby3.1.0-1

何が起きたのか:narou web経由でKindlepaperWHITEに送信したら文書の題名と作者の部分がファイルNO、UNKNOWNになってしまう保存

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

narou web立ち上げ→なろう小説をダウンロード(Kindlにメール送信をレ点)実行

509名無し:2022/10/01(土) 18:54:27 ID:bG/hEyNI
スレ間違えました
質問スレに書き込み直します

510名無しさん:2022/11/07(月) 22:11:13 ID:rSzEB68Q
novel18.syosetu.com/n1510gm/
骨から始まる異世界転生〜裸の勇者はスケルトンから成り上がる。 
をダウンロードor変換すると、

AozoraEpub3でEPUBに変換しています.....
エラーが発生しました : This archives contains unclosed entries.
[ERROR] AozoraEpub3実行中にエラーが発生したため、EPUBが出力出来ませんでした

となり変換できません。
解決策等ありましたら教えてください。

511名無しさん:2022/11/07(月) 23:10:26 ID:???
改造版AozoraEpub3にすると良かった気がする。

512名無しさん:2022/11/08(火) 10:36:05 ID:X9SKFbE.
Narou.rb のバージョン:
最新アップデート済み
OS のバージョン:
Windows 10 Home(22H2)

何が起きたのか:
novel18.syosetu.com/n1510gm/
骨から始まる異世界転生〜裸の勇者はスケルトンから成り上がる。
を変換する行程でエラーが発生し、EPUBが作成されません。

再現方法(何をやったら起こったのか詳細に):
novel18.syosetu.com/n1510gm/
を変換する行程でエラーが発生します。
以下、3つのバージョンで試行した際のログになります。

-----AozoraEpub3-1.1.0b32

小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
エラーが発生しました : This archives contains unclosed entries.
[ERROR] AozoraEpub3実行中にエラーが発生したため、EPUBが出力出来ませんでした


-----AozoraEpub3-1.1.0b46

小説状態の調査結果を 調査ログ.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を作成出来ませんでした

513名無しさん:2022/11/08(火) 12:12:59 ID:X9SKFbE.
>>511
やってみましたが駄目でした
(>>512のAozoraEpub3-1.1.0b55Q=改造版)

514名無しさん:2022/11/08(火) 14:17:43 ID:J53/e182
>>513
使っているJAVAとバージョンは?

515名無しさん:2022/11/08(火) 14:21:46 ID:X9SKFbE.
JAVAは8の更新351(ビルド1.8.0_351-b10)です

516名無しさん:2022/11/08(火) 14:43:50 ID:J53/e182
質問スレの409を読もう

517名無しさん:2022/11/08(火) 17:48:53 ID:X9SKFbE.
JAVAを旧バージョンで使うのはセキュリティとか怖そうなので、作者さんの対応を気長に待ちたいと思います
原因となっている文字列等がわかれば、自力で置換対応したいですけど……

518名無しさん:2022/11/08(火) 22:20:40 ID:J53/e182
文字じゃなくて挿絵をオフにするか、改造版AozoraEpub3の最新版を入れるか。

519名無しさん:2022/11/08(火) 23:13:02 ID:X9SKFbE.
>>518
挿絵オフでいけました
ありがとうございます

ちなみに改造版最新は無理でした

-----AozoraEpub3-1.1.1b14Q

小説状態の調査結果を 調査ログ.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を作成出来ませんでした

520名無しさん:2022/11/08(火) 23:54:58 ID:J53/e182
画像がRGBではなくCMYKなのが原因では

521名無しさん:2022/11/10(木) 01:40:22 ID:RdZipSxw
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
エラーメッセージを読むとPCのメインメモリが足りないようだけど。
メインメモリが足りずに画像の読み込みで止まっているようだ。

522名無しさん:2022/11/10(木) 18:03:05 ID:ojASgd1g
20GB以上のメモリが利用可能なはずなので、PCのスペック不足ということは無いはずです
javaが利用するメモリ量の設定が元々あまり大きくないということでしょうかね


新着レスの表示


名前: E-mail(省略可)

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

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

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

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