Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2020, 11:56 AM   #1
stolica1968
Junior Member
stolica1968 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2020
Device: Pocketbook PB-K-WW
Problem with change dictionary to polish pl_PL.otx

Hi,

When I change dictionaries to polish i have mistake:

calibre, version 5.3.0
BŁĄD: Nie udało się zaimportować słowników: Nieudany import słowników z „/home/hube199/Pobrane/pl-dict.oxt”; naciśnij „Pokaż szczegóły”, by uzyskać więcej informacji.

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/tweak_book/spell.py", line 122, in accept
num = import_from_oxt(oxt, nick)
File "/usr/lib/calibre/calibre/spell/import_from.py", line 139, in import_from_oxt
dd, ad = convert_to_utf8(read_file(dic), read_file(aff))
File "/usr/lib/calibre/calibre/spell/import_from.py", line 52, in convert_to_utf8
codecs.lookup(enc)
TypeError: lookup() argument must be str, not bytes


And i can't install dictionaries from otx
stolica1968 is offline   Reply With Quote
Old 10-17-2020, 12:13 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Uninstall your linux distro provided calibre and use the official calibre binaries from https://calibre-ebook.com/download_linux
kovidgoyal is online now   Reply With Quote
Advert
Old 10-17-2020, 12:16 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually no, this bug is present in the official binaries as well, fixed in the next release. https://github.com/kovidgoyal/calibr...c2190ad300ce53
kovidgoyal is online now   Reply With Quote
Old 10-17-2020, 12:32 PM   #4
stolica1968
Junior Member
stolica1968 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2020
Device: Pocketbook PB-K-WW
Thank you Kovid
stolica1968 is offline   Reply With Quote
Old 10-17-2020, 12:39 PM   #5
stolica1968
Junior Member
stolica1968 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2020
Device: Pocketbook PB-K-WW
I haven't in linux src/calibre/spell/import_from.py folder. Where i can find it?
stolica1968 is offline   Reply With Quote
Advert
Old 10-17-2020, 10:39 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look in the traceback you posted.
kovidgoyal is online now   Reply With Quote
Old 10-18-2020, 12:11 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,388
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by stolica1968 View Post
I haven't in linux src/calibre/spell/import_from.py folder. Where i can find it?
If I'm reading the path properly (File "/usr/lib/calibre/calibre/spell/import_from.py"), you are looking for a file named import_from.py in the /usr/lib/calibre/spell directory.

One question that comes to mind is if this is a version supplied by a Linux distribution or did you install it from Kovid's site ( https://calibre-ebook.com/download_linux )?

Running the installer from Kovid's site should give output similar to the attached image.
Attached Thumbnails
Click image for larger version

Name:	Tumbleweed_Calibre_530_Install.png
Views:	58
Size:	119.6 KB
ID:	182853  

Last edited by DNSB; 10-18-2020 at 12:22 AM. Reason: added image for calibre Linux install using Kovid's site
DNSB is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Polish dictionary for KOBO San Zamoyski Kobo Reader 2 12-03-2023 03:38 AM
Polish dictionary San Zamoyski Kindle Developer's Corner 19 09-20-2018 05:41 AM
Polish dictionary San Zamoyski Kindle Formats 7 06-25-2016 12:45 PM
Change firmware from polish reseler to Booxster's thread Paisbrzuch Onyx Boox 1 07-31-2012 04:28 AM
Converting PWN Oxford Polish-English dictionary to Mobipocket owl123 Workshop 1 05-24-2010 07:07 AM


All times are GMT -4. The time now is 02:39 PM.


MobileRead.com is a privately owned, operated and funded community.