cevoaustralia / aws-google-auth

Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
MIT License
537 stars 181 forks source link

Anyone knows whats the error: No module Named as "aws_google_auth" it is underscore? not aws-google-auth #263

Open Renjie-d1g1t opened 2 years ago

Renjie-d1g1t commented 2 years ago

image

Renjie-d1g1t commented 2 years ago

So whats the aws_google_auth in the aws-google-auth? This error is so weird for me

michael-oleary commented 2 years ago

The main repository is aws-google-auth, and the module in that is aws_google_auth, I assume it's looking for that on the import.

See: https://github.com/cevoaustralia/aws-google-auth/tree/master/aws_google_auth

@Renjie-d1g1t Do you have any steps to recreate this? Happy to jump on a call to see what is going on.

Renjie-d1g1t commented 2 years ago

@michael-oleary Thanks for the information! So I was helping one of my teammates to install aws-google-auth on her computer by using "pip install aws-google-auth". But it keeps giving me error "aws-google-auth - not found" after it get installed. So when I was investigating, I found the pip install method is actually installing packages to somewhere else instead of normal python folder. So I tried to manually move the whole package folder then tried to use aws-google-auth, that's how I got this error. I assume there is something missing for the installing process, simply moving the file does not work.

kriation commented 1 year ago

@Renjie-d1g1t, I successfully tested aws-google-auth on Windows using the following:

Note: I installed Python to c:\python310 using Chocolatey

  1. From within c:\Python310, execute: .\python.exe -m pip install aws-google-auth which will install aws-google-auth and its required dependencies
  2. Run aws-google-auth using: c:\python310\scripts\aws-google-auth.exe

For more guidance on how to manage stand alone command line Python tools, take a look at the public Python documentation: https://packaging.python.org/en/latest/guides/installing-stand-alone-command-line-tools/