bbolli / tumblr-utils

Utilities for dealing with Tumblr blogs, Tumblr backup
GNU General Public License v3.0
668 stars 124 forks source link

command not found #240

Open sillyofpepper opened 1 month ago

sillyofpepper commented 1 month ago

This might be a very simple question since I'm not very familiar with running code in the terminal, but I keep getting the result "command not found: tumblr_backup.py" I downloaded tumblr-utils in November 2023 I ran tumblr_backup.py [blog name] from the folder it was in It might be relevant that I'm on a mac and am using the terminal.

bbolli commented 1 month ago

If the current folder is the same as where the script was downloaded, the correct command is ./tumblr_backup.py. Note the dot and slash at the start. If your current folder is not the same as the download folder, put the name of the download folder first, e.g. /Users/sillyofpepper/Downloads/tumblr_backup.py.

Hope this helps.

EDIT: the variable HOME contains the path of your home folder, so this can be simplified to $HOME/Downloads/tumblr_backup.py.

sillyofpepper commented 1 month ago

Thank you! I hope you don't mind guiding me through a new error: "non-ok API response: HTTP 404 not found"

bbolli commented 1 month ago

Can you post the complete command you entered and the complete output that results?

sillyofpepper commented 1 month ago

./tumblr_backup.py [blog name] URL is https://api.tumblr.com/v2/blog/[blog name]/posts?api_key=cQ5bM9IINU3SQDX1l7puMrbtJJAixufL0u9tou0f45A7nPF4xQ&limit=1&reblog_info=true [FATAL] Non-OK API repsonse: HTTP 404 Not Found
{'meta': {'status': 404, 'msg': 'Not Found'}, 'errors': [{'title': 'Not Found', 'code': 0, 'detail': 'Hit a glitch. Try again.'}], 'response': []} Failed to back up [blog name]

I just replaced the blog name for privacy.

sillyofpepper commented 1 month ago

Thank you for helping me through this.