![]() |
#1 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2019
Device: tolino
|
AttributeError: module 'sys' has no attribute 'extensions_location'
I'm tryin to use Calibre in a Python Telegram bot and have already included calibre.utils.icu in this manner
Quote:
Quote:
THX |
||
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant really use calibre code in external python interpreters, except on linux, if you install calibre system-wide. On windows, if you want to use calibre use calibre-debug as the python interpreter.
calibre-debug file.py https://manual.calibre-ebook.com/dev...on-environment |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2019
Device: tolino
|
Thank you for the quick response - do you know a python package that allows easily searching the Calibre-DB?
|
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If for some reason you can't do that then use raw SQL with sqlite. Be aware that calibre uses locally defined triggers so some read queries will fail, and will most write queries. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AttributeError: 'NoneType' object has no attribute 'data' | koyahinipo@hurif | Conversion | 2 | 08-09-2018 10:01 PM |
Running Calibre CLI module, SYS arguments? | tsar2512 | Development | 6 | 02-06-2018 12:05 PM |
Please help - AttributeError: 'NoneType' object has no attribute 'lower' | Sazzaroo | Calibre | 9 | 12-11-2015 10:22 AM |
AttributeError: 'NoneType' object has no attribute 'split' | Thalia Helikon | Conversion | 1 | 12-30-2012 08:09 AM |
AttributeError: 'NoneType' object has no attribute 'lower | manada | Calibre | 2 | 08-10-2010 10:54 PM |