polymath icon indicating copy to clipboard operation
polymath copied to clipboard

syntaxError

Open Loris-bite opened this issue 2 years ago • 9 comments

When i run i've got a syntax error : python polymath.py -a /Users/loris/Desktop/Music/polymath2023/

File "polymath.py", line 60 command = f"ffmpeg -hide_banner -loglevel panic -i {file} -ab 160k -ac 2 -ar 44100 -vn -y {vidobj.audio}" ^ SyntaxError: invalid syntax

Loris-bite avatar Feb 12 '23 10:02 Loris-bite

What platform (windows, mac, linux) are you on?

samim23 avatar Feb 13 '23 09:02 samim23

mac (Big Sur 11.7.3)

Loris-bite avatar Feb 13 '23 10:02 Loris-bite

Do you have ffmpeg installed on your system?

brew install ffmpeg

samim23 avatar Feb 14 '23 17:02 samim23

I didn't have it, but after installing it I still have the same error.

Loris-bite avatar Feb 15 '23 09:02 Loris-bite

@Loris-bite What does the output of python --version say?

faradox avatar Feb 17 '23 11:02 faradox

Python 2.7.16

Loris-bite avatar Feb 17 '23 15:02 Loris-bite

Polymath requires Python 3.7, 3.8, 3.9 or 3.10 (no bigger than 3.10 on MacOs!). Please try upgrading your setup!

samim23 avatar Feb 17 '23 15:02 samim23

I have Python 3.10. If i use python3 --version the output say Python 3.10.6

Loris-bite avatar Feb 17 '23 16:02 Loris-bite

Then you should also use python3 to call polymath, i.e.

python3 polymath.py -a /Users/loris/Desktop/Music/polymath2023/

Also make sure that you installed the requirements with the correct pip (likely pip3) or consider setting up a conda environment.

faradox avatar Feb 17 '23 17:02 faradox

I Reinstalled using pip3 and now it works!

Loris-bite avatar Feb 21 '23 10:02 Loris-bite

awesome!

samim23 avatar Feb 21 '23 12:02 samim23