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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2009, 01:29 PM   #1
mikeage
Member
mikeage began at the beginning.
 
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
Incorrect proxy detection on Windows [0.6.19]

Hi,

I'm running Calibre 0.6.19 on Windows, and I have a problem with the proxy detection.

Calibre thinks that I have a proxy defined:
Code:
C:\Program Files\Calibre - E-book Management>calibre-debug -c "from calibre import get_proxies; print get_proxies()"
Unable to detect proxy settings: need more than 1 value to unpack
Using proxies: {'http': 'proxy:8080', 'https': 'proxy:8080'}
{'http': 'proxy:8080', 'https': 'proxy:8080'}
This is technically true, except that I have proxies disabled [these are the proxies I use when enabling a proxy server].

To be precise, Calibre is reading from HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ProxyServer [or perhaps HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings], but is ignoring HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings\ProxyEnable.

For some reason, the proxy server is defined in both HKCU and HKLM, but ProxyEnable only exists in HKLM.

Note that with 0.6.18, I didn't have this problem (since it read from the environment variable http_proxy), but it did have a problem parsing the format I gave (http://proxy:8080/). I think that for Windows, following the IE proxy settings is probably more correct, even though personally I prefer environment variables.
mikeage is offline   Reply With Quote
Old 10-24-2009, 01:46 PM   #2
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: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As far as I know, proxy settings should be read from HKCU not HKLM, see for example

http://blogs.technet.com/heyscriptin...xy-server.aspx
kovidgoyal is online now   Reply With Quote
Advert
Old 10-25-2009, 12:13 AM   #3
mikeage
Member
mikeage began at the beginning.
 
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
could be, but my experience suggests that when toggling the proxy on/off, only HKLM is affected. In fact, I just tried this with a new windows install [well, not new, but one never configured to use a proxy] and saw the same thing
mikeage is offline   Reply With Quote
Old 10-25-2009, 11:15 AM   #4
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: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What software are you using to toggle the proxy?
kovidgoyal is online now   Reply With Quote
Old 10-26-2009, 12:42 AM   #5
mikeage
Member
mikeage began at the beginning.
 
Posts: 20
Karma: 14
Join Date: Sep 2009
Device: Kindle 2
Originally I was using something in-house from my company, but I also tried using the Windows "Internet Options" dialog
mikeage is offline   Reply With Quote
Advert
Old 10-26-2009, 10:56 AM   #6
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: 43,748
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK open a ticket for it and I'll investigate when I have some time.
kovidgoyal is online now   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
Calibre 0.6.14 incorrect publish date elmoglick Calibre 16 02-09-2011 02:24 PM
sorry, still about proxy Valio Calibre 1 11-06-2009 10:13 AM
application configuration incorrect Willo142 Calibre 2 09-15-2009 12:35 PM
Incorrect Date on Input kazbates Calibre 2 03-19-2009 12:08 AM
Proxy authentication problems (I have no proxy) fogus Calibre 16 03-08-2009 01:27 PM


All times are GMT -4. The time now is 07:09 AM.


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