ebook-reader-dict: PyGlossary conversion errors (missing images)

Note from @BoboTiG: issue tightly coupled to #1182, interesting details can be found there too.


I just downloaded, parsed and rendered the EN Wiktionary, and it apparently has some problems with erroneous and/or missing GIFs:

output.txt

All of the .gif files in data/en/res appear to be very ugly rendered fomulae (?).

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 51 (49 by maintainers)

Most upvoted comments

Is there a way to set the number of workers in --render?

@ilius , you are good to go: --render --workers=N ✔️

And since a couple hours ago

python -m wikidict fr --gen-dict='cercle unité' --output=test_wik --format=stardict

To get a stardict file, instead of kobo.

Creating ~/.cache/pyglossary/dict-de-de.df_res(specific to that call: python -m wikidict de --convert) does not silent errors. I’ll dig deeper when I find time.

I see workers+1 python3 processes in top, each reserving 2.4 GB RAM. Trying workers=2 now.

Possible that there’s something wrong with that still?

I could previously (no workers) generate a complete dict, although it would use almost all resources on my laptop. Using workers=4 now, it produces full RAM (122 MB left of 8 GB, 0 bytes left on swap), and swaps itself to death (load average above 40!), had to pull the plug.

BTW @ilius is it expected that the GIF is not found?

ilius/pyglossary@11b2c3a Please try again. Should not see that error again.

Works perfectly, thanks!

Please use pip install . -U instead

sudo python3 setup.py install or python3 setup.py install --user

This is a sigle step, we introduced it to help debugging such issues 😉

SVG would be a killer feature, indeed. Not sure about the support though.

U-huh, got it! https://github.com/ilius/pyglossary/commit/ecf386b80aa24d34a8dc4f31c13b2eeb79260cd3 That was one of weirdest bug I ever encountered.