Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2017, 11:01 PM   #1
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Open with does not like bash scripts

When I try to choose a bash script for open with for pdfs this is what I get.

I am also hoping that this would be fixed for the last 2x version because I personally cant use v3 due to not running in remote session, also there might be others who are still using the 2x versions.


thanks

calibre 2.85.1 embedded-python: True is64bit: True
Linux-4.3.0-1-amd64-x86_64-with-debian-9.0 Linux ('64bit', 'ELF')
('Linux', '4.3.0-1-amd64', '#1 SMP Debian 4.3.5-1 (2016-02-06)')
Python 2.7.9
Linux: ('debian', '9.0', '')
Successfully initialized third party plugins: Find Duplicates (1, 6, 2) && Barnes & Noble (1, 2, 13) && Import List (1, 1, 5) && Read MP3 AudioBook metadata (1, 0, 79) && Resize Cover (1, 0, 2) && Kindle Collections (1, 7, 16) && EpubMerge (2, 1, 0) && Generate Cover (1, 5, 21) && Search The Internet (1, 7, 6) && KePub Output (2, 7, 1) && Quality Check (1, 9, 11) && Modify ePub (1, 3, 13) && Wiki Reader (2, 1, 0) && EpubSplit (2, 2, 0) && Reading List (1, 6, 6) && Copy Cover To Device (2, 0, 0) && Kobo Utilities (2, 4, 1) && Save To Format (0, 0, 6)
Traceback (most recent call last):
File "site-packages/calibre/gui2/dialogs/choose_format.py", line 76, in choose_open_with
File "site-packages/calibre/gui2/open_with.py", line 315, in choose_program
File "site-packages/calibre/gui2/open_with.py", line 221, in finalize_entry
KeyError: u'MimeType'

Last edited by loviedovie; 07-02-2017 at 02:29 PM.
loviedovie is offline   Reply With Quote
Old 06-30-2017, 01:44 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@loviedovie - try the Open With optional plugin and/or the Select & Open Arbitrary Programs and Files feature of the Job Spy optional plugin.

I don't know if either or both will work - but worth a try.

BR
BetterRed is offline   Reply With Quote
Advert
Old 06-30-2017, 01:50 AM   #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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are going to be no more releases in the 2.x series.

You can work around this by simply updating to calibre 3.3 creating your open with association and then downgrading again.

https://github.com/kovidgoyal/calibr...17b048f7aeea0a
kovidgoyal is offline   Reply With Quote
Old 06-30-2017, 02:43 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by loviedovie View Post
When I try to choose a bash script for open with for pdfs this is what I get.

I am also hoping that this would be fixed for the last 2x version because I personally cant use v3 due to not running in remote session, also there might be others who are still using the 2x versions.
Actually, that's BS. You can run Calibre remotely. I do it with Teamviewer. There is a Linux version. So there's no excuse not to use v3.x.
JSWolf is offline   Reply With Quote
Old 06-30-2017, 11:10 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by JSWolf View Post
Actually, that's BS. You can run Calibre remotely. I do it with Teamviewer. There is a Linux version. So there's no excuse not to use v3.x.
Except, actually, that is BS.

Because you literally have no idea what you are talking about, and the problem with remote sessions on Linux is due to a specific and unidentified bug in the interaction between the version of Qt shipped with calibre and the Linux remote session implementation which is causing this to spew error messages and fail to work on some peoples' machines -- like the OP. As the OP posted about, a mere two days ago in this exact subforum.

So that's BS, and please stop spewing BS when you have no idea what you are talking about, and have no reason to think you know what you are talking about due to not actually using the operating system in question. Thanks.

If you're somehow not sure the OP knows what they are talking about, and you want to ask them why they think they cannot use calibre remotely when there are many decent vnc applications out there, you go right ahead and do that.

But when you start out from the assumption that you have already proven them wrong, accuse them of BS'ing, and then you turn out to be the one in the wrong, then your well-known habit of immediately jumping to conclusions has abruptly become quite insulting.
eschwartz is offline   Reply With Quote
Advert
Old 06-30-2017, 11:16 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by loviedovie View Post
When I try to choose a bash script for open with for pdfs this is what I get.

