Unable to install netifaces
- Dominant language
- Python
- Stars
- 337
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I have struggled a while to install netifaces when setting up micropy-cli and Google must be sick and tired of my searching for a solution :-):
I keep getting the same error message although I have uninstalled all C++ tools and then installed the latest version: I have added a screenshot showing my currently installed version of C++
==========================
Building wheel for netifaces (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'netifaces' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for netifaces
Running setup.py clean for netifaces
Failed to build netifaces
Installing collected packages: netifaces, dpath, distlib, boltons, bleak-winrt, win32-setctime, typing-extensions, typed-config, tomli-w, tenacity, tabulate, smmap, shellingham, requests, pyudev, python-minifier, pysondb-v2, pygments, pyflakes, portalocker, nodeenv, mypy-extensions, mdurl, MarkupSafe, importlib-metadata, deprecated, colorama, cachetools, attrs, async-timeout, argcomplete, typing-inspect, tqdm, rshell, questionary, pyright, pydantic, mypy, markdown-it-py, mailbits, loguru, jsonschema, Jinja2, gitdb, click, cachier, bleak, autoflake, userpath, typer, rich, pypi-simple, libcst, GitPython, bleak-sigspec, black, upydevice, pygithub, pipx, micropython-stubber, micropy-cli
Running setup.py install for netifaces ... error
error: subprocess-exited-with-error
× Running setup.py install for netifaces did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running install
running build
running build_ext
building 'netifaces' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> netifaces
Contributor guide
No contributing guide indexed for this repository
Research direction
The report mentions micropy-cli installation on Windows and the netifaces build failure, but names no project files or tests. Start by reproducing the installation and tracing how netifaces is included in the package dependencies. Done means micropy-cli installs successfully without requiring the reported failing build step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100