Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading album issue #26

Closed
NickWinston123 opened this issue May 13, 2015 · 9 comments
Closed

Downloading album issue #26

NickWinston123 opened this issue May 13, 2015 · 9 comments

Comments

@NickWinston123
Copy link

nicks-mac-mini:bandcamp-dl nick$ python bandcamp-dl.py http://liluglymane.bandcamp.com/album/third-side-of-tape
Traceback (most recent call last):
File "bandcamp-dl.py", line 56, in
album = bandcamp.parse(url)
File "/Users/nick/Documents/bandcamp-dl-master/bandcamp-dl/Bandcamp.py", line 28, in parse
album_meta = self.extract_album_meta_data(r)
File "/Users/nick/Documents/bandcamp-dl-master/bandcamp-dl/Bandcamp.py", line 67, in extract_album_meta_data
embedData = self.get_embed_string_block(request)
File "/Users/nick/Documents/bandcamp-dl-master/bandcamp-dl/Bandcamp.py", line 100, in get_embed_string_block
embedStringBlock = jsobj.read_js_object("var EmbedData = %s" % embedStringBlock)
File "/Users/nick/Documents/bandcamp-dl-master/bandcamp-dl/jsobj.py", line 71, in read_js_object
return visit(Parser().parse(code))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/slimit/parser.py", line 56, in init
self.lexer.build(optimize=lex_optimize, lextab=lextab)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/slimit/lexer.py", line 102, in build
self.lexer = ply.lex.lex(object=self, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ply/lex.py", line 893, in lex
if '.' not in lextab:
TypeError: argument of type 'module' is not iterable
nicks-mac-mini:bandcamp-dl nick$

@travs
Copy link

travs commented May 15, 2015

👍 Same here

@NickWinston123
Copy link
Author

@iheanyi any idea why this keeps occurring?

@iraritchiemeek
Copy link

Same issue

@mystic74
Copy link

mystic74 commented Jun 2, 2015

tl;dr
The following line might fix the problem
sudo pip install ply==3.4

Longer explanation:

This seems to be an issue with the ply, and the way that slimit uses it,

the issue regarding the matter can be viewed here :
rspivak/slimit#76

the simple fix is to downgrade ply, and for me it will do for now.
The better way will be for either one of the
two packages to solve the issue..

@NickWinston123
Copy link
Author

@mystic74 Oh thanks a lot this fixed it! I have been using youtube-dl but I still do enjoy bandcamp-dl a lot more. Appreciate the help can't believe how long it took me to see your post damn notifications!

@JacksonGariety
Copy link

@mystic74 this works, thanks!

@cibulka
Copy link

cibulka commented Oct 18, 2015

After downgrading to ply 3.4, I have this error:

~/Documents/repos/bandcamp-dl/bandcamp-dl/bandcamp-dl.py http://blackesteverblack.bandcamp.com/album/hide-before-dinner
unknown url type: //popplers5.bandcamp.com/download/track?enc=mp3-128&fsig=15e67e013dcc256151e75e0f8f99d993&id=368538134&stream=1&ts=1444652831.0
Downloading failed..

Ideas?

@rdlmda
Copy link

rdlmda commented Oct 18, 2015

@cibulka I am having the same error, I believe this is a separate issue, let's discuss it on its own page (#32)

@iheanyi
Copy link
Owner

iheanyi commented Dec 12, 2015

Closed in favor of #32

@iheanyi iheanyi closed this as completed Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants