'How to get a python github code made for windows to run on macos

To be clear - I'm not trying to write code or edit someone else's code. Someone made a brilliant program for something I'm interested in on github but it's designed for windows and I'm on a mac.

I've basically been crash-coursing in python just to figure out how to load it all but while the developer says it should run on other systems than windows, it isn't working as the desktop app appears to be working on a cmd file.

I got the file to run as a .command file but when it loads as a Terminal it's giving me

Path/file-main/file.command: line 1: @echo: command not found
Path/file-main/file.command: line 9: unexpected EOF while looking for matching `"'
Path/file-main/file.command: line 12: syntax error: unexpected end of file

I'm honestly not sure what to do as all. I know basics but this level of script is beyond my skill level so any help would be appreciated.



Solution 1:[1]

You shouldn't need to run the .cmd file if you're on mac, as long as you've installed python (here's a guide to how to do that, if you haven't already). Thereafter, you should just be able to run the program directly, after installing the relevant dependencies. After downloading the repository and going inside it with the command line (in the top-level folder of the repo), run the following commands:

First, install dependencies:

pip install -r requirements.txt

then, once that's done, execute the program

python ao3downloader.py

and the program's instructions should guide you through the rest.

You may have to try pip3 and python3 instead, if the above doesn't work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Green Cloak Guy