2011-11-18, 00:34
The only piece that doesn't work for me is the Movie list in my library. I get an error message saying script error. The TV list updates without a problem.
Quote:21:16:13 T:140098935703296 M:3030024192 ERROR: Error Type: urllib2.URLError
21:16:13 T:140098935703296 M:3030024192 ERROR: Error Contents: <urlopen error unknown url type: https>
BlueCop Wrote:Buddha001: I have seen the problem. I haven't been able to debug it. I don't know exactly where the problem is. I don't think it is specifically mechanize. It seems to be any ssl connection. I have seen the same problems with hulu servers.
restarting xbmc always fixed the issue for me. I need to submit a bug report for it.
Buddha001 Wrote:Restarting doesn't seem to help, but I did upgrade to an unstable XBMC 11.0 (Eden) repository and that helps a bit. Now I can at least browse through videos although trying to stream them still results in an error. I haven't gotten a chance to browse through the logs to see what the error is yet, that's for this weekend. I'll post back once I look into it a bit more. Anyone else running the plugin on Eden? Any issues? I'd like to help test in Eden. Also, the Hulu plugin works for me out of the box w/Eden.
downhiller2010 Wrote:I am using on eden as well. I can browse just find, but no playback
Buddha001 Wrote:Hi there - just starting out w/XBMC on an HTPC running Mythbuntu 11.10. I installed the latest version of the plugin and rtmp, but I get a script error. Turned debugging on and in the log file, I see the following (plus a traceback not included here):
It looks like the error stems from mechanize. The version is 0.2.5. Ubuntu 11.10 has python 2.7 by default - not sure if this causes any issues or not - and OpenSSL 1.0. Any ideas on how to fix this?
TIA
BlueCop Wrote:Buddha001: I have seen the problem. I haven't been able to debug it. I don't know exactly where the problem is. I don't think it is specifically mechanize. It seems to be any ssl connection. I have seen the same problems with hulu servers.
restarting xbmc always fixed the issue for me. I need to submit a bug report for it.
Buddha001 Wrote:Well, I realized that my wifewas the primary member so I changed login info and restarted. Most videos/shows stream just fine, but others give an error. Something about no issuable right for the user... Not sure if those ones cost something and they're not free or what the problem is.
$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> response = urllib2.urlopen("http://www.amazon.com/gp/flex/sign-out.html")
>>> print response.geturl()
https://www.amazon.com/gp/sign-in.html?ie=UTF8&email=&disableCorpSignUp=&path=&redirectProtocol=&mode=&useRedirectOnSuccess=0&query=%2Aentries%2A%3D0%26%2AVersion%2A%3D1&accountStatusPolicy=&pageAction=
>>>
if hasattr(httplib, 'HTTPS'):
def mechanizeLogin():
if os.path.isfile(COOKIEFILE):
os.remove(COOKIEFILE)
cj = cookielib.LWPCookieJar()
br = mechanize.Browser()
print 'HANDLER CLASSES:' # ZMG I ADDED THIS IN HERE
print br.handler_classes # ZMG I ADDED THIS IN HERE
~/.xbmc/addons/script.module.mechanize/lib/mechanize$ grep "hasattr(httplib, 'HTTPS')" *
_opener.py: if True: #hasattr(httplib, 'HTTPS'):
_urllib2_fork.py: if True: #hasattr(httplib, 'HTTPS'):
_urllib2_fork.py:if True: #hasattr(httplib, 'HTTPS'):
_urllib2.py:if True: #hasattr(httplib, 'HTTPS'):
$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.ssl
<function ssl at 0xf23b18>
>>> import httplib
>>> hasattr(httplib, 'HTTPS')
True
print 'BUILT IN MODULES: ' + str(sys.builtin_module_names)
print 'OTHER LOADED MODULES: ' + str(sys.modules.keys())
jason_m Wrote:I have run into the same thing.
Mythbuntu 11.10
XBMC 2:10.1-4~ppa1~oneiric from the Nathan Renniewaldock repository
Amazon plugin version 0.3.7
beautifulsoup module version 3.0.8
demjson module version 1.4
mechanize module version 0.2.5
Restarting makes no difference for me.
Changing your login information got around the issue? Is that all you changed?
I also have an ubuntu 10.10 machine with the same version of xbmc and plugins. I do not have this problem on that machine. After installing rtmp2.4, the Amazon plugin works great!
I would love to get the Amazon plugin working on my 11.10 machine because that is the one hooked up to my TV
If there is any additional information about my system I can provide to track down the problem, I would be happy to.
Buddha001 Wrote:Well, I'm using XBMC 11 (Eden) from the following repository: https://launchpad.net/~alexandr-surkov/+archive/xbmc. Note that this is an unstable version with semi-nightly builds. I had problems with the XBMC version from the Nathan Renniewaldock repository.
jason_m Wrote:Right now I do believe my issue is simply that the python bundled with xbmc from the nathan renniewaldock repository was not built with ssl support. I have contacted the maintainer and described the issue. He was going to try and rebuild the package tonight. I'll post back once I have had a chance to update my xbmc and try it out. I'm hoping to keep with a stable install and not pull development libraries onto my htpc.