>>445
>このOpenJDKを使うとは何をすればいいのでしょうか?
現在、Java実行環境に、OracleのJava 8 ランタイムを利用しているかと思いますが、新しいOpenJDKなどを利用しましょうということです。
例 ttps://docs.microsoft.com/ja-jp/java/openjdk/download
Long Term Support な ver.11がよろしいかと。
C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:872:in `block in result': no implicit conversion of Hash into Integer (TypeError)
from C:/Ruby25-x64/lib/ruby/2.5.0/erb.rb:874:in `result'
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/narou-3.8.0/lib/template.rb:53:in `block in get'
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing narou:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20210815-8176-18wllhj.rb extconf.rb
checking for yaml.h... no
checking for _WIN32... no
checking for dlfcn.h... no
checking for inttypes.h... yes
checking for memory.h... yes
checking for stdint.h... yes
checking for stdlib.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for yaml.h... yes
checking for config.h... yes
creating Makefile
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
make "DESTDIR=" clean
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/ext/psych
make "DESTDIR="
generating psych-x64-mingw32.def
compiling ./yaml/api.c
Cannot create temporary file in C:\Users\???V???Y\AppData\Local\Temp\: Invalid argument
make: *** [Makefile:247: api.o] エラー 3
make failed, exit code 2
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/psych-4.0.1/gem_make.out
Narou.rb のバージョン:3.8.0
OS のバージョン:Windows 10 Pro 21H1 19043.1415
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
何が起きたのか: なろう小説、特定話にて、ダウンロードが異常終了する
第166部分 162.冬ごもりをしています (166/176)C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:1047:in `different_section?': undefined method `[]' for false:FalseClass (NoMethodError)
from C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:1017:in `block in sections_download_and_save'
from C:/App/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.0/lib/downloader.rb:990:in `each'
>>473
超縦書2.3.1ではエラーが出て開けないね(ファイルが壊れています。コンテンツを再ダウンロードしてお試しください。(003003))
Kinoppy for Windows3.2.16だと開けるけど目次が認識されてない
変換対象をKindleにしてmobiを出力した場合はKindle PaperwhiteとKindle for Windowsどちらでも目次含めて問題なく開ける
Narou.rb のバージョン:3.8.1
OS のバージョン:win 10 21H2(2022年4月までのアプデ済み)
Ruby:2.6→3.1.1-1
AozoraEpub3:1.1.0b46
何が起きたのか:更新(ダウンロード後)・変換時にエラーがでて処理が完了しない
windowsの4月のアップデートでKB5012599とKB5012117を適用後に
narou,rbにて更新をしようとしましたが、更新が完了せずエラーで止まっていました
確認のためRubyを更新してnarou.rbを再インスト、Aozoraepub3も新規のフォルダーに設定しました
しかし同様の現象がおこり更新と変換ができません
対応よろしくお願い致します
再現方法:更新もしくは変感を実行する
-> /api/convert
#<Thread:0x000002962d06cb40 xxx/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
J:/program/Ruby31-x64/lib/ruby/3.1.0/psych.rb:455:in `parse': (G:/webnovel/.narou/lock.yaml): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
from J:/program/Ruby31-x64/lib/ruby/3.1.0/psych.rb:455:in `parse_stream'
from xxx/psych.rb:399:in `parse'
from xxx/psych.rb:272:in `unsafe_load'
from xxx/psych.rb:649:in `block in unsafe_load_file'
from xxx/psych.rb:648:in `open'
from xxx/psych.rb:648:in `unsafe_load_file'
from xxx/inventory.rb:53:in `rescue in block in init'
from xxx/inventory.rb:46:in `block in init'
from xxx/helper.rb:497:in `block in memo'
from xxx/helper.rb:490:in `synchronize'
from xxx/helper.rb:490:in `memo'
from xxx/inventory.rb:45:in `init'
from xxx/inventory.rb:23:in `block in load'
from <internal:kernel>:90:in `tap'
from xxx/inventory.rb:21:in `load'
from xxx/mixin/locker.rb:21:in `lock'
from xxx/command/convert.rb:200:in `block in convert_novels'
from xxx/command/convert.rb:199:in `each'
from xxx/command/convert.rb:199:in `with_index'
from xxx/command/convert.rb:199:in `convert_novels'
from xxx/command/convert.rb:159:in `block in main'
from xxx/command/convert.rb:152:in `each'
from xxx/command/convert.rb:152:in `main'
from xxx/command/convert.rb:133:in `execute'
from xxx/commandbase.rb:125:in `execute!'
from xxx/commandbase.rb:134:in `execute!'
from xxx/command/convert.rb:123:in `block in execute!'
from xxx/narou.rb:369:in `concurrency_call'
from xxx/command/convert.rb:122:in `execute!'
from xxx/commandline.rb:29:in `run'
from xxx/commandline.rb:43:in `run!'
from xxx/web/appserver.rb:528:in `block (2 levels) in <class:AppServer>'
from xxx/web/web_worker.rb:47:in `block (3 levels) in start'
xxx/psych.rb:455:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
# get mobiheader and check SRCS section number and count
offset0, = in_file.pread(8, 78).unpack("N")
offset1, = in_file.pread(8, 86).unpack("N")
mobiheader = in_file.pread(offset1 - offset0 + 1, offset0)
srcs_secnum, srcs_cnt = mobiheader.unpack("@224NN")
if srcs_secnum == 0xffffffff || srcs_cnt == 0
raise StripException, "File doesn't contain the sources section."
end
puts "Found SRCS section number %d, and count %d" % [srcs_secnum, srcs_cnt] if verbose
# find its offset and length
_next = srcs_secnum + srcs_cnt
srcs_offset, = in_file.pread(4 * 2, 78 + srcs_secnum * 8).unpack("NN")
next_offset, = in_file.pread(4 * 2, 78 + _next * 8).unpack("NN")
srcs_length = next_offset - srcs_offset
if in_file.pread(4, srcs_offset) != "SRCS"
raise StripException, "SRCS section num does not point to SRCS."
end
puts " beginning at offset %0x and ending at offset %0x" % [srcs_offset, srcs_length] if verbose
# it appears bytes 68-71 always contain (2*num_sections) + 1
# this is not documented anyplace at all but it appears to be some sort of next
# available unique_id used to identify specific sections in the palm db
IO.copy_stream(in_file, temp_file, 68, 0)
temp_file.write([(num_sections - srcs_cnt) * 2 + 1].pack("N"))
IO.copy_stream(in_file, temp_file, 4, 72)
# write out the number of sections reduced by srtcs_cnt
temp_file.write([num_sections - srcs_cnt].pack("n"))
# we are going to remove srcs_cnt SRCS sections so the offset of every entry in the table
# up to the srcs secnum must begin 8 bytes earlier per section removed (each table entry is 8 )
delta = -8 * srcs_cnt
srcs_secnum.times do |i|
offset, flgval = in_file.pread(4 * 2, 78 + i * 8).unpack("NN")
offset += delta
temp_file.write([offset].pack("N") + [flgval].pack("N"))
end
# for every record after the srcs_cnt SRCS records we must start it
# earlier by 8*srcs_cnt + the length of the srcs sections themselves)
delta = delta - srcs_length
(srcs_secnum + srcs_cnt ... num_sections).each do |i|
offset, = in_file.pread(4 * 2, 78 + i * 8).unpack("NN")
offset += delta
flgval = 2 * (i - srcs_cnt)
temp_file.write([offset].pack("N") + [flgval].pack("N"))
end
# now pad it out to begin right at the first offset
# typically this is 2 bytes of nulls
first_offset, = temp_file.pread(4 * 2, 78).unpack("NN")
temp_file.write("\0" * (first_offset - temp_file.length))
# now finally add on every thing up to the original src_offset
IO.copy_stream(in_file, temp_file, srcs_offset - offset0, offset0)
# and everything afterwards
IO.copy_stream(in_file, temp_file, nil, srcs_offset + srcs_length)
#store away the SRCS section in case the user wants it output
if stripfile
stripped_data_header = in_file.pread(16, srcs_offset)
strip_file = File.open(stripfile, "wb")
IO.copy_stream(in_file, strip_file, srcs_length - 16, srcs_offset + 16)
strip_file.close
end
# update the number of sections count
num_section = num_sections - srcs_cnt
# update the srcs_secnum and srcs_cnt in the mobiheader
offset0, = temp_file.pread(4 * 2, 78).unpack("NN")
offset1, = temp_file.pread(4 * 2, 86).unpack("NN")
mobiheader = temp_file.pread(offset1 - offset0, offset0)
mobiheader = mobiheader[0, 0xe0] + [-1].pack("N") + [0].pack("N") + mobiheader[0xe8 .. -1]
in_file.close
# if K8 mobi, handle metadata 121 in old mobiheader
mobiheader = updateEXTH121(srcs_secnum, srcs_cnt, mobiheader, verbose)
unless outfile then
out_file = File.open(infile, "wb")
else
out_file = File.open(outfile, "wb")
end
IO.copy_stream(temp_file, out_file, offset0, 0)
out_file.write(mobiheader)
IO.copy_stream(temp_file, out_file, nil, offset1)
out_file.close
end
puts "done" if verbose
end
end
if __FILE__ == $0
puts "KndleStrip v#{KINDLESTRIP_VERSION}. " +
"Written 2010-2012 by Paul Durrant and Kevin Hendricks."
if ARGV.length < 2 || ARGV.length > 3
puts "Strips the Sources record from Mobipocket ebooks"
puts "For ebooks generated using KindleGen 1.1 and later that add the source"
puts "Usage:"
puts " %s <infile> <outfile> <strippeddatafile>" % File.basename(__FILE__)
puts "<strippeddatafile> is optional."
exit Narou::EXIT_ERROR_CODE
else
infile = ARGV[0]
outfile = ARGV[1]
if ARGV.length == 3
stripfile = ARGV[2]
end
begin
SectionStripper.strip(infile, outfile, stripfile, true)
#print "Header Bytes: " + binascii.b2a_hex(strippedFile.getHeader())
rescue StripException => e
warn "Error: #{e.message}"
exit Narou::EXIT_ERROR_CODE
end
end
end
----ここまで----
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:968)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:213)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1032)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:909)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
pid 14852 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
-----AozoraEpub3-1.1.0b55Q
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archives contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:343)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:550)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:970)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:217)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1034)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:911)
at AozoraEpub3.convertFile(AozoraEpub3.java:512)
at AozoraEpub3.main(AozoraEpub3.java:431)
pid 1532 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:14件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.....
--------
Detected encoding = UTF-8
変換開始 : F:\Kindle_WhiteLeaf\Narou_Novel\小説データ\ミッドナイトノベルズ\15\n1510gm 骨から始 まる異世界転生〜裸の勇者はスケルトンから成り上がる。\novel18_syosetu_com_n1510gm.txt
java.io.IOException: This archive contains unclosed entries.
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:534)
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:1090)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:1006)
at AozoraEpub3.convertFile(AozoraEpub3.java:519)
at AozoraEpub3.main(AozoraEpub3.java:438)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at com.github.hmdev.image.ImageUtils.writeImage(ImageUtils.java:203)
at com.github.hmdev.writer.Epub3Writer.writeImage(Epub3Writer.java:1070)
at com.github.hmdev.writer.Epub3Writer.write(Epub3Writer.java:947)
at AozoraEpub3.convertFile(AozoraEpub3.java:519)
at AozoraEpub3.main(AozoraEpub3.java:438)
pid 1988 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした pid 1988 exit 1 [ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
<internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sass-embedded (LoadError)
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:12:in `<class:SassTemplate>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:8:in `<module:Tilt>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/tilt-2.0.11/lib/tilt/sass.rb:3:in `<top (required)>'
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/tools/ruby31/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:17:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/all.rb:7:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/all.rb:7:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:118:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:118:in `boot'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:87:in `execute'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/tools/ruby31/bin/narou:32:in `load'
from C:/tools/ruby31/bin/narou:32:in `<main>'
Refused to apply style from 'http://192.168.1.27:54223/style.css?_=3.8.2'
because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
[07:30:55:873] C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:73:in `block in short_number_option_parse': undefined method `=~' for 10:Integer (NoMethodError)
[07:30:55:877] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:72:in `map!'
[07:30:55:879] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:72:in `short_number_option_parse'
[07:30:55:881] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/diff.rb:83:in `execute'
[07:30:55:884] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
[07:30:55:887] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
[07:30:55:891] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
[07:30:55:894] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
[07:30:55:896] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:686:in `block (2 levels) in <class:AppServer>'
[07:30:55:899] from C:/Ruby/32/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
/api/update_general_lastup
#<Thread:0x000001f3c69411f8 C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:29:in `block in prepare': undefined method `[]' for nil:NilClass (NoMethodError)
if setting["narou_api_url"]
^^^^^^^^^^^^^^^^^
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:26:in `prepare'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:18:in `initialize'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `new'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `update_general_lastup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1576:in `block in parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `catch'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1553:in `order!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1659:in `permute!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1684:in `parse!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:59:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:140:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-02-10 23:07:40] ERROR NoMethodError: undefined method `[]' for nil:NilClass\n\n if setting["narou_api_url"]\n ^^^^^^^^^^^^^^^^^\n\tC:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
「他」を実行した場合
> /api/update_general_lastup
#<Thread:0x000001f3c64dde68 C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:29:in `block in prepare': undefined method `[]' for nil:NilClass (NoMethodError)
if setting["narou_api_url"]
^^^^^^^^^^^^^^^^^
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:26:in `prepare'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update/general_lastup_updater.rb:18:in `initialize'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `new'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:238:in `update_general_lastup'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1576:in `block in parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `catch'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1559:in `parse_in_order'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1553:in `order!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1659:in `permute!'
from C:/Ruby31-x64/lib/ruby/3.1.0/optparse.rb:1684:in `parse!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:59:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/update.rb:140:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-02-10 23:09:39] ERROR NoMethodError: undefined method `[]' for nil:NilClass\n\n if setting["narou_api_url"]\n ^^^^^^^^^^^^^^^^^\n\tC:/Ruby31-x64/lib/ruby/3.1.0/forwardable.rb:238:in `each_key'
>>555
このエラーはnarou.rbがcopyコマンド叩いたら「More data is available.」って返ってきたやつです。
ERROR_MORE_DATAなんで、単純なコピー作業というより、ディレクトリエントリを読むとかそういうので発生してるのかな?って気はしますが、詳細は分かりませんね。
ググっても色々なパターンあるみたいで分かりません。
エクスプローラー経由でどうなるかとか、悪さをしてるファイルがないかとか、kindleのバックアップとってファイルを消したり移動したりしてみると何か分かるかも知れません。
narou web にはいつも大変お世話になっております。
narou web が、以下のエラーログを吐いて起動しなくなってしまいました。
対処方法ご教示のほどよろしくお願いいたします。
-----------------------------------------
Narou.rb のバージョン:3.5.1
#<Thread:0x000001e3bc6e0ef0 C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `read': ASCII incompatible encoding needs binmode (ArgumentError)
data = File.read(fullpath, **options)
^^^^^^^^^^^^^^^^^^^
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `block in memo'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:490:in `synchronize'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:490:in `memo'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:159:in `load_global_replace_pattern'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:199:in `block (2 levels) in <class:AppServer>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2023-04-30 02:54:51] ERROR ArgumentError: ASCII incompatible encoding needs binmode\n\tC:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:496:in `block in memo'
--- 2023/07/01 01:08:39 ---
C:/Ruby31-x64/bin/narou web --boot
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `write': Broken pipe @ io_writev - <STDERR> (Errno::EPIPE)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `puts'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1490:in `quit!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1514:in `ensure in run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1514:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:144:in `boot'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/command/web.rb:87:in `execute'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby31-x64/bin/narou:32:in `load'
from C:/Ruby31-x64/bin/narou:32:in `<main>'
C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:45:in `merge!': no implicit conversion of false into Hash (TypeError)
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:45:in `init'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:23:in `block in load'
from <internal:kernel>:90:in `tap'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/inventory.rb:21:in `load'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/database.rb:29:in `refresh'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/database.rb:25:in `initialize'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:127:in `new'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:127:in `block in instance'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:125:in `synchronize'
from J:/Ruby32-x64/lib/ruby/3.2.0/singleton.rb:125:in `instance'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:247:in `<class:Downloader>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:23:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/backup.rb:8:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/backup.rb:8:in `<top (required)>'
from <internal:J:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:J:/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command.rb:9:in `block in <top (required)>'
from <internal:dir>:220:in `glob'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/command.rb:8:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandline.rb:8:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandline.rb:8:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/narou.rb:47:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/narou.rb:47:in `<top (required)>'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Users/Owner/.gem/ruby/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Users/Owner/AppData/Local/Microsoft/WindowsApps/narou:32:in `load'
from C:/Users/Owner/AppData/Local/Microsoft/WindowsApps/narou:32:in `<main>'
-----------------------------------------
Narou.rb のバージョン:
Version 3.8.2+カクヨム対応
OS のバージョン:
エディション Windows 11 Pro
バージョン 22H2
インストール日 2022/12/02
OS ビルド 22621.2861
エクスペリエンス Windows Feature Experience Pack 1000.22681.1000.0
その他環境情報(任意):
何が起きたのか:
変換先にepubを指定するとエラー停止
再現方法(何をやったら起こったのか詳細に):
C:\mynovel>narou co 2
ID:2 ************** の変換を開始
小説状態の調査結果を 調査ログ.txt に出力しました(エラー:0件、警告:0件、INFO:1件)
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています...C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:425:in `encode': "\x8B" followed by " " on Windows-31J (Encoding::InvalidByteSequenceError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/helper.rb:425:in `exec'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:182:in `txt_to_epub'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:104:in `block (2 levels) in multi_match': target of repeat operator is not specified: /{"eval"=>"magicword = \"KakuyomuPreprocessEvalMagicWord\"……… (省略)kakuyomu2.jp.yaml に書いたコードが展開されてる …… #source.replace(str)\n end\nend\nnil"}/m (RegexpError)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:103:in `each'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/narou-3.8.2/lib/sitesetting.rb:103:in `block in multi_match'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:455:in `parse':
(C:/MyNovel/.narou/lock.yaml): control characters are not allowed at line 1 colu
mn 1 (Psych::SyntaxError)
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:455:in `p
arse_stream'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.1/lib/psych.rb:399:in `p
arse'
-----------------------------------------
Narou.rb のバージョン:
Narou.rb version 3.8.2
OS のバージョン:
エディション Windows 11 Home
バージョン 22H2
インストール日 2023/06/02
OS ビルド 22621.3007
エクスペリエンス Windows Feature Experience Pack 1000.22681.1000.0
何が起きたのか:
WEB UI にてハーメルンの小説を更新すると、「縦書用の返還が終了しました」の後、
[ERROR] AozoraEpub3が見つからなかったのでEPUBが出力出来ませんでした。narou initでAozoraEpub3の設定を行なって下さい
という表示が出る。
再現方法(何をやったら起こったのか詳細に):
WEB UI を立ち上げて個別のタイトルを更新しただけです。変換も全く同じ表示が出ます。
ハーメルンとなろうしか試していませんが、どの小説でも同じ症状です。
narou inti で設定しなおしても以下のようなエラー表示が出ます。
C:\MyNovel>narou init
AozoraEpub3の設定を行います
AozoraEpub3のあるフォルダを入力して下さい:
(未入力でスキップ、:keep で現在と同じ場所を指定)
(現在の場所:C:/Users/rbbit/Documents/AozoraEpub3-1.1.0b46)
>C:\Users\rbbit\OneDrive\ドキュメント\AozoraEpub3-1.1.0b46C:\Users\rbbit\OneDrive\ドキュメント\AozoraEpub3-1.1.0b46\AozoraEpub3.ico
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:188:in `encode!': "\x88\\" from Windows-31J to UTF-8 (Encoding::UndefinedConversionError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:188:in `normalize_aozoraepub3_path'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/init.rb:151:in `ask_aozoraepub3_path'
縦書用の変換が終了しました
AozoraEpub3でEPUBに変換しています.
Exception in thread "main" java.lang.UnsupportedClassVersionError: AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
pid 17696 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Failed to open TCP connection to ncode.syosetu.com:443 (Blocking operation timed out!) (IO::TimeoutError)
from C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `open'
from C:/Tool/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `block in connect'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write': Permission denied @ rb_sysopen - C:/Users/”ユーザー名”/Desktop/TEMP/narou/.narou/database.yaml.backup (Errno::EACCES)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/extension.rb:41:in `write'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:63:in `block in save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `synchronize'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/inventory.rb:62:in `save'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/database.rb:50:in `save_database'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:224:in `ensure in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/update.rb:225:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
#<Thread:0x0000024c7c0fc600 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)
from C:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:1038:in `connect'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:970:in `do_start'
from C:/Ruby30-x64/lib/ruby/3.0.0/net/http.rb:959:in `start'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:323:in `open_http'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:741:in `buffer_open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:212:in `block in open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `catch'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:210:in `open_loop'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:151:in `open_uri'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/open_uri_redirections-0.2.1/lib/open-uri/redirections_patch.rb:55:in `open_uri'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:721:in `open'
from C:/Ruby30-x64/lib/ruby/3.0.0/open-uri.rb:29:in `open'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:728:in `get_toc_source'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:763:in `get_latest_table_of_contents'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2024-03-22 00:13:14] ERROR OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)\n\tC:/Ruby30-x64/lib/ruby/3.0.0/net/protocol.rb:46:in `ssl_socket_connect'
== Sinatra has ended his set (crowd applauds)
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:51:in `parse_novel_info'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/novelinfo.rb:18:in `load'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:766:in `get_latest_table_of_contents'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:349:in `run_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/downloader.rb:332:in `start_download'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:182:in `block in execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `each_with_index'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/command/update.rb:157:in `execute'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Users/DELL/.local/share/gem/ruby/3.2.0/gems/narou-3.8.2/lib/web/web_worker.rb:47:in `block (3 levels) in start'
C:/Ruby32-x64/lib/ruby/3.2.0/net/http.rb:1271:in `initialize': Blocking operation timed out! (IO::TimeoutError)
AozoraEpub3 Ver.1.1.1b23Q では、
--------------------------------------------------------------------------------
Exception in thread "main" java.lang.UnsupportedClassVersionError:
AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
pid 10632 exit 1
[ERROR] JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした
--------------------------------------------------------------------------------
と表示され、実行できないようです。
正常に動作するか否かは、エクスプローラー上から「AozoraEpub3.jar」を実行可能かどうかでも判断できる感じでしょうか?
ひとまずは、Javaの最新版から前バージョン以前に戻すことができれば、解決は可能なようですが、色々と不便ですね。
>>898
AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
というのは、Java Runtime Class File Version 65.0でコンパイルされているが、クライアントに入ってるJava Runtime Class FileのVersionは52.0だから起動できないというエラーです。
JavaのVerが1上がるごとにClass FileのVerも1上がる。
JDK Class File Versions 相対表
ttps://javaalmanac.io/bytecode/versions/
何が起きたのか:
892さんと同じくjava version "1.8.0_411"にアップデートした後から変換時に文字化けエラーが発生
java version "1.8.0_411をアンインストール、Version:21をインストール
AozoraEpub3-1.1.0b55QからAozoraEpub3-1.1.1b23Qに設定切り替え
再現方法(何をやったら起こったのか詳細に):
EPUBに変換を実行
AozoraEpub3でEPUBに変換しています....C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:202:in `txt_to_epub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:315:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:300:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `hook_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:252:in `block in convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `with_index'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:159:in `block in main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:133:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:369:in `concurrency_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:122:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
何が起きたのか:narou web を実行したが、WEB UI (ブラウザ) が立ち上がらず、以下のエラーが表示された
D:\MyNovel>narou web
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
D:\MyNovel>narou web --backtrace
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
from <internal:dir>:411:in `glob'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:29:in `load_settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:49:in `settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:947:in `block in <class:AppServer>'
from <internal:kernel>:90:in `tap'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:946:in `<class:AppServer>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:25:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `boot'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:87:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)
D:\MyNovel>narou update 5
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'