I am also hoping that this would be fixed for the last 2x version because I personally cant use v3 due to not running in remote session, also there might be others who are still using the 2x versions.
One possible alternative would be to try running in development mode. It would be fairly simple to revert only the commits which affected calibre's binary plugins, while taking advantage of most of the changes in calibre v3 -- or simply cherry-picking this commit on its own.

That might be more convenient than switching between the 3.x and 2.x versions whenever you need to circumvent this bug.
eschwartz is offline   Reply With Quote
Old 07-01-2017, 11:53 AM   #7
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Open with crashes Calibre when changing libraries so I had to stop using it. But I will try the other plugin, thanks for the recommendation.

Quote:
Originally Posted by BetterRed View Post
@loviedovie - try the Open With optional plugin and/or the Select & Open Arbitrary Programs and Files feature of the Job Spy optional plugin.

I don't know if either or both will work - but worth a try.

BR
loviedovie is offline   Reply With Quote
Old 07-01-2017, 11:56 AM   #8
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Except that I do not use Teamviewer due to it being closed source. I use X2go which is open source. X2go is also much faster than any VNC, and it integrates much better also it runs its own session meaning that I can run different desktop sessions with it.



Quote:
Originally Posted by JSWolf View Post
Actually, that's BS. You can run Calibre remotely. I do it with Teamviewer. There is a Linux version. So there's no excuse not to use v3.x.
loviedovie is offline   Reply With Quote
Old 07-01-2017, 11:59 AM   #9
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Do you have a link to that bug posted somewhere? I would like to keep an eye on it.

Quote:
Originally Posted by eschwartz View Post
Except, actually, that is BS.

the problem with remote sessions on Linux is due to a specific and unidentified bug in the interaction between the version of Qt shipped with calibre and the Linux remote session implementation which is causing this to spew error messages and fail to work on some peoples' machines
loviedovie is offline   Reply With Quote
Old 07-01-2017, 05:55 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by loviedovie View Post
Open with crashes Calibre when changing libraries so I had to stop using it. But I will try the other plugin, thanks for the recommendation.
Dumb question - why do you need a bash script to open a PDF?

Might be worth a post in the Open With optional plugin thread, even though its originator (Kiwidude) is no longer active davidfor has kept it up to date etc.

BR
BetterRed is offline   Reply With Quote
Old 07-01-2017, 08:20 PM   #11
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
I am trying to pass the book pdf to a script that processes it with k2pdfopt, for mobile viewing optimization purposes. There is no gui version on Linux, so it is tricky to pass it to a binary.



Quote:
Originally Posted by BetterRed View Post
Dumb question - why do you need a bash script to open a PDF?

Might be worth a post in the Open With optional plugin thread, even though its originator (Kiwidude) is no longer active davidfor has kept it up to date etc.

BR
loviedovie is offline   Reply With Quote
Old 07-01-2017, 08:40 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by loviedovie View Post
I am trying to pass the book pdf to a script that processes it with k2pdfopt, for mobile viewing optimization purposes. There is no gui version on Linux, so it is tricky to pass it to a binary.
Ah yes - I think I saw that in one of your other threads.

BR
BetterRed is offline   Reply With Quote
Old 07-02-2017, 12:50 AM   #13
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by loviedovie View Post
Do you have a link to that bug posted somewhere? I would like to keep an eye on it.
Well, in the sense that the issue is known to exist, and you aren't the only one ninjaed by it. For example, see this post in the calibre v3 beta testing thread: https://www.mobileread.com/forums/sh....php?p=3539900
Also: https://www.mobileread.com/forums/sh...d.php?t=288152

Not much to keep an eye on, really.

Last edited by eschwartz; 07-02-2017 at 12:58 AM.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running bash scripts from Kobo browser pipcat Kobo Developer's Corner 1 06-29-2016 05:41 AM
bash error iomari Calibre 2 08-19-2013 01:40 PM
An available bash 4.2 for KT silverzhao Kindle Developer's Corner 2 02-06-2013 10:37 AM
bash for kindle fbdev Kindle Developer's Corner 18 04-24-2012 04:26 PM
manga2pdf - Linux bash scripts for the Cybook, Sony Reader and iLiad IceHand PDF 52 03-09-2009 06:36 PM


All times are GMT -4. The time now is 05:52 AM.


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