albemala / almoviesrenamer

ALMoviesRenamer automatically renames your movie files.
GNU General Public License v3.0
14 stars 3 forks source link

Movie information download loops forever #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the program
2. Add a couple of movies (it seems no matter what)
3. The progress bar starts spinning, but it last forever

What is the expected output? What do you see instead?
The expected output is a list of renamed movies or a dialog where to chose name 
alternatives. But there is no output, just a spinning progress bar.

What version of the product are you using? On what operating system?
Both 3.1 and 2.1 on Win7 - 64bit.

Please provide any additional information below.
I just noticed the filename of the downloaded binaries: 
"ALmoviesRenamer-3.1-win32.zip". I suspect that I'll have to compile from 
source to have the program working on Win7-64bit, isn't it? Maybe a warning 
about 32/64bit compatibility issues on application launch could be added.

Original issue reported on code.google.com by andre...@gmail.com on 9 Jun 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Same on Linux (Gentoo 64bit), only tested with v2.1 because v3.1 complaints 
about my GLIBC being too old (./ALmoviesRenamer: /lib32/libc.so.6: version 
`GLIBC_2.15' not found).

However, this time we have a nice trace of the error. Maybe it's not my fault 
after all :)

./ALmoviesRenamer: /usr/lib32/libcrypto.so.1.0.0: no version information 
available (required by 
/home/biagio/Downloads/almoviesrenamer-2.1-linux-i686/usr/lib/ALmoviesRenamer-2.
1/libpython2.6.so.1.0)
./ALmoviesRenamer: /usr/lib32/libssl.so.1.0.0: no version information available 
(required by 
/home/biagio/Downloads/almoviesrenamer-2.1-linux-i686/usr/lib/ALmoviesRenamer-2.
1/libpython2.6.so.1.0)
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "gnomesegvhandler"
2012-06-09 17:37:12,935 CRITICAL [imdbpy] 
/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/_e
xceptions.py:35: IMDbDataAccessError exception raised; args: ({'url': 
'http://akas.imdb.com/find?s=tt;mx=20;q=++film++++io+sono+leggenda+', 'error 
type': 'http_error_default', 'errcode': 503, 'headers': <httplib.HTTPMessage 
instance at 0x933a1ec>, 'proxy': '', 'errmsg': 'Service Temporarily 
Unavailable'},); kwds: {}
None
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib/python2.6/threading.py", line 484, in run
  File "/home/alberto/workspace/almoviesrenamer/src/gui.py", line 303, in load_movies_run
  File "/home/alberto/workspace/almoviesrenamer/src/movie.py", line 75, in __init__
  File "/home/alberto/workspace/almoviesrenamer/src/movie.py", line 152, in get_info
  File "/home/alberto/workspace/almoviesrenamer/src/movie.py", line 259, in search_title
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/__init__.py", line 381, in search_movie
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/parser/http/__init__.py", line 468, in _search_movie
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/parser/http/__init__.py", line 450, in _get_search_content
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/parser/http/__init__.py", line 432, in _retrieve
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/parser/http/__init__.py", line 191, in retrieve_unicode
  File "/usr/lib/python2.6/urllib.py", line 207, in open
  File "/usr/lib/python2.6/urllib.py", line 362, in open_http
  File "/usr/lib/python2.6/urllib.py", line 379, in http_error
  File "/usr/local/lib/python2.6/dist-packages/IMDbPY-4.8.2-py2.6-linux-i686.egg/imdb/parser/http/__init__.py", line 245, in http_error_default
IMDbDataAccessError: {'url': 
'http://akas.imdb.com/find?s=tt;mx=20;q=++film++++io+sono+leggenda+', 'error 
type': 'http_error_default', 'errcode': 503, 'headers': <httplib.HTTPMessage 
instance at 0x933a1ec>, 'proxy': '', 'errmsg': 'Service Temporarily 
Unavailable'}

Original comment by andre...@gmail.com on 9 Jun 2012 at 3:41

GoogleCodeExporter commented 9 years ago
Same for version 3.1. It seems that simply putting the "mx=20" token at the end 
of the string would fix the problem. However I didn't manage to compile the 
source till now. I'll try again tomorrow...

./ALmoviesRenamer: /usr/lib32/libcrypto.so.1.0.0: no version information 
available (required by 
/home/biagio/Downloads/almoviesrenamer/libpython2.7.so.1.0)
./ALmoviesRenamer: /usr/lib32/libssl.so.1.0.0: no version information available 
(required by /home/biagio/Downloads/almoviesrenamer/libpython2.7.so.1.0)
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "gnomesegvhandler"
2012-06-09 18:42:20,110 CRITICAL [imdbpy] 
/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/_e
xceptions.py:35: IMDbDataAccessError exception raised; args: ({'url': 
'http://akas.imdb.com/find?s=tt;mx=20;q=Aeon+Flux+Il+futuro+ha+inizio+ITA', 
'error type': 'http_error_default', 'errcode': 503, 'headers': 
<httplib.HTTPMessage instance at 0x8e4d4cc>, 'proxy': '', 'errmsg': 'Service 
Temporarily Unavailable'},); kwds: {}
None
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "src/gui.py", line 286, in load_movies_run
  File "src/movie.py", line 223, in __init__
  File "src/movie.py", line 393, in get_info_
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/__init__.py", line 381, in search_movie
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/parser/http/__init__.py", line 468, in _search_movie
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/parser/http/__init__.py", line 450, in _get_search_content
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/parser/http/__init__.py", line 432, in _retrieve
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/parser/http/__init__.py", line 191, in retrieve_unicode
  File "/usr/lib/python2.7/urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 358, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "/usr/lib/python2.7/urllib.py", line 375, in http_error
    return self.http_error_default(url, fp, errcode, errmsg, headers)
  File "/usr/local/lib/python2.7/dist-packages/IMDbPY-4.8.2-py2.7-linux-i686.egg/imdb/parser/http/__init__.py", line 245, in http_error_default
IMDbDataAccessError: {'url': 
'http://akas.imdb.com/find?s=tt;mx=20;q=Aeon+Flux+Il+futuro+ha+inizio+ITA', 
'error type': 'http_error_default', 'errcode': 503, 'headers': 
<httplib.HTTPMessage instance at 0x8e4d4cc>, 'proxy': '', 'errmsg': 'Service 
Temporarily Unavailable'}

Original comment by andre...@gmail.com on 9 Jun 2012 at 4:46

GoogleCodeExporter commented 9 years ago
well, looking at the error stack trace it seems it's only a temporary problem, 
caused by IMDb website. as you can se in the lasts rows:

IMDbDataAccessError: {'url': 
'http://akas.imdb.com/find?s=tt;mx=20;q=Aeon+Flux+Il+futuro+ha+inizio+ITA', 
'error type': 'http_error_default', 'errcode': 503, 'headers': 
<httplib.HTTPMessage instance at 0x8e4d4cc>, 'proxy': '', 'errmsg': 'Service 
Temporarily Unavailable'}

is a 'Service Temporarily Unavailable' problem :)
try again now, it should work...

anyway, if you still have the same problem, let me know, we will try to 
investigate further

Original comment by albem...@gmail.com on 10 Jun 2012 at 7:35

GoogleCodeExporter commented 9 years ago
after further investigation, it seems it's a problem coming from a new version 
of IMDb website. 

IMDbPY library will be updated soon, as the new version will contains a fix for 
that.

this problem will be (hopefully) fixed with next release.

sorry for that, but we all have to wait :)

Original comment by albem...@gmail.com on 10 Jun 2012 at 9:13

GoogleCodeExporter commented 9 years ago
Ok, thank you for your quick reply, I'll wait for the next release.

And thank you again for the program and its great concept!

Original comment by andre...@gmail.com on 10 Jun 2012 at 12:16

GoogleCodeExporter commented 9 years ago
a new version has been published, which solves this problem, so please download 
this last version.

Original comment by albem...@gmail.com on 16 Jun 2012 at 7:08