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.

AttributeError: 'instancemethod' object has no attribute '__len__' (bridge.py", line 974)

See original GitHub issue

I get a whole lot of the following in the Ghidra console when first connecting initiating a connection to ghidra_bridge. I’m on Windows, running Ghidra in interactive mode. It appears to be working (I’m just getting started), but I get enough of this to overflow the Ghidra console when starting to run a script.

Traceback (most recent call last):
  File "C:\Users\eddyw\ghidra_scripts\jfx_bridge\bridge.py", line 974, in local_get
    result = getattr(target, name)
AttributeError: 'instancemethod' object has no attribute '__len__'

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fmagincommented, Oct 29, 2020

One workaround is to set PyCharm’s variable loading policy to “On demand” (Gear Icon on the left edge of the debugger panel). At least with my quick test just now this gets rid of all the errors in the ghidra_bridge server log. But at the obvious price of having to request the value for a variable if you want to see it in the debugger.

0reactions
mechgtcommented, Oct 29, 2020

Gotcha. For a single user datapoint, my primary motivator for checking out ghidra_bridge was exclusively for debugging. I’m having trouble getting other debug mechanisms working, so this is currently THE solution that’s working for me. Point being that debugging can be a primary use case for ghidra_bridge.

Thx for taking the time to check it the error messages and providing feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding attributes to instancemethods in Python - Stack Overflow
If I just try to set the attribute of the instance method it would not find the attribute no matter how I tried...
Read more >
qgis - function, return, 'instancemethod' object has no attribute ...
Maybe I'm wrong, but I have the impression that the function is not called, but its name is saved to currentprofile. Whats wrong?...
Read more >
2009-August.txt - Python mailing list
Date: Sat, 01 Aug 2009 19:16:14 +0200 Subject: M2Crypto: AttributeError: 'CSR' object has no attribute 'pkey' Message-ID: <1249146974.3330.1.camel@celsius> ...
Read more >
See raw diff - Hugging Face
Ensures that using the returned dialect, all the lines given will have - the ... Args: - obj (object): The object (with attributes)...
Read more >
3a2425a5aed1bef93dab954745...
1cd7777: PY-9343 cbd9919: cosmetics (follow-up to PY-9356) 936e77c: ... Not able to run Django Tests: AttributeError: 'NoneType' object has no attribute ...
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