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
39 stars 7 forks source link

unexpected indent #17

Closed mojii100 closed 8 months ago

mojii100 commented 8 months ago

trying to run script gives unexpected indent error on line 2355. what is the expected indent?

commit: 563d6f1 python3 tumblr_backup.py -i --tag-index --save-video

error: File "/home//Downloads/tumblr-utils-master/tumblr_backup.py", line 2355 wget_retrieve = WgetRetrieveWrapper(options, logger.log) IndentationError: unexpected indent

cebtenzzre commented 8 months ago

If you pip install tumblr-backup, can you just tumblr-backup ...? It should be easier.

I think you broke the formatting of the script when you set your API key.

mojii100 commented 8 months ago

I'm pretty sure I did, but I don't know what the correct indentation is and redownloading the file to reset the spacing still returns unexpected indent. how much whitespace exactly is supposed to be before that line? also running 'tumblr-backup ' returns 'command not found'

cebtenzzre commented 8 months ago

Assuming you are not using a venv, it sounds like you need to add ~/.local/bin to your PATH. If you use bash, add this line to the end of your ~/.bashrc:

export PATH=~/.local/bin:$PATH

Then either start a new shell, or apply the changes with source ~/.bashrc.