pombreda / pycomicmetathis

Automatically exported from code.google.com/p/pycomicmetathis
0 stars 0 forks source link

Unknown issue I'm having... #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. As soon as I try to run the script, this happens
2.
3.

What is the expected output? What do you see instead?

Found a seriesId.txt file in this directory.
Read series Id is 42808
Processing :Green Lantern (2011) #009.cbz
No comment in zip file.
After fixing spaces, title is: Green Lantern (2011) #009
Querying the ComicVine for the Issue based on the filename...
Traceback (most recent call last):
  File "/bin/pyComicMetathis.py", line 1161, in <module>
    main()
  File "/bin/pyComicMetathis.py", line 1015, in main
    processDir(dir)
  File "/bin/pyComicMetathis.py", line 1000, in processDir
    processFile(dir, filename, thisSeriesId)
  File "/bin/pyComicMetathis.py", line 821, in processFile
    issueId, seriesId, thisSeries, thisIssue = searchByFileName(filename)
  File "/bin/pyComicMetathis.py", line 428, in searchByFileName
    cvSearchResults = json.load(urllib.urlopen(cvSearchURL))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 84, in urlopen
    return opener.open(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 349, in open_http
    'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)

What version of the product are you using? On what operating system?

r81, on Mac 10.7.4 - think it went tits up after a general software update I 
just did, didn't check too much into what it was, just let it do its thing...

I'm a total newbie to any scripts like this, just need to know how to fix it 
and see if it's anything I've done!

Please provide any additional information below.

Original issue reported on code.google.com by nick.pos...@gmail.com on 15 Jun 2012 at 4:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Also having problems with the script. Running 2.0.6 of the script, on 10.7.4. 
It looks like 10.7.4 cripples Python, or something equally untenable. 
Additionally, It seemed to work fine until last week. First noticed it on 
Wednesday (6/13), and thought that something had changed at Comicvine, but I 
think it's a python/10.7.4 issue.

I've tried updating my Python with 3.2.3 available from python.org, but that 
doesn't seem to have resolved the issue.

Here are two separate errors I get. The first was before updating to 3.2.3, the 
second is with 3.2.3 installed.

Processing :Conan the Barbarian 005.cbz
No comment in zip file.
After fixing spaces, title is: Conan the Barbarian 005
Querying the ComicVine for the Issue based on the filename...
^[[ATraceback (most recent call last):
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 1128, in <module>
    main()
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 982, in main
    processDir(dir)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 967, in processDir
    processFile(dir, filename, thisSeriesId)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 788, in processFile
    issueId, seriesId, thisSeries, thisIssue = searchByFileName(filename)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 429, in searchByFileName
    cvSearchResults = json.load(urllib.urlopen(cvSearchURL))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 84, in urlopen
    return opener.open(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 356, 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 369, in http_error
    result = method(url, fp, errcode, errmsg, headers)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 663, in http_error_301
    return self.http_error_302(url, fp, errcode, errmsg, headers, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 632, in http_error_302
    data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 659, in redirect_internal
    return self.open(newurl)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 349, in open_http
    'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)

Now with 3.2.3 installed...
Processing :Conan the Barbarian 005.cbz
No comment in zip file.
After fixing spaces, title is: Conan the Barbarian 005
Querying the ComicVine for the Issue based on the filename...
Processing /Users/cwaldrip/Documents/Comics/ Convert to CBZ/Conan the Barbarian 
005.cbz:
No series name found.  Enter the series name:   Conan the Barbarian
Querying ComicVine for the Series...
Traceback (most recent call last):
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 1128, in <module>
    main()
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 982, in main
    processDir(dir)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 967, in processDir
    processFile(dir, filename, thisSeriesId)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 793, in processFile
    thisSeries, seriesId  = getSeries(comicBookInfo, dir, filename)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 601, in getSeries
    seriesResults = searchForSeries(thisSeries)
  File "/Users/cwaldrip/Documents/Comics/ Convert to CBZ/ pyComicMetaThis.py", line 494, in searchForSeries
    cvSearchResults = json.load(urllib.urlopen(cvSearchURL))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 84, in urlopen
    return opener.open(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 349, in open_http
    'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)

Original comment by cwald...@me.com on 18 Jun 2012 at 11:42

GoogleCodeExporter commented 9 years ago
I'm not sure what the problem is.  It looks like ComicVine is having problems 
right now according to their forums 
http://www.comicvine.com/forums/api-developers/2334/slow-api-server/674747/  

I had modified the script to print the query URL and with the Conan the 
Barbarian 005 query I get 0 results...  if I just search for Conan I get 
tons... makes me think they've changed their api so it won't accept spaces in 
the query string.  

Original comment by andre.me...@gmail.com on 19 Jun 2012 at 12:46

GoogleCodeExporter commented 9 years ago
Comicvine was having issues recently.  I got http timeouts, but it all seems to 
be working for me now.

Original comment by jimmy.aitken@gmail.com on 20 Jun 2012 at 12:37

GoogleCodeExporter commented 9 years ago
Thanks Jimmie. I can confirm it's working again. It must have been ComicVine 
then!

Huzzah!

Original comment by cwald...@me.com on 21 Jun 2012 at 2:49