cebtenzzre / tumblr-utils

A fork of tumblr-utils with Python 3 support, bug fixes, and lots of features I found useful.
GNU General Public License v3.0
38 stars 7 forks source link

Attempt to run, hit Syntax Error #16

Closed beet-enjoyer closed 8 months ago

beet-enjoyer commented 8 months ago

Using MacOSX Catalina 10.15.5 and Python 3.12.1. Downloaded tumblr-utils-master on Dec 11, 2023. Command and error output:

[username]@ca-7b7m2g2 tumblr-utils-master % python tumblr_backup.py -i --tag-index --save-video [blogname] File "tumblr.backup.py", line 45 class Literal(metaclass=FakeGenericMeta): ^ Syntax Error: invalid syntax

that carrot points to the =

tumblr-utils syntax error

I know nothing about python and am following these tutorials:

https://github.com/Cebtenzzre/tumblr-utils/blob/cebtenzzre/tumblr_backup_for_beginners.md

https://docs.google.com/document/d/1yBWlk-yEgpSoEh3c9oLhz_kbLtUGqbqzOpCtJsvQgjI/edit#heading=h.z8o3nt60g1z2

(both are for windows, i'm making educated guesses about what to do for mac and am surprised I got this far)

So I poke around in the script (a duplicate version so I don't fuck up the original) in IDLE and start deleting =signs and repeat the command in Terminal just to see what happens. It gets a few lines farther before it hits another syntax error. Many repetitions, similar results. It's usually unhappy about = or ==.

cebtenzzre commented 8 months ago

Please make sure you are actually using Python 3 (try using python3 instead of python, you can double-check with python --version and python3 --version). The system Python provided by older versions of macOS is Python 2, which is very old (originally released in 2010) and we no longer provide support for it.