iheanyi / bandcamp-dl

Simple python script to download Bandcamp albums

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How i can run with python3

bizzlerulez opened this issue · comments

When I tried to download album its gave me this error code:

Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\bandcamp-dl.exe_main
.py", line 5, in
File "c:\python27\lib\site-packages\bandcamp_dl\bandcamp_dl.py", line 49, in
from .bandcamp import Bandcamp
File "c:\python27\lib\site-packages\bandcamp_dl\bandcamp.py", line 10
def parse(self, url: str, art: bool=True) -> dict or None:
^
SyntaxError: invalid syntax

i downloaded program with pip and pip3 both of them. i think its trying to run program witch python 2.7 how can i run program with python 3?

Uninstall it from Python 2.7.x, its likely first in your path so its trying to use the wrong one.