google / gcp_scanner

A comprehensive scanner for Google Cloud
Apache License 2.0
304 stars 95 forks source link

Unable to install gcp_scanner on windows machine. #302

Open s-bose7 opened 8 months ago

s-bose7 commented 8 months ago

Getting an installation error during pip install gcp_scanner.

Affected Component

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:

  1. Create a new python venv in a working directory, where you want to install the library.
  2. Activate the venv.
  3. Run the command pip install gcp_scanner or alternatively you can clone the repo first and then run pip 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** ![platform_error](https://github.com/google/gcp_scanner/assets/69990740/2d65e537-669c-4b3a-a138-5237a84881b5)
dikshant182004 commented 8 months ago

hii @s-bose7 .plz assign this issue to me .i will try my best to resolve it

s-bose7 commented 8 months ago

Hello @dikshant182004 I'm a new contributor as you, I don't think you'd have to claim issues in order to work on it. If you can resolve it, please let me know. I'm eager to solve the problem as well. If you need any help, ask that in the google group. Alternatively you can ping @mshudrak, he'd be the maintainer for this project.

Thanks.

LetHandsOn commented 8 months ago

Hi, i belive this is the reason

The scanner does not rely on any third-party tool (e.g. gcloud). Thus, it can be compiled as a standalone tool and used on a machine with no GCP SDK installed (e.g. a Kubernetes pod). However, please keep in mind that the only OS that is currently supported is Linux.

s-bose7 commented 8 months ago

Hey thanks for your response. I've WSL installed on my machine as well. If i enable my virtual environment in WSL inside windows mounted disc, do you think it'd work?

On Sun, Dec 3, 2023, 05:00 LetHandsOn @.***> wrote:

Hi, i belive this is the reason

The scanner does not rely on any third-party tool (e.g. gcloud). Thus, it can be compiled as a standalone tool and used on a machine with no GCP SDK installed (e.g. a Kubernetes pod). However, please keep in mind that the only OS that is currently supported is Linux.

— Reply to this email directly, view it on GitHub https://github.com/google/gcp_scanner/issues/302#issuecomment-1837279918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQV7SVEUBOVZIK6F7BGTEQLYHO22BAVCNFSM6AAAAAA7NV7QV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGI3TSOJRHA . You are receiving this because you were mentioned.Message ID: @.***>