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.

Failed to import python plugin: official/Vector35_debugger: cannot import name 'Structure

See original GitHub issue

Today updated BinaryNinja Personal 2.4.2974-dev, the Vector35 Debugger wasn’t loading with the following message

Failed to import python plugin: official/Vector35_debugger: cannot import name ‘Structure’ from ‘binaryninja’ (C:\MyFiles\Apps\BinaryNinja\plugins..\python\binaryninja_init_.py) Failed to load plugin: Vector35_debugger

Seems to be failing during the import phase found here during the except clause which was changed about 15 hours ago according to git blame

try:
	from binaryninja import Architecture, BinaryView, Symbol, SymbolType, Type, StructureBuilder, StructureType, FunctionGraphType, LowLevelILOperation, MediumLevelILOperation, core_ui_enabled, get_text_line_input, get_choice_input
	post3 = True
except:
	from binaryninja import Architecture, BinaryView, Symbol, SymbolType, Type, Structure, StructureType, FunctionGraphType, LowLevelILOperation, MediumLevelILOperation, core_ui_enabled, get_text_line_input, get_choice_input
	post3 = False

I am not sure if I need to install something else prior to installing this plugin or not. This is Debugger v1.3.3 according to the “Manage Plugins” panel

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
psifertexcommented, Sep 9, 2021

You can pull the latest version manually, we haven’t done a release as we need to do more testing, but this should get you going in the meantime:

TL;DR Just uninstall the plugin manager version and clone directly into your plugin folder.

git clone https://github.com/Vector35/debugger ~/.binaryninja/plugins/debugger

(adjust as appropriate for your OS/user folder location)

0reactions
psifertexcommented, Sep 9, 2021

Please do not put plugins in the other locations. When you manually install them you want to use the first folder that the Tools menu opens. Any other location is incorrect. Nothing is in there because you haven’t installed any other plugins manually yet, that’s ok! 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation Fault when enabling Plugin #2672 - GitHub
Start binaryninja; Press Ctrl+Shift+M to open the Plugin Manager; Search one of the plugins from the list above, e.g. Debugger and Press install ......
Read more >
How to solve 'ImportError: cannot import' when debugging in ...
I pulled the code, set up a virtual environment (Python 3.6.9) and ran python install --editable . . All tests pass successfully both...
Read more >
Debugger - Binary Ninja User Documentation
Binary Ninja Debugger is a plugin that can debug executables on Windows, Linux, and macOS, and more! The debugger plugin is shipped with...
Read more >
English - Coding | Reversing
However for reasons unknown I could not get this sample running. Hence, I had to resort to a ... For dynamic analysis we...
Read more >
Cannot debug my Python add-in - Mod the Machine - TypePad
You can work around that by running Python compile on your main module/main Python file to find out what the problem is with...
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