Git Product home page Git Product logo

Comments (13)

stuartlangridge avatar stuartlangridge commented on July 17, 2024 1

I have just tried using libzim from pypi, and I still get the problem, it seems. You can grab a small example file which shows the problem (it loads fine in kiwix-desktop, but does not in kiwix-ios) and was created with up-to-date PyPI install from https://kryogenix.org/random/fr-small-pip.zim.
(I'm quite prepared to believe that I'm creating the zim file wrong in some way! but it does open in kiwix-desktop, so it can't be completely wrong. It might be useful, if the file really is created incorrectly, if kiwix-ios gave some direction as to why the file can't be loaded, to help people who create their own zim files.)

from apple.

stuartlangridge avatar stuartlangridge commented on July 17, 2024 1

...and that has indeed fixed it! My created zim file now opens fine in Kiwix for iOS, now that I've added language, date, and illustration.

I shall file a bug against the python libzim bindings because their example code in their README does not include these mandatory elements, but this bug can be closed, and thank you!

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

Thank you @stuartlangridgemmformyour issue, you should definitly be able to open your ZIM files and have a similar user experience on all versions of Kiwix.

Let me as you two questions:

  • How have you created your ZIM file? With which tool?
  • Do you ise Kiwix 3.4.0 for iOS released today?

from apple.

stuartlangridge avatar stuartlangridge commented on July 17, 2024
  • How have you created your ZIM file? With which tool?

I used the Python bindings for libzim to create my zim file, as packaged in Ubuntu 22.04. These seem to be 1.0.0+ds-2build1, based on libzim in Ubuntu which is version 7.2.0-2build1.

I was not using v3.4.0 of Kiwix for iOS, but I have just updated to that and tried again and I have the same issue.

(I should note that I have opened a different zim file from inside the Kiwix interface and that worked, so my Kiwix installation for iOS isn't completely broken or anything!)

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

@stuartlangridge OK, then its looks like a bug. Would you be able to share the ZIM file, or any ZIM file suffering of the bug?

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

@stuartlangridge It seems as well that you use a very old version of python-libzim, any chance you could use the latest version published on pypi?

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

@stuartlangridge I rna zimcheck against your file, and I see:

[ERROR] Metadata errors:
  Missing mandatory metadata: Language
  Missing mandatory metadata: Date
  Missing mandatory metadata: Illustration_48x48@1

At this stage, I guess there is 50% chance that the rootcause of the problem is there because these Metadata are mandatory in the ZIM spec. Would you be able to set them and try again?

from apple.

stuartlangridge avatar stuartlangridge commented on July 17, 2024

Aha, I didn't know there was a zimcheck tool! Now that I know that I'll try again and verify with zimcheck, thank you.

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

@rgaudin @benoit74 Actually I believe this is not really normal that a ZIM file can be written without error by python-libzim if the ZIM file can not be open afterward.

from apple.

rgaudin avatar rgaudin commented on July 17, 2024

python-libzim is a wrapper. If libzim allows it, pylibzim should as well

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

@mgautierfr ?

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

I will transfer to openzim/libzim.

from apple.

kelson42 avatar kelson42 commented on July 17, 2024

Kamino closed and cloned this issue to openzim/libzim

from apple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.