Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2012, 07:01 AM   #1
Steven630
Zealot
Steven630 began at the beginning.
 
Posts: 142
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
can't fetch relative reference: not viewing any document

This error occurs every time when Calibre trys to download from this specific article:

http://www.wired.com/wiredscience/20...diamandis/all/


I suspect it has something to do with the interactive image browser in the middle of the aritcle.


Code:
Traceback (most recent call last):
  File "site-packages\calibre\web\fetch\simple.py", line 453, in process_links
  File "site-packages\calibre\web\fetch\simple.py", line 240, in fetch_url
  File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_mechanize.py", line 199, in open_novisit
  File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_mechanize.py", line 216, in _mech_open
BrowserStateError: can't fetch relative reference: not viewing any document
Update:

Seems that the error of the article in question should be:

File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 1006, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 1001, in _fetch_article

The previous errors are actually for a downloaded article.

Last edited by Steven630; 07-22-2012 at 07:28 AM.
Steven630 is offline   Reply With Quote
Old 07-27-2012, 08:40 AM   #2
cryzed
Addict
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 318
Karma: 1050026
Join Date: Mar 2011
Device: Kindle Paperwhite, Kindle Voyage
This error is usually thrown when you try to open a relative URL without having opened the absolute URL beforehand, i.e. you try to access "wiredscience/2012/06/mf_icons_diamandis/all/" without beforehand having opened the actual site "http://wired.com/". More code would be useful.

Also, regarding your update: You didn't actually post the error, just a small part of the TraceBack.
cryzed is offline   Reply With Quote
Old 08-19-2012, 06:36 AM   #3
Steven630
Zealot
Steven630 began at the beginning.
 
Posts: 142
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Quote:
Originally Posted by cryzed View Post
This error is usually thrown when you try to open a relative URL without having opened the absolute URL beforehand, i.e. you try to access "wiredscience/2012/06/mf_icons_diamandis/all/" without beforehand having opened the actual site "http://wired.com/". More code would be useful.

Also, regarding your update: You didn't actually post the error, just a small part of the TraceBack.
Sorry for my late reply. But I don't think it's a problem about relative URL.

Because in the log I saw:

Quote:
Failed to download article... from http://.....com/....html
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 1007, in fetch_article
File "site-packages\calibre\web\feeds\news.py", line 1002, in _fetch_article
Exception: Could not fetch article. The debug traceback is available earlier in this log

The link is complete.

Just now, the same error poped up when I tried to download using another recipe that has worked well so far. Strangely enough, although all articles are arranged in the same way, only some articles experienced this. (say, there are articles, ABCDE, all are in complete links and are identical apart from their contents, the recipe always failed to download ACD)

Quote:
Traceback (most recent call last):
File "site-packages\calibre\web\fetch\simple.py", line 462, in process_links
File "site-packages\calibre\web\fetch\simple.py", line 240, in fetch_url
File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_mechanize.py", line 199, in open_novisit
File "site-packages\mechanize-0.2.4-py2.7.egg\mechanize\_mechanize.py", line 216, in _mech_open
BrowserStateError: can't fetch relative reference: not viewing any document

Last edited by Steven630; 08-19-2012 at 06:42 AM.
Steven630 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PB622(touch)-relative Berührungsunempfindlichkeit? tropi PocketBook 5 07-19-2012 07:41 AM
Unutterably Silly Funny Things My (Insert Relative Here) Told Me Skye Savoy Lounge 39 06-17-2011 11:04 AM
Losing relative font sizes on conversion hardvice Calibre 5 06-05-2010 11:40 PM
How to convert a Word document into a Kindle document? PS Kindle Kindle Developer's Corner 2 12-08-2009 09:40 PM
epub-library: relative paths josepinto EPUBReader 2 12-03-2009 07:40 AM


All times are GMT -4. The time now is 10:54 AM.


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