Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command not found #240

Open
sillyofpepper opened this issue Oct 5, 2024 · 5 comments
Open

command not found #240

sillyofpepper opened this issue Oct 5, 2024 · 5 comments

Comments

@sillyofpepper
Copy link

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
Copy link
Owner

bbolli commented Oct 5, 2024

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
Copy link
Author

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

@bbolli
Copy link
Owner

bbolli commented Oct 16, 2024

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

@sillyofpepper
Copy link
Author

./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
Copy link
Author

Thank you for helping me through this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants