Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2013, 05:02 AM   #1
swampwiz
Junior Member
swampwiz began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: Windows 7
Having difficulty opening EPUB file with E-book Viewer directly

I am running Calibre in Window 7, Home Edition.

Here is my situation. When I double click on an EPUB file, I do not want the Calibre library application to open up, which shows me the list of books; I want the E-book Viewer application to open up the EPUB file. I want the file opening to be as easy as opening up a PDF file in Foxit, or even Adobe!

I could not figure out how to change the settings to accomplish this. I used a tool called Default Programs Editor to change the default application that runs for a double click on a file. However, opening up the file this way results in the error "Input file must have an extension". Evidently this same error happens when trying to open up the EPUB file via the Recent Documents menu item in Windows.

If this is something that is absolutely impossible to do, I would like advice on an free EPUB viewer that is as nice as Calibre. It seems that a few other viewers that I have downloaded that allow for this simple way to open up a file all look bad.

Thank you in advance.
swampwiz is offline   Reply With Quote
Old 06-17-2013, 05:30 AM   #2
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by swampwiz View Post
I am running Calibre in Window 7, Home Edition.

Here is my situation. When I double click on an EPUB file, I do not want the Calibre library application to open up, which shows me the list of books; I want the E-book Viewer application to open up the EPUB file. I want the file opening to be as easy as opening up a PDF file in Foxit, or even Adobe!
The viewer is 'ebook-viewer.exe' in the Calibre directory. If you associate epubs with that, it will do what you want.
mbovenka is offline   Reply With Quote
Advert
Old 06-17-2013, 05:35 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by swampwiz View Post
Here is my situation. When I double click on an EPUB file, I do not want the Calibre library application to open up, which shows me the list of books; I want the E-book Viewer application to open up the EPUB file. I want the file opening to be as easy as opening up a PDF file in Foxit, or even Adobe!
You have the calibre.exe file associated with .ePub files, you need to associate epub files with ebook-viewer.exe.

Quote:
Originally Posted by swampwiz View Post
I could not figure out how to change the settings to accomplish this. I used a tool called Default Programs Editor to change the default application that runs for a double click on a file. However, opening up the file this way results in the error "Input file must have an extension". Evidently this same error happens when trying to open up the EPUB file via the Recent Documents menu item in Windows.
If the first guide I linked to doesn't help you try any from this Google search. Please understand that this is a Operating System problem not a calibre problem. I do not experience the "Input file must have an extension" error unless the file does not have an extension.

Quote:
Originally Posted by swampwiz View Post
If this is something that is absolutely impossible to do, I would like advice on an free EPUB viewer that is as nice as Calibre.
It is easy to do, we all do it everyday with calibre and multiple other programs.
DoctorOhh is offline   Reply With Quote
Old 06-17-2013, 06:31 AM   #4
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: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@swampwiz - I had this exact same problem on Saturday.

There are situations where the Windows registry entries for the epub (other file types too) can get corrupted so that you can't re-associate it. It's known to have been caused by a failed Calibre install - in my case I think it was related to an uninstall of 32bit Calibre that I did on Thursday last week.

Anyway I fixed it by running the CCleaner registry cleaner, I ran it several times until there were no more discrepancies.

Make sure you backup the registry before the first run. CC Cleaner will offer to do the backup, you only need to do one backup - the first one.

After 'cleaning the registry' I was able to associate the 64bit version of the viewer with the EPUB file extension.

CCleaner is not an 'aggressive' registry cleaning tool like some are. I rarely use it, but this is the second occasion its got me out of a hole in the past couple of weeks.

BR
BetterRed is offline   Reply With Quote
Old 06-17-2013, 06:45 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by BetterRed View Post
There are situations where the Windows registry entries for the epub (other file types too) can get corrupted so that you can't re-associate it. It's known to have been caused by a failed Calibre install
Since calibre doesn't mess with file associations during install I find this assertion interesting. I may be wrong but I do not think there is any corruption of the Windows registry involved.

Quote:
Originally Posted by BetterRed View Post
in my case I think it was related to an uninstall of 32bit Calibre that I did on Thursday last week.
Since a calibre install or uninstall doesn't mess with file associations, when you remove the 32 bit version and change to the 64 bit version any previous association stands and is still pointed to the old folder. In order to re-associate ePub with the new 64 bit version you do need to find the registry entry and change the path or as you did run a registry cleaner.
DoctorOhh is offline   Reply With Quote
Advert
Old 06-17-2013, 03:40 PM   #6
swampwiz
Junior Member
swampwiz began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: Windows 7
OK, this is what I just tried:

Context menu on EPUB file icon, "Open with" command, then selected the "ebook-viewer" file.

The result was the message "Input file must have an extension", with the dump data:

calibre, version 0.9.35
ERROR: Could not open ebook: Input file must have an extension

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 40, in run
File "threading.py", line 763, in run
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 88, in __enter__
File "site-packages\calibre\ebooks\conversion\plumber.py", line 678, in __init__
ValueError: Input file must have an extension

I will try CCleaner. What exactly must I clean?
swampwiz is offline   Reply With Quote
Old 06-17-2013, 05:35 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by swampwiz View Post
OK, this is what I just tried:

Context menu on EPUB file icon, "Open with" command, then selected the "ebook-viewer" file.

The result was the message "Input file must have an extension", with the dump data:

calibre, version 0.9.35
ERROR: Could not open ebook: Input file must have an extension

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 40, in run
File "threading.py", line 763, in run
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 88, in __enter__
File "site-packages\calibre\ebooks\conversion\plumber.py", line 678, in __init__
ValueError: Input file must have an extension

I will try CCleaner. What exactly must I clean?
It sounds like the second set of quote marks are missing in the Registry entry: (XP shown)
Key:
Code:
HKEY_CLASSES_ROOT\Applications\ebook-viewer.exe\shell\open\command
Value:
Code:
"C:\Program Files\Calibre2\ebook-viewer.exe" "%1"
as with all registry entries... Use care (export the key for backup is a good idea)
theducks is offline   Reply With Quote
Old 06-18-2013, 06:19 AM   #8
swampwiz
Junior Member
swampwiz began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: Windows 7
OK, I did the CCleaner Registry cleanup (it found a whole lot of stuff!) Then I tried to open with the viewer. and it still said that there needed to be the proper extension.

I then wanted to check what the actual DOS filename was. I do this by moving the file to a C: level directory and then use the Command Prompt (i.e., DOS Window) app, and do a DIR command there. I noticed that one of the files had a double 'epub' extension, and so to change the extension, I need the base filename to have no spaces, so I changed that filename as such.

To my surprise, the double click Open worked! : But then the other file, that had the regular single 'epub' extension did not. On a hunch, I came to the conclusion that the only thing different between the files is that one had spaces in the name, while the other did not, so I went and changed the names back to the original ones - although now with underscores in lieu of spaces - and they worked. :

So there it is - there is a bug in the program in that it does not allow spaces in the filename (although using the Calibre library to spawn the viewer app, such names with spaces does work.)
swampwiz is offline   Reply With Quote
Old 06-18-2013, 06:27 AM   #9
swampwiz
Junior Member
swampwiz began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: Windows 7
I found a further aspect of this error/ Not only does the filename need to have no spaces, but the complete path also needs to have no spaces. I verified this by moving the EPUB files between directories that either had of did not have spaces.
swampwiz is offline   Reply With Quote
Old 06-18-2013, 07:08 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by swampwiz View Post
I found a further aspect of this error/ Not only does the filename need to have no spaces, but the complete path also needs to have no spaces. I verified this by moving the EPUB files between directories that either had of did not have spaces.
No need for head slapping. What you describe is not normal Windows 7 behavior. Once the proper file association is set you should be able to double-click any ePub file whether it has spaces or not and have it open up in calibre's viewer. At least you have more info if you decide to keep investigating this problem.
DoctorOhh is offline   Reply With Quote
Old 06-18-2013, 08:36 AM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@swampwiz:My guess is that the tool you are using to set up associations is not quoting the file name, which it must do. Use the builtin win7 tool to set the association. I just did it and it works find, even if the file name has spaces in it.

Right click on an epub (or whatever) and select properties. Near the top there will be a section "Open with ...". Click the button, press "Browse" and navigate to calibre-viewer if it isn't offered as an option then press OK, select calibre-viewer. See the attached image.

As I said, I did this and it works fine. You can see that the file name of the book displayed in the attached image has spaces in it, and it opens.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.png
Views:	390
Size:	41.4 KB
ID:	107097  
chaley is offline   Reply With Quote
Old 06-18-2013, 02:46 PM   #12
swampwiz
Junior Member
swampwiz began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2013
Device: Windows 7
Quote:
Originally Posted by chaley View Post
@swampwiz:My guess is that the tool you are using to set up associations is not quoting the file name, which it must do. Use the builtin win7 tool to set the association. I just did it and it works find, even if the file name has spaces in it.

Right click on an epub (or whatever) and select properties. Near the top there will be a section "Open with ...". Click the button, press "Browse" and navigate to calibre-viewer if it isn't offered as an option then press OK, select calibre-viewer. See the attached image.

As I said, I did this and it works fine. You can see that the file name of the book displayed in the attached image has spaces in it, and it opens.
OK, I put the '%1' in quotations in the Default Program Editor, and now everything works fine.
swampwiz is offline   Reply With Quote
Old 09-08-2014, 11:16 AM   #13
bla
E bookworm
bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.bla ought to be getting tired of karma fortunes by now.
 
Posts: 358
Karma: 2013666
Join Date: Jul 2010
Location: Ontario, Canada
Device: Sony PRS T1,Android Tablet, I phone
Have you tried a right click ? on my windoze pc the context menu gives me an option " to pick the "Viewer for all ebook formats" and this opens the calibre viewer and loads the book it also gives me the option to use the sony reader

Last edited by bla; 09-08-2014 at 11:21 AM.
bla is offline   Reply With Quote
Old 09-08-2014, 12:58 PM   #14
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,422
Karma: 85397180
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 bla View Post
Have you tried a right click ? on my windoze pc the context menu gives me an option " to pick the "Viewer for all ebook formats" and this opens the calibre viewer and loads the book it also gives me the option to use the sony reader
Please do not necropost.

Notice the OP had his problem solved over a year ago -- the third-party program used to edit file associations had a flaw.

Edit: Now I think about it, you may have fallen victim to a spammer who was making the rounds today copying peoples' posts and inserting tracking images. And then the moderators deleted it in between your and my posts.

If so, sorry for the confusion.

Last edited by eschwartz; 09-08-2014 at 01:03 PM.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookmarks workings using calibre e-book viewer with EPUB file CatSay Library Management 1 01-25-2012 10:16 AM
Create MediaWiki and RTF links for opening an ePub file with Calibre viewer johnsidi Calibre 1 12-17-2011 01:31 PM
Converted ePub file displays correctly in Calibre Viewer, but not on Sony library addict Conversion 6 03-24-2011 09:58 AM
EPUB Reader: Opening a big file (27 MB) takes 4.5 minutes on Firefox zdavatz EPUBReader 5 02-19-2010 02:36 AM
Manually opening epub file on Mac problems slantybard Calibre 2 08-29-2009 01:09 PM


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


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