Please help me to complete my Python Project


#1

I am getting below message, how to do getting error.

Traceback (most recent call last):
File “gyb.py”, line 2157, in
File “gyb.py”, line 1482, in main
File “gyb.py”, line 917, in doCreateProject
File “gyb.py”, line 731, in getCRMService
File “gyb.py”, line 716, in _run_oauth_flow
File “site-packages\google_auth_oauthlib\flow.py”, line 404, in run_console
File “site-packages\google_auth_oauthlib\flow.py”, line 280, in fetch_token
File “site-packages\requests_oauthlib\oauth2_session.py”, line 360, in fetch_token
File “site-packages\oauthlib\oauth2\rfc6749\clients\base.py”, line 421, in parse_request_body_response
File “site-packages\oauthlib\oauth2\rfc6749\parameters.py”, line 431, in parse_token_response
File “site-packages\oauthlib\oauth2\rfc6749\parameters.py”, line 438, in validate_token_parameters
File “site-packages\oauthlib\oauth2\rfc6749\errors.py”, line 405, in raise_from_error
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) Malformed auth code.
[13728] Failed to execute script gyb

Are you a G Suite admin backing up user mail? [y or n] n

You can authorize a service account later by running:

gyb --email amitforcloudxlab@gmail.com --action check-service-account
GYB installation and setup complete!


#2

Hi, Amit.

Please follow the workflow in your web-console. To get the backup of your email.

  1. bash <(curl -s -S -L https://git.io/gyb-install)
  2. You will see a bin folder. Go through the steps
  3. Now continue by selecting option 7.
  4. Open the given link in a new browser, advanced with GYB.
  5. You will get permission box “Grant GYB permission” and Google Drive and Gmail permissions click “Allow” three consecutive times.
  6. Copy the Verification code and type in the Linux console.
  7. It will ask " Are you ready to authorize the GYB to backup and restore G Suite user email? Click “No” if you are not using G-suite products.
  8. That’s all you have successfully installed GYB and a folder with path /home/your_user_login_id/bin/gyb/gyb has been created.
  9. cd bin/
  10. cd gyb/
  11. ./gyb --email your email address.

I have replied with the screenshots in our discussions forum : UnboundLocalError: local variable 'credentials' referenced before assignment

You can follow the workflow.

All the best.


#3

now stuck on.
Please enter your Google email address: amitforcloudxlab@gmail.com

Go to the following link in your browser:

    https://gyb-shortn.jaylee.us/6zh9kx

Enter verification code: 4/vgHG3N4EuMdC3M8z0fzy2AI8sVn2YOQG3S_zna2RsvWF-pbTekSalEA
Creating project “Got Your Back Project”…
Checking project status…
Please go to:
https://console.cloud.google.com/start
and accept the Terms of Service (ToS). As soon as you’ve accepted the ToS popup, you can return here and press enter.

Creating project “Got Your Back Project”…
Checking project status…
enabling API drive.googleapis.com
enabling API gmail.googleapis.com
enabling API groupsmigration.googleapis.com
enabling API vault.googleapis.com
Creating Service Account
Please go to:

https://console.developers.google.com/apis/credentials/consent/edit?createClient&newAppInternalUser=true&project=gyb-project-9kq-a1l-ejd

  1. Enter “GYB” for “Application name”.
  2. Leave other fields blank. Click “Save” button.
  3. Choose “Other”. Enter a desired value for “Name”. Click the blue “Create” button.
  4. Copy your “client ID” value.

Enter your Client ID:


#4

Hi, Amit.

Copy and paste your Client id, it will be not be visible in the terminal.

All the best!


#5

It’s downloaded, thanks.


#6

can u please help me in doing this i am stuck up after bash and not getting anything
thanks
smita bagchi


#7

Plz let me know what are things you did so that we can proceed further