![]() |
#1 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Oct 2018
Device: kindle
|
![]()
How can I import system python modules like selenium in a recipe? I tried this but I got an error "No module named selenium". I want to use selenium to work around javascript to get the source page. Is there any way to use it in a recipe?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cannot, calibre comes with it s own python, you cant use system python with it
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Oct 2018
Device: kindle
|
Can I install it to calibre's python using development environment?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are on linux you can use the distro provided calibre which will typically use system python
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Oct 2018
Device: kindle
|
I'm on linux and I'm using calibre source code as a development environment. So I want to know if I can just put selenium into the source code? Thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are using calibre source code as described here: https://manual.calibre-ebook.com/develop.html
then you are not using your distro provided calibre. Instead uninstall it and install the calibre package your distro provides, then you will be able to use calibre. |
![]() |
![]() |
![]() |
Tags |
modules, recipe |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import module not in bundled Python | Toxaris | Plugins | 11 | 02-01-2016 01:55 AM |
Mini Python on mini, dies on import library | mokayak | Kobo Developer's Corner | 5 | 04-10-2015 11:02 AM |
Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 04:57 AM |
Import ebook conversion in python script | erollisi | Calibre | 1 | 08-19-2010 09:43 PM |
Plugins and optional Python modules | pdurrant | Plugins | 14 | 03-02-2010 03:28 AM |