Bug 383155 - Okular open path or URI contains chinese error
Summary: Okular open path or URI contains chinese error
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: EPub backend (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-05 04:28 UTC by stardiviner
Modified: 2017-08-13 05:31 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-30615-0.html (3.46 KB, text/html)
2017-08-05 14:25 UTC, stardiviner
Details
attachment-25382-0.html (4.27 KB, text/html)
2017-08-06 08:13 UTC, stardiviner
Details
kk.epub (265.54 KB, application/epub+zip)
2017-08-06 14:40 UTC, stardiviner
Details
Okular ebook open error check.png (514.67 KB, image/png)
2017-08-06 14:40 UTC, stardiviner
Details
attachment-10594-0.html (2.43 KB, text/html)
2017-08-06 14:42 UTC, stardiviner
Details
attachment-12749-0.html (15.72 KB, text/html)
2017-08-07 08:34 UTC, stardiviner
Details
attachment-26592-0.html (3.68 KB, text/html)
2017-08-08 00:06 UTC, stardiviner
Details
attachment-26739-0.html (4.89 KB, text/html)
2017-08-08 00:08 UTC, stardiviner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stardiviner 2017-08-05 04:28:51 UTC
For example, execute command:

okular file:///home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub

This will error: Could not open file:///home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
Comment 1 Michael Weghorn 2017-08-05 09:39:09 UTC
Some questions that might help to narrow down the issue:

1) Does this work if you use a "plain" file path instead of a URI, i.e.

    okular file: /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub

2) Does it work if you rename the file so that it no longer contains Chineses characters, but only ASCII characters, e.g. if you make a copy of the file called "myfile.epub" and then use the following command:

    okular file:///home/stardiviner/Org/Wiki/Thought/Data/Books/myfile.epub

3) Can you post the output of the command 'locale'?
Comment 2 Michael Weghorn 2017-08-05 09:40:45 UTC
(In reply to Michael Weghorn from comment #1)
> Some questions that might help to narrow down the issue:
> 
> 1) Does this work if you use a "plain" file path instead of a URI, i.e.
> 
>     okular file: /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
> 

Sorry, I forgot to properly remove everything; what I meant was:

    okular /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
Comment 3 stardiviner 2017-08-05 14:25:05 UTC
Created attachment 107090 [details]
attachment-30615-0.html

​​
When I execute command with out `file://` prefix.
```
okular /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
```
Still got same error:

When I rename the file to `kk.epub`.
Still error.

The output of command `locate`:
```

LANG=zh_CN.UTF-8

LC_CTYPE=zh_CN.UTF-8

LC_NUMERIC=en_US.UTF-8

LC_TIME=en_US.UTF-8

LC_COLLATE="zh_CN.UTF-8"

LC_MONETARY=en_US.UTF-8

LC_MESSAGES="zh_CN.UTF-8"

LC_PAPER=en_US.UTF-8

LC_NAME=en_US.UTF-8

LC_ADDRESS=en_US.UTF-8

LC_TELEPHONE=en_US.UTF-8

LC_MEASUREMENT=en_US.UTF-8

LC_IDENTIFICATION=en_US.UTF-8

LC_ALL=
```

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sat, Aug 5, 2017 at 5:40 PM, Michael Weghorn <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> --- Comment #2 from Michael Weghorn <m.weghorn@posteo.de> ---
> (In reply to Michael Weghorn from comment #1)
> > Some questions that might help to narrow down the issue:
> >
> > 1) Does this work if you use a "plain" file path instead of a URI, i.e.
> >
> >     okular file: /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
> >
>
> Sorry, I forgot to properly remove everything; what I meant was:
>
>     okular /home/stardiviner/Org/Wiki/Thought/Data/Books/国学拾遗.epub
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 4 Michael Weghorn 2017-08-05 15:04:28 UTC
Thank you for your quick reply. This sounds like your problem might be unrelated to the actual file name, so I suggest to use the file without special characters for now.

Can you post the output shown on the command line when you run okular from the command line?

    okular /home/stardiviner/Org/Wiki/Thought/Data/Books/kk.epub

Are there any other error messages or warnings shown in Okular that might give a hint about the problem?

Can you open other epub files in Okular?

