Comments (13)
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.
...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.
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.
- 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.
@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.
@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.
@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.
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.
@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.
python-libzim is a wrapper. If libzim allows it, pylibzim should as well
from apple.
from apple.
I will transfer to openzim/libzim
.
from apple.
Kamino closed and cloned this issue to openzim/libzim
from apple.
Related Issues (20)
- Opening corruped file leads to crash HOT 16
- Content default positioning is not always correct
- DMG has not been published HOT 1
- NIghly build CD has failed
- No search result when the key word more than 1 byte with Chinese zim files HOT 6
- Double-clicking on a ZIM in finder opens a new Kiwix window HOT 4
- Crash 3.4.0 - Kiwix: OPDSParser.parse(data:) +36 HOT 2
- Crash 3.4.0 - Kiwix: u_setDataDirectory_73 + 48
- Crash 3.4.0 - libxml2.2.dylib: xmlMallocZero +48 HOT 4
- Crash 3.4.0 - Levenshtein.calculate(_:_:) +72
- Crash 3.4.0 - Kiwix: u_setDataDirectory_73 + 112 HOT 1
- Crash 3.4.0 - SwiftUI: specialized _ArrayBuffer._consumeAndCreateNew(bufferIsUnique:minimumCapacity... HOT 1
- Crash 3.4.0 -[UIPopoverPresentationController presentationTransactionWillBegin] + 2672
- Add support for multiple reader windows HOT 1
- Moving Zim Files from Download folder to another Drive/Folder HOT 3
- Library loading is blocking the main thread HOT 1
- Resolve Swift Package Dependencies Automatically
- Remove BackPorts dependency
- No book found line for "lowtech"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple.