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.

KeyError: 'id_str'

See original GitHub issue

When I run delete-tweets --until 2017-12-01 tweet.js, I get the following error:

Traceback (most recent call last): File "/usr/local/bin/delete-tweets", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/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 "/usr/local/lib/python3.7/site-packages/deletetweets/deletetweets.py", line 72, in delete destroyer.destroy(row["id_str"]) KeyError: 'id_str'

Any idea how to fix this issue?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
d-lowlcommented, Jan 14, 2020

I think I got it working. There was a minor file structure change or something. Will make a pull request when confirm

0reactions
koenrhcommented, Jan 18, 2020

Thanks for reporting! Should be fixed in the latest version: pip install -U delete-tweets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError in extract_uid() for Weibo provider #921 - GitHub
Signing up using Weibo will raise KeyError due to the absence of key "idstr" in data in WeiboProvider.extract_uid().
Read more >
Memory error while trying to search every data frame column ...
-1: idStr = '' j = idIndex+5 while j<len(collectionJson) and ... @anky_91 I am getting key error, after trying this code.
Read more >
Py (Jython API documentation) - javadoc.io
KeyError. public static PyObject KeyError ... KeyError. public static PyException KeyError(String message) ... idstr. public static String idstr(PyObject o) ...
Read more >
org.python.core.Py.idstr java code examples - Tabnine
Best Java code snippets using org.python.core.Py.idstr (Showing top 20 results out of 315) · PyReflectedConstructor.toString() · PyReflectedFunction.toString().
Read more >
qcodes.instrument.instrument — QCoDeS 0.36.0.dev245 ...
idstr = "" # in case self.ask fails try: idstr = self.ask("*IDN? ... Raises: KeyError: If no instrument of that name was found,...
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