-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Getting an installation error during pip install gcp_scanner.
Affected Component
- Crawl
- CredsDB
- Scanner
- Test
- Docs
- Python
- GCP APIs
Describe the bug
This is from console log -
Failed to build grpcio
ERROR: Could not build wheels for grpcio, which is required to install pyproject.toml-based projects
Error file and reason -
File "C:\Users\SUDIP BASU\AppData\Local\Temp\pip-build-env-2r9mhvvv\overlay\lib\python3.9\site-packages\setuptools\_distutils\_msvccompiler.py", line 246, in initialize
raise DistutilsPlatformError( distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
I've checked my platform using python's platform module. platform.platform() returns 'Windows-10-10.0.19045-SP0'
To Reproduce
Steps to reproduce the behavior:
- Create a new python venv in a working directory, where you want to install the library.
- Activate the venv.
- Run the command
pip install gcp_scanneror alternatively you can clone the repo first and then runpip install ..
Expected behavior
It should install gcp_scanner in your working directory.
Current behavior
Getting an error during installation, while building grpcio package.
Logs
` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 230.9/230.9 kB 3.6 MB/s eta 0:00:00
Downloading grpcio_status-1.59.2-py3-none-any.whl (14 kB)
Building wheels for collected packages: gcp-scanner, pyu2f, grpcio
Building wheel for gcp-scanner (pyproject.toml) ... done
Created wheel for gcp-scanner: filename=gcp_scanner-1.3.0.post6+git.1e99bbee-py3-none-any.whl size=90797 sha256=0bf4f0f4791301e0bf39b93e503d1a838a09c556c252c77bd5fe72a5e1af13ce
Stored in directory: C:\Users\SUDIP BASU\AppData\Local\Temp\pip-ephem-wheel-cache-nanjwzlm\wheels\e8\9f\16\5cc4f1d85dc298cae8bc1608f53f2f223b88ee2a08d9d324c7
Building wheel for pyu2f (pyproject.toml) ... done
Created wheel for pyu2f: filename=pyu2f-0.1.5-py3-none-any.whl size=39413 sha256=803c1fcb70699104313c5378b8d59e1800c46bf0ab7c9a8e9e5622f81997ea1e
Stored in directory: c:\users\sudip basu\appdata\local\pip\cache\wheels\46\3b\95\d2e12a506ead5f6f8b54b0df8e40ab653c2fb9c0379f247eaa
Building wheel for grpcio (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for grpcio (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [174 lines of output]
:40: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html`
Screenshots
