Skip to content

Unclear Deprecation Warning "__init__ is deprecated as of 3.4.3997" #4853

@utkonos

Description

@utkonos

Version and Platform (required):

  • Binary Ninja Version: 3.5.4526
  • OS: macOS
  • OS Version: 14.2.1
  • CPU Architecture: x64

Bug Description:
On instantiation, StructuredDataView raises a warning. But the message is unclear as to what should be changed. The two options listed in the message do not seem related to the executed code.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open Python console
  2. Select the address of the first section header
  3. Run this python binaryninja.StructuredDataView(bv, 'Section_Header', here)
  4. See warning:
>>> binaryninja.StructuredDataView(bv, 'Section_Header', here)
<console>:1: DeprecatedWarning: __init__ is deprecated as of 3.4.3997. Use TypedDataAccessor or DataVariable.value instead.
<StructuredDataView type:Section_Header size:0x28 address:0x400200>

Expected Behavior:
No warnings or errors.

Screenshots:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions