Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

BadStatusLine exception on python example

$
0
0

Hi,

I was checking out the pyechonest library and ran across the following exception when trying to run one of the examples on the github page, more specifically, this one:

from pyechonest import artist
bk = artist.Artist('bikini kill')
print "Artists similar to: %s:" % (bk.name,)
for similar_artist in bk.similar: print "\t%s" % (similar_artist.name,)

The exception information goes like this:

Traceback (most recent call last):
File "example1.py", line 4, in <module>
artist = artist.Artist('paramore')
File "build\bdist.win-amd64\egg\pyechonest\artist.py", line 79, in __init__
File "build\bdist.win-amd64\egg\pyechonest\proxies.py", line 43, in __init__
File "build\bdist.win-amd64\egg\pyechonest\proxies.py", line 53, in get_attribute
File "build\bdist.win-amd64\egg\pyechonest\proxies.py", line 23, in get_attribute
File "build\bdist.win-amd64\egg\pyechonest\util.py", line 247, in callm
File "c:\Python27\lib\urllib2.py", line 404, in open
response = self._open(req, data)
File "c:\Python27\lib\urllib2.py", line 422, in _open
'_open', req)
File "c:\Python27\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "c:\Python27\lib\urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "c:\Python27\lib\urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "c:\Python27\lib\httplib.py", line 1045, in getresponse
response.begin()
File "c:\Python27\lib\httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "c:\Python27\lib\httplib.py", line 373, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''

Any help is appreciated. Thanks.


Viewing all articles
Browse latest Browse all 1582

Trending Articles