The "Platform" field in this bug report indicates that you are using Arch Linux. Is that correct? Are you using the Okular version that comes packaged with Arch?
(I haven't checked yet, but it might be that Arch builds Okular without support for epub files.)
Comment 5 Yuri Chornoivan 2017-08-05 15:22:54 UTC
(In reply to Michael Weghorn from comment #4)
> The "Platform" field in this bug report indicates that you are using Arch
> Linux. Is that correct? Are you using the Okular version that comes packaged
> with Arch?
> (I haven't checked yet, but it might be that Arch builds Okular without
> support for epub files.)

As it follows from the PKGBUILD pages, the most popular PKGBUILD (okular-light) does not contain the support for ePub (ebook-tools not included), although advertises epub support through the desktop file.

Cf.:

https://aur.archlinux.org/packages/okular-git/ (with support)

https://aur.archlinux.org/packages/okular-light/ (without support)
Comment 6 stardiviner 2017-08-06 08:13:00 UTC
Created attachment 107102 [details]
attachment-25382-0.html

- When I rename the chinese file to `kk.epub`, still same error: `Could not
open file:///home/stardiviner/Org/Wiki/Thought/Data/Books/kk.epub`.
- I then tried to open other original english epub files, they work fine.
So seems Okular backend for epub works has support. The problem is on the
file? But I can open the chinese epub file with command `ebook-viewer`
which comes from `calibre`.
- And yes, I install okular from Arch system packed.
Here is the output:
```
yaourt -Ss okular
extra/okular 17.04.3-1 (kde-applications kdegraphics) [installed]
    Document Viewer
aur/okular-backend-mupdf-git r33.7c02d23-1 (8) (0.00)
    MuPDF-based backend for Okular (git version)
aur/okular-git r7435.3a16c16-1 (40) (0.02)
    Universal document viewer
aur/okular-light 17.04.3-1 (2) (0.38)
    KDE document viewer, without Mobi/ePub/CHM and Text-to-Speech
```


[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sat, Aug 5, 2017 at 11:22 PM, Yuri Chornoivan <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> Yuri Chornoivan <yurchor@ukr.net> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>                  CC|                            |yurchor@ukr.net
>
> --- Comment #5 from Yuri Chornoivan <yurchor@ukr.net> ---
> (In reply to Michael Weghorn from comment #4)
> > The "Platform" field in this bug report indicates that you are using Arch
> > Linux. Is that correct? Are you using the Okular version that comes
> packaged
> > with Arch?
> > (I haven't checked yet, but it might be that Arch builds Okular without
> > support for epub files.)
>
> As it follows from the PKGBUILD pages, the most popular PKGBUILD
> (okular-light)
> does not contain the support for ePub (ebook-tools not included), although
> advertises epub support through the desktop file.
>
> Cf.:
>
> https://aur.archlinux.org/packages/okular-git/ (with support)
>
> https://aur.archlinux.org/packages/okular-light/ (without support)
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 7 Yuri Chornoivan 2017-08-06 08:24:00 UTC
(In reply to stardiviner from comment #6)
> Created attachment 107102 [details]
> attachment-25382-0.html
> 
> - When I rename the chinese file to `kk.epub`, still same error: `Could not
> open file:///home/stardiviner/Org/Wiki/Thought/Data/Books/kk.epub`.
> - I then tried to open other original english epub files, they work fine.
> So seems Okular backend for epub works has support. The problem is on the
> file? But I can open the chinese epub file with command `ebook-viewer`
> which comes from `calibre`.

Calibre viewer is _very_ tolerant and advanced viewer (on the other hand, Okular's one is basic ;) ).

Is it possible to validate and correct the file with calibre editor ("Edit book" then F7) or Sigil (F7)?

Can you attach an example of non-working book to this report?

Thanks in advance for your answers.
Comment 8 stardiviner 2017-08-06 14:40:27 UTC
Created attachment 107109 [details]
kk.epub

I tried calibre edit command `ebook-edit` on failed book.
And press [F7]. Found those warnings. I take a screenshot in attachment too.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Aug 6, 2017 at 4:24 PM, Yuri Chornoivan <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> --- Comment #7 from Yuri Chornoivan <yurchor@ukr.net> ---
> (In reply to stardiviner from comment #6)
> > Created attachment 107102 [details]
> > attachment-25382-0.html
> >
> > - When I rename the chinese file to `kk.epub`, still same error: `Could
> not
> > open file:///home/stardiviner/Org/Wiki/Thought/Data/Books/kk.epub`.
> > - I then tried to open other original english epub files, they work fine.
> > So seems Okular backend for epub works has support. The problem is on the
> > file? But I can open the chinese epub file with command `ebook-viewer`
> > which comes from `calibre`.
>
> Calibre viewer is _very_ tolerant and advanced viewer (on the other hand,
> Okular's one is basic ;) ).
>
> Is it possible to validate and correct the file with calibre editor ("Edit
> book" then F7) or Sigil (F7)?
>
> Can you attach an example of non-working book to this report?
>
> Thanks in advance for your answers.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 9 stardiviner 2017-08-06 14:40:29 UTC
Created attachment 107110 [details]
Okular ebook open error check.png
Comment 10 stardiviner 2017-08-06 14:42:08 UTC
Created attachment 107113 [details]
attachment-10594-0.html

BTW, After run [F7], and click fix all fixable warnings. Run check again,
those warnings gone. But Okular still open file with error and failed.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Aug 6, 2017 at 4:24 PM, Yuri Chornoivan <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> --- Comment #7 from Yuri Chornoivan <yurchor@ukr.net> ---
> (In reply to stardiviner from comment #6)
> > Created attachment 107102 [details]
> > attachment-25382-0.html
> >
> > - When I rename the chinese file to `kk.epub`, still same error: `Could
> not
> > open file:///home/stardiviner/Org/Wiki/Thought/Data/Books/kk.epub`.
> > - I then tried to open other original english epub files, they work fine.
> > So seems Okular backend for epub works has support. The problem is on the
> > file? But I can open the chinese epub file with command `ebook-viewer`
> > which comes from `calibre`.
>
> Calibre viewer is _very_ tolerant and advanced viewer (on the other hand,
> Okular's one is basic ;) ).
>
> Is it possible to validate and correct the file with calibre editor ("Edit
> book" then F7) or Sigil (F7)?
>
> Can you attach an example of non-working book to this report?
>
> Thanks in advance for your answers.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 11 Yuri Chornoivan 2017-08-06 14:53:02 UTC
The last file attached (kk.epub) can be successfully opened and read using Okular 1.0.3 + epub-tools 0.2.2 on Mageia 6. So this might be a distribution problem.
Comment 12 stardiviner 2017-08-07 08:33:57 UTC
Created attachment 107119 [details]
attachment-12749-0.html

My Okular version is: `okular 1.1.3`.
I searched `epub-tools` in Arch Linux with command `yaourt -Ss epub-tools`,
found it is not installed.
I tried to install it. but failed.
I tried two ways to install `epub-tools`:
Install with Haskell cabal:
```
cabal update ; cabal install epub-tools
```
But get error:
```
Downloading the latest package list from hackage.haskell.org
cabal update  12.36s user 2.14s system 10% cpu 2:23.04 total
Resolving dependencies...
Downloading regex-posix-0.95.2...
Downloading regex-tdfa-1.2.2...
Configuring regex-posix-0.95.2...
Configuring regex-tdfa-1.2.2...
Building regex-posix-0.95.2...
Building regex-tdfa-1.2.2...
Installed regex-posix-0.95.2
Downloading regex-compat-0.95.1...
Configuring regex-compat-0.95.1...
Building regex-compat-0.95.1...
Installed regex-compat-0.95.1
Installed regex-tdfa-1.2.2
Downloading regex-compat-tdfa-0.95.1.4...
Configuring regex-compat-tdfa-0.95.1.4...
Building regex-compat-tdfa-0.95.1.4...
Installed regex-compat-tdfa-0.95.1.4
Downloading epub-metadata-4.5...
Configuring epub-metadata-4.5...
Building epub-metadata-4.5...
Failed to install epub-metadata-4.5
Build log ( /home/stardiviner/.cabal/logs/epub-metadata-4.5.log ):
cabal: Entering directory '/tmp/cabal-tmp-26603/epub-metadata-4.5'
Configuring epub-metadata-4.5...
Building epub-metadata-4.5...
Preprocessing library epub-metadata-4.5...
[ 1 of 24] Compiling Codec.Epub.Util  ( src/Codec/Epub/Util.hs,
dist/build/Codec/Epub/Util.o )
[ 2 of 24] Compiling Codec.Epub.Parse.Util ( src/Codec/Epub/Parse/Util.hs,
dist/build/Codec/Epub/Parse/Util.o )
[ 3 of 24] Compiling Codec.Epub.IO    ( src/Codec/Epub/IO.hs,
dist/build/Codec/Epub/IO.o )
[ 4 of 24] Compiling Codec.Epub.Format.Util (
src/Codec/Epub/Format/Util.hs, dist/build/Codec/Epub/Format/Util.o )
[ 5 of 24] Compiling Codec.Epub.Data.Package (
src/Codec/Epub/Data/Package.hs, dist/build/Codec/Epub/Data/Package.o )
[ 6 of 24] Compiling Codec.Epub.Format.Package (
src/Codec/Epub/Format/Package.hs, dist/build/Codec/Epub/Format/Package.o )
[ 7 of 24] Compiling Codec.Epub.Parse.Package (
src/Codec/Epub/Parse/Package.hs, dist/build/Codec/Epub/Parse/Package.o )
[ 8 of 24] Compiling Codec.Epub.Data.Metadata (
src/Codec/Epub/Data/Metadata.hs, dist/build/Codec/Epub/Data/Metadata.o )
[ 9 of 24] Compiling Codec.Epub.Format.Metadata (
src/Codec/Epub/Format/Metadata.hs, dist/build/Codec/Epub/Format/Metadata.o )
[10 of 24] Compiling Codec.Epub.Parse.Metadata (
src/Codec/Epub/Parse/Metadata.hs, dist/build/Codec/Epub/Parse/Metadata.o )
[11 of 24] Compiling Codec.Epub.Parse.Refinements (
src/Codec/Epub/Parse/Refinements.hs,
dist/build/Codec/Epub/Parse/Refinements.o )
[12 of 24] Compiling Codec.Epub.Data.Common (
src/Codec/Epub/Data/Common.hs, dist/build/Codec/Epub/Data/Common.o )
[13 of 24] Compiling Codec.Epub.Data.Guide ( src/Codec/Epub/Data/Guide.hs,
dist/build/Codec/Epub/Data/Guide.o )
[14 of 24] Compiling Codec.Epub.Format.Guide (
src/Codec/Epub/Format/Guide.hs, dist/build/Codec/Epub/Format/Guide.o )
[15 of 24] Compiling Codec.Epub.Parse.Guide (
src/Codec/Epub/Parse/Guide.hs, dist/build/Codec/Epub/Parse/Guide.o )
[16 of 24] Compiling Codec.Epub.Data.Manifest (
src/Codec/Epub/Data/Manifest.hs, dist/build/Codec/Epub/Data/Manifest.o )
[17 of 24] Compiling Codec.Epub.Format.Manifest (
src/Codec/Epub/Format/Manifest.hs, dist/build/Codec/Epub/Format/Manifest.o )
[18 of 24] Compiling Codec.Epub.Parse.Manifest (
src/Codec/Epub/Parse/Manifest.hs, dist/build/Codec/Epub/Parse/Manifest.o )
[19 of 24] Compiling Codec.Epub.Data.Spine ( src/Codec/Epub/Data/Spine.hs,
dist/build/Codec/Epub/Data/Spine.o )
[20 of 24] Compiling Codec.Epub.Format.Spine (
src/Codec/Epub/Format/Spine.hs, dist/build/Codec/Epub/Format/Spine.o )
[21 of 24] Compiling Codec.Epub.Format ( src/Codec/Epub/Format.hs,
dist/build/Codec/Epub/Format.o )
[22 of 24] Compiling Codec.Epub.Parse.Spine (
src/Codec/Epub/Parse/Spine.hs, dist/build/Codec/Epub/Parse/Spine.o )
[23 of 24] Compiling Codec.Epub.Parse ( src/Codec/Epub/Parse.hs,
dist/build/Codec/Epub/Parse.o )
[24 of 24] Compiling Codec.Epub       ( src/Codec/Epub.hs,
dist/build/Codec/Epub.o )
Preprocessing executable 'epub-metadata-example' for epub-metadata-4.5...
[1 of 1] Compiling Main             ( app/epub-metadata-example.hs,
dist/build/epub-metadata-example/epub-metadata-example-tmp/Main.o )
Linking dist/build/epub-metadata-example/epub-metadata-example ...
/usr/sbin/ld: cannot find -lHSzip-archive-0.3.1.1-CTnIdx1PD2R28s6Hv1Ft3y
/usr/sbin/ld: cannot find -lHSzlib-0.6.1.2-GcLmGV5PElZD6CJvjR9umm
/usr/sbin/ld: cannot find -lHSpretty-1.1.3.3
/usr/sbin/ld: cannot find -lHSold-time-1.1.0.3-EZzkBJ4NQxX4hHavrKxgaT
/usr/sbin/ld: cannot find -lHSold-locale-1.0.0.7-KGBP1BSKxH5GCm0LnZP04j
/usr/sbin/ld: cannot find -lHSdigest-0.0.1.2-ExF2dwgnnwj5rxxaZYWSiQ
/usr/sbin/ld: cannot find -lHSutf8-string-1.0.1.1-1DpjxLeTvGg7ttZZojxJR5
/usr/sbin/ld: cannot find -lHSregex-base-0.93.2-AYjYAsBidAc8f5XNm9b2Aa
/usr/sbin/ld: cannot find -lHShxt-9.3.1.16-YawaVI4czs2GYj8uhLpnV
/usr/sbin/ld: cannot find -lHSnetwork-uri-2.6.1.0-GzRvaV3udR3JtWfa3CLYOw
/usr/sbin/ld: cannot find -lHShxt-unicode-9.0.2.4-91NbsYmAW3YHFFSyOss7u4
/usr/sbin/ld: cannot find
-lHShxt-regex-xmlschema-9.2.0.3-EJ79sDbAiO4CJ0CjtkP17K
/usr/sbin/ld: cannot find -lHSparsec-3.1.11-1CA7c0vSU7tJHGhveOjoXR
/usr/sbin/ld: cannot find -lHStext-1.2.2.2-3ENqlljngKa6xj1Go2fVWq
/usr/sbin/ld: cannot find -lHSmtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6
/usr/sbin/ld: cannot find -lHStransformers-0.5.2.0
/usr/sbin/ld: cannot find
-lHShxt-charproperties-9.2.0.1-48OogeCJMUc1lcYcm9OQtr
/usr/sbin/ld: cannot find -lHSbinary-0.8.3.0
/usr/sbin/ld: cannot find -lHSdirectory-1.3.0.0
/usr/sbin/ld: cannot find -lHSunix-2.7.2.1
/usr/sbin/ld: cannot find -lHStime-1.6.0.1
/usr/sbin/ld: cannot find -lHSfilepath-1.4.1.1
/usr/sbin/ld: cannot find -lHScontainers-0.5.7.1
/usr/sbin/ld: cannot find -lHSbytestring-0.10.8.1
/usr/sbin/ld: cannot find -lHSdeepseq-1.4.2.0
/usr/sbin/ld: cannot find -lHSarray-0.5.1.1
/usr/sbin/ld: cannot find -lHSbase-4.9.1.0
/usr/sbin/ld: cannot find -lHSinteger-gmp-1.0.0.1
/usr/sbin/ld: cannot find -lHSghc-prim-0.5.0.0
/usr/sbin/ld: cannot find -lHSrts
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Leaving directory '/tmp/cabal-tmp-26603/epub-metadata-4.5'
cabal: Error: some packages failed to install:
epub-metadata-4.5 failed during the building phase. The exception was:
ExitFailure 1
epub-tools-2.9 depends on epub-metadata-4.5 which failed to install.
```

Then I try to install it through Arch AUR:
```
yaourt -S epub-tools
```
But failed too. Because Amazon S3 mirror network is not available to me
(China).
```
==> Continue building epub-tools ? [Y/n]
==> ------------------------------------
==> y

==> Building and installing package
==> Making package: epub-tools 2.9-2 (Mon Aug  7 14:46:21 CST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found epub-tools-2.9.tar.gz
==> Validating source files with sha256sums...
    epub-tools-2.9.tar.gz ... Passed
==> Extracting sources...
  -> Extracting epub-tools-2.9.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
Updating package index Hackage (mirrored at
https://s3.amazonaws.com/hackage.fpcomplete.com/) ...SomeRemoteError
(HttpExceptionRequest Request {
  host                 = "s3.amazonaws.com"
  port                 = 443
  secure               = True
  requestHeaders       =
[("Accept-Encoding",""),("Cache-Control","no-transform")]
  path                 = "/hackage.fpcomplete.com/timestamp.json"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ConnectionTimeout)
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build epub-tools.
==> Restart building epub-tools ? [y/N]
==> -----------------------------------
==>
```

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Aug 6, 2017 at 10:53 PM, Yuri Chornoivan <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> --- Comment #11 from Yuri Chornoivan <yurchor@ukr.net> ---
> The last file attached (kk.epub) can be successfully opened and read using
> Okular 1.0.3 + epub-tools 0.2.2 on Mageia 6. So this might be a
> distribution
> problem.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 13 Albert Astals Cid 2017-08-07 21:24:22 UTC
I can confirm that this fails to work on ArchLinux while it works on Ubuntu, no idea why, but as Yuri says it may be a distribution issue.

ArchLinux shell log says
libepub (II):   opening '/tmp/okularTJ7966'
libepub (II):   building ocf struct
libepub (II):   looking for mime type
libepub (II):   mimetype found application/epub+zip
libepub (II):   parsing container file META-INF/container.xml
libepub (II):   Found containerr
libepub (II):   Found rootfiles
libepub (II):   found root in content.opf media-type is application/oebps-package+xml
libepub (II):   Found rootfiles
libepub (II):   Found containerr
libepub (II):   data path is 
libepub (II):   building opf struct
libepub (II):   parsing metadata
libepub (II):   creator - aut: 林语堂 (林语堂)
OPF:7: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE7 0x9A EOF
��;要想做个诚实的人,首先要获得真正的知识;而获得知识
Comment 14 Albert Astals Cid 2017-08-07 21:25:01 UTC
While on ubuntu it says

libepub (II):   opening '/tmp/okularJ22784'
libepub (II):   building ocf struct
libepub (II):   looking for mime type
libepub (II):   mimetype found application/epub+zip
libepub (II):   parsing container file META-INF/container.xml
libepub (II):   Found containerr
libepub (II):   Found rootfiles
libepub (II):   found root in content.opf media-type is application/oebps-package+xml
libepub (II):   Found rootfiles
libepub (II):   Found containerr
libepub (II):   data path is 
libepub (II):   building opf struct
libepub (II):   parsing metadata
libepub (II):   creator - aut: 林语堂 (林语堂)
libepub (II):   meta is calibre:timestamp: 2016-03-02T00:22:41.967000+00:00
libepub (II):   date of (null): 2008-07-31T16:00:00+00:00
libepub (II):   description is 古人,想要使得美德显明天下,首先要治理好他的国家;想要治理好自己国家的人,首先要整治好自己的家庭;想要整治好自己家庭的人,首先要努力提高自身的道德修养;想要提高自己道德修养的人,首先要使自己的心正;想使自己的心正,首先自己要诚实;要想做个诚实的人,首先要获得真正的知识;而获得知识的方法就是穷究事物的原理。
本书以通俗、生动的语言,以小品文的形式,为你讲述包括儒家、道家和佛家这三方面的国学知识。
libepub (II):   identifier uuid_id(uuid) is: e74b1248-c292-4e9d-87a8-b4fd21afb507
libepub (II):   contributor - bkp: calibre (2.41.0) [http://calibre-ebook.com] ((null))
Comment 15 stardiviner 2017-08-08 00:06:51 UTC
Created attachment 107133 [details]
attachment-26592-0.html

So this is a bug on Arch Linux package `okular`? I will send bug to Arch
package. Thanks. I will update the bug link at here as a reference.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Tue, Aug 8, 2017 at 5:25 AM, Albert Astals Cid <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=383155
>
> Albert Astals Cid <aacid@kde.org> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>                  CC|                            |aacid@kde.org
>
> --- Comment #14 from Albert Astals Cid <aacid@kde.org> ---
> While on ubuntu it says
>
> libepub (II):   opening '/tmp/okularJ22784'
> libepub (II):   building ocf struct
> libepub (II):   looking for mime type
> libepub (II):   mimetype found application/epub+zip
> libepub (II):   parsing container file META-INF/container.xml
> libepub (II):   Found containerr
> libepub (II):   Found rootfiles
> libepub (II):   found root in content.opf media-type is
> application/oebps-package+xml
> libepub (II):   Found rootfiles
> libepub (II):   Found containerr
> libepub (II):   data path is
> libepub (II):   building opf struct
> libepub (II):   parsing metadata
> libepub (II):   creator - aut: 林语堂 (林语堂)
> libepub (II):   meta is calibre:timestamp: 2016-03-02T00:22:41.967000+00:
> 00
> libepub (II):   date of (null): 2008-07-31T16:00:00+00:00
> libepub (II):   description is
> 古人,想要使得美德显明天下,首先要治理好他的国家;想要治理好自己国家的人,首先要整治好自己的家庭;
> 想要整治好自己家庭的人,首先要努力提高自身的道德修养;想要提高自己道德修养的人,首先要使自己的心正;
> 想使自己的心正,首先自己要诚实;要想做个诚实的人,首先要获得真正的知识;而获得知识的方法就是穷究事物的原理。
> 本书以通俗、生动的语言,以小品文的形式,为你讲述包括儒家、道家和佛家这三方面的国学知识。
> libepub (II):   identifier uuid_id(uuid) is:
> e74b1248-c292-4e9d-87a8-b4fd21afb507
> libepub (II):   contributor - bkp: calibre (2.41.0) [
> http://calibre-ebook.com]
> ((null))
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 16 stardiviner 2017-08-08 00:08:18 UTC
Created attachment 107134 [details]
attachment-26739-0.html

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Tue, Aug 8, 2017 at 8:06 AM, numbchild@gmail.com <numbchild@gmail.com>
wrote:

> So this is a bug on Arch Linux package `okular`? I will send bug to Arch
> package. Thanks. I will update the bug link at here as a reference.
>
> [stardiviner]           <Hack this world!>      GPG key ID: 47C32433
> IRC(freeenode): stardiviner                     Twitter:  @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
>
> On Tue, Aug 8, 2017 at 5:25 AM, Albert Astals Cid <
> bugzilla_noreply@kde.org> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=383155
>>
>> Albert Astals Cid <aacid@kde.org> changed:
>>
>>            What    |Removed                     |Added
>> ------------------------------------------------------------
>> ----------------
>>                  CC|                            |aacid@kde.org
>>
>> --- Comment #14 from Albert Astals Cid <aacid@kde.org> ---
>> While on ubuntu it says
>>
>> libepub (II):   opening '/tmp/okularJ22784'
>> libepub (II):   building ocf struct
>> libepub (II):   looking for mime type
>> libepub (II):   mimetype found application/epub+zip
>> libepub (II):   parsing container file META-INF/container.xml
>> libepub (II):   Found containerr
>> libepub (II):   Found rootfiles
>> libepub (II):   found root in content.opf media-type is
>> application/oebps-package+xml
>> libepub (II):   Found rootfiles
>> libepub (II):   Found containerr
>> libepub (II):   data path is
>> libepub (II):   building opf struct
>> libepub (II):   parsing metadata
>> libepub (II):   creator - aut: 林语堂 (林语堂)
>> libepub (II):   meta is calibre:timestamp: 2016-03-02T00:22:41.967000+00:
>> 00
>> libepub (II):   date of (null): 2008-07-31T16:00:00+00:00
>> libepub (II):   description is
>> 古人,想要使得美德显明天下,首先要治理好他的国家;想要治理好自己国家的人,首先要整治好自己的家庭;想要整治好自己家庭的人
>> ,首先要努力提高自身的道德修养;想要提高自己道德修养的人,首先要使自己的心正;想使自己的心正,首先自己要诚实;
>> 要想做个诚实的人,首先要获得真正的知识;而获得知识的方法就是穷究事物的原理。
>> 本书以通俗、生动的语言,以小品文的形式,为你讲述包括儒家、道家和佛家这三方面的国学知识。
>> libepub (II):   identifier uuid_id(uuid) is:
>> e74b1248-c292-4e9d-87a8-b4fd21afb507
>> libepub (II):   contributor - bkp: calibre (2.41.0) [
>> http://calibre-ebook.com]
>> ((null))
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>>
>
>
Comment 17 stardiviner 2017-08-13 05:31:37 UTC
After upgrading Arch Linux, this bug seems disappeared. Okular seems version not changed. Might some other issue.
Thanks for maintainers' help. Thanks.