Hi Eric, 409 is a very unusual status code, especially since we're just doing a GET request.
I'd assume that the problem is in the proxy you're using: if possible please try using something else (or no proxy at all). HTH, On Fri, May 5, 2017 at 3:02 PM, Eric Marty <eric.ma...@genistat.ch> wrote: > Dear Forum, > > I run into following problem. If I want to use the proxy option like: > from imdb import IMDb > imdb = IMDb() > imdb.set_proxy('http://openwebproxy.pw/browse.php?u=') > imdb.get_movie('0000001') > > I will get the following error message (full stack trace below): > IMDbDataAccessError: {'url': > 'http://akas.imdb.com/title/tt0000001/plotsummary', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c5f3dd0>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'} > > Now I was not able to get to the root of the problem, as I am quite new to > python, maybe I am doing something completely wrong. > > Python version: 2.7.10 > IMDbPY version: 5.1.1 > > Cheers Eric Marty > > > > Full Stack Trace: > 2017-05-05 14:58:48,768 CRITICAL [imdbpy] > /Users/eric/test/lib/python2.7/site-packages/imdb/_exceptions.py:35: > IMDbDataAccessError exception raised; args: ({'url': > 'http://akas.imdb.com/title/tt0000001/combined', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c64bc20>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'},); kwds: {} > Traceback (most recent call last): > File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py", > line 209, in process_exec_queue > code_fragment = interpreter.exec_queue.get(block=True, timeout=1/20.) # > 20 calls/second > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Queue.py", > line 176, in get > raise Empty > Empty > 2017-05-05 14:58:48,768 CRITICAL [imdbpy] > /Users/eric/test/lib/python2.7/site-packages/imdb/__init__.py:777: caught an > exception retrieving or parsing "main" info set for mopID "0000001" > (accessSystem: http) > Traceback (most recent call last): > File "/Users/eric/test/lib/python2.7/site-packages/imdb/__init__.py", line > 772, in update > ret = method(mopID) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 506, in get_movie_main > cont = self._retrieve(self.urls['movie_main'] % movieID + 'combined') > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 453, in _retrieve > ret = self.urlOpener.retrieve_unicode(url, size=size) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 202, in retrieve_unicode > uopener = self.open(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 213, in open > return getattr(self, name)(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 364, in open_http > return self.http_error(url, fp, errcode, errmsg, headers) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 381, in http_error > return self.http_error_default(url, fp, errcode, errmsg, headers) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 255, in http_error_default > 'proxy': self.get_proxy()}) > IMDbDataAccessError: {'url': > 'http://akas.imdb.com/title/tt0000001/combined', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c64bc20>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'} > 2017-05-05 14:58:48,793 CRITICAL [imdbpy] > /Users/eric/test/lib/python2.7/site-packages/imdb/_exceptions.py:35: > IMDbDataAccessError exception raised; args: ({'url': > 'http://akas.imdb.com/title/tt0000001/plotsummary', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c5f3dd0>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'},); kwds: {} > Traceback (most recent call last): > File "/Users/eric/test/lib/python2.7/site-packages/imdb/__init__.py", line > 772, in update > ret = method(mopID) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 506, in get_movie_main > cont = self._retrieve(self.urls['movie_main'] % movieID + 'combined') > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 453, in _retrieve > ret = self.urlOpener.retrieve_unicode(url, size=size) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 202, in retrieve_unicode > uopener = self.open(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 213, in open > return getattr(self, name)(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 364, in open_http > return self.http_error(url, fp, errcode, errmsg, headers) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 381, in http_error > return self.http_error_default(url, fp, errcode, errmsg, headers) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 255, in http_error_default > 'proxy': self.get_proxy()}) > IMDbDataAccessError: {'url': > 'http://akas.imdb.com/title/tt0000001/combined', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c64bc20>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'} > 2017-05-05 14:58:48,794 CRITICAL [imdbpy] > /Users/eric/test/lib/python2.7/site-packages/imdb/__init__.py:777: caught an > exception retrieving or parsing "plot" info set for mopID "0000001" > (accessSystem: http) > Traceback (most recent call last): > File "/Users/eric/test/lib/python2.7/site-packages/imdb/__init__.py", line > 772, in update > ret = method(mopID) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 514, in get_movie_plot > cont = self._retrieve(self.urls['movie_main'] % movieID + 'plotsummary') > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 453, in _retrieve > ret = self.urlOpener.retrieve_unicode(url, size=size) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 202, in retrieve_unicode > uopener = self.open(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 213, in open > return getattr(self, name)(url) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 364, in open_http > return self.http_error(url, fp, errcode, errmsg, headers) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", > line 381, in http_error > return self.http_error_default(url, fp, errcode, errmsg, headers) > File > "/Users/eric/test/lib/python2.7/site-packages/imdb/parser/http/__init__.py", > line 255, in http_error_default > 'proxy': self.get_proxy()}) > IMDbDataAccessError: {'url': > 'http://akas.imdb.com/title/tt0000001/plotsummary', 'error type': > 'http_error_default', 'errcode': 409, 'headers': <httplib.HTTPMessage > instance at 0x10c5f3dd0>, 'proxy': 'http://openwebproxy.pw/browse.php?u=/', > 'errmsg': 'Conflict'} > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Imdbpy-help mailing list > Imdbpy-help@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/imdbpy-help > -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x3845A3D4AC9B61AD] http://www.mimante.net/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help