question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find Tweet.js on a Mac

See original GitHub issue

I keep getting this error when I try to run delete-tweets --until 2019-01-01 tweet.js

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/delete-tweets", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/deletetweets/__main__.py", line 53, in main
    deletetweets.delete(args.file, args.until_date, filters, args.spare_ids, args.min_likes, args.min_retweets, args.dry_run)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/deletetweets/deletetweets.py", line 61, in delete
    with io.open(tweetjs_path, mode="r", encoding="utf-8") as tweetjs_file:
FileNotFoundError: [Errno 2] No such file or directory: 'tweet.js'

I have the very current version of Python installed, and Pip installed under Python 3. I also have tweet.js in all(delete-tweets and deletetweets) folders.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
artofofiarecommented, Nov 5, 2020

The location of the tweet.js file (whether relative or absolute) should not really matter as long as the file exists at that location. Have you tried running the command with the absolute path to your tweet.js file? For example:

delete-tweets --until 2019-01-01 /Users/koen/Downloads/tweet.js

Voila! that was the zing I needed. My pip and python 3 just didn’t know where tweet.js was located, even though I had plastered it everywhere. Process is currently running for 17k tweets. What did you do to create your tweet.js? I am having this same issue and not sure how you figured it out. Greatly appreciate your help.

If what you asked is what you are searching for, then this article might help get that. https://medium.com/@oyeAbhishek/how-to-get-your-top-tweets-without-any-external-tool-40a4a8076122

0reactions
walter-gracecommented, Nov 5, 2020

The location of the tweet.js file (whether relative or absolute) should not really matter as long as the file exists at that location. Have you tried running the command with the absolute path to your tweet.js file? For example:

delete-tweets --until 2019-01-01 /Users/koen/Downloads/tweet.js

Voila! that was the zing I needed. My pip and python 3 just didn’t know where tweet.js was located, even though I had plastered it everywhere.

Process is currently running for 17k tweets. What did you do to create your tweet.js? I am having this same issue and not sure how you figured it out. Greatly appreciate your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to download your Twitter archive and Tweets
How to download your Twitter archive · Step 1. In the top menu, you will either see a navigation menu icon or your...
Read more >
How to embed a tweet on a page if I only know it's ID?
Go to publish.twitter.com and paste in the URL above - it will show you a Tweet embed, and provide the markup code. Programmatically,...
Read more >
How to Download and View Your Twitter History Archive
Next, on the Settings page, click on Your account and then Download an archive of your data.
Read more >
How to download and view your entire Twitter history
Find out how to download your Twitter archive and view your entire tweet history using a browser or a spreadsheet app.
Read more >
How to Use Your Twitter Archive File (with Pictures)
1. Go to https://www.twitter.com in a web browser. You can request an archive of all of your tweets, messages, and media you've shared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found