Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install gcp_scanner on windows machine. #302

Open
1 of 7 tasks
s-bose7 opened this issue Nov 16, 2023 · 4 comments
Open
1 of 7 tasks

Unable to install gcp_scanner on windows machine. #302

s-bose7 opened this issue Nov 16, 2023 · 4 comments

Comments

@s-bose7
Copy link

s-bose7 commented Nov 16, 2023

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:

  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

@dikshant182004
Copy link

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

@s-bose7
Copy link
Author

s-bose7 commented Nov 20, 2023

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
Copy link

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
Copy link
Author

s-bose7 commented Dec 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants