On Nov 28, Jonas Geiregat <jo...@geiregat.org> wrote: > Simply put: > > >>> ai.search_movie("The thaw") > Traceback (most recent call last): [...] > imdb._exceptions.IMDbDataAccessError: {'exception type': 'IOError', > 'url': 'http://akas.imdb.com/find?s=tt;mx=20;q=The+thaw', 'errcode': > 'socket error', 'proxy': '', 'original exception': IOError('socket > error', gaierror(8, 'nodename nor servname provided, or not known')), > 'errmsg': '[Errno 8] nodename nor servname provided, or not known'} > > That's my problem ?
In my opinion, yes. :-) It's an IOError exception fetching the data, and it's probably related to your internet connection. At that stage, IMDbPY does very little more than this: import urllib uo = urllib.FancyURLopener() url = uo.open('http://akas.imdb.com/find?s=tt;mx=20;q=The+thaw') content = url.read() I don't see how it could fail, if not for a problem on your system. Beware that I don't use MacOSX, so I can't be too sure: looks like there are a lot of google results, for "nodename nor servname provided, or not known". It seems to not be Python-specific, and related to the getaddrinfo system call. Let me know if you find a solution (or if you think it's a problem in IMDbPY). Bye! -- Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47] http://erlug.linux.it/~da/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help