r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

SyntaxError: invalid syntax #593

Closed mgiay closed 3 years ago

mgiay commented 3 years ago

root@ns536903:/opt/temp/udemy/udemy-dl# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS" root@ns536903:/opt/temp/udemy/udemy-dl#

python udemy-dl.py https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/ -k cookies.txt File "udemy-dl.py", line 62 logger.info(msg=f"Downloading ({title})", new_line=True) ^ SyntaxError: invalid syntax

Screenshot: https://photos.app.goo.gl/yNWpcdk3KfibW2WS7

mohitjain commented 3 years ago

Are you using Python3?

r0oth3x49 commented 3 years ago

@mgiay you should use python3 instead python2 is not supported anymore.