Skip to content

Fixing old code - replacement for 'import IW' - 'iw.scan' #816

Closed
@SecurityJon

Description

@SecurityJon

Hi there!

Hopefully a quick solution, I'm fixing up some legacy code from the https://github.com/SecurityJon/audit-radius project and this utilises pyroute2.

The code imports:

from pyroute2 import IW

And this throws:

ImportError: cannot import name 'IW' from 'pyroute2' (/usr/local/lib/python3.9/dist-packages/pyroute2/__init__.py)

It's using this for wifi scanning.

I can't easily see in the docs (I'm not a python dev) the correct way of fixing this - was this functionality removed or accessed in a different way?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions