AttributeError: 'instancemethod' object has no attribute '__len__' (bridge.py", line 974)
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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!