Skip to content

Replace netifaces with psutil for network address retrieval - #46

Merged
Adamasterr merged 2 commits into
masterfrom
45-netifaces-on-windows-runs-out-of-memory
Mar 3, 2026
Merged

Adamasterr merged 2 commits into
masterfrom
45-netifaces-on-windows-runs-out-of-memory

Conversation

@Adamasterr

@Adamasterr Adamasterr commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

Also netifaces2 is no longer maintained.

@Adamasterr Adamasterr added the Fix Bug fixes label Mar 3, 2026
@Adamasterr Adamasterr linked an issue Mar 3, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces usage of the netifaces API with psutil for enumerating local IPv4 interface addresses, and updates packaging metadata accordingly.

Changes:

  • Replace netifaces-based local address discovery with psutil.net_if_addrs().
  • Swap dependency from netifaces2 to psutil in pyproject.toml.
  • Update the dev environment dependencies to include psutil.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/PekatVisionSDK/instance.py Uses psutil.net_if_addrs() to gather local IPv4 addresses instead of netifaces.
pyproject.toml Replaces netifaces2 with psutil in project and dev dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml Resolved
@Adamasterr
Adamasterr merged commit d64c4ae into master Mar 3, 2026
4 checks passed
@Adamasterr
Adamasterr deleted the 45-netifaces-on-windows-runs-out-of-memory branch March 3, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netifaces on windows runs out of memory

3 participants