Coder Social home page Coder Social logo

Comments (14)

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024 1

Looks like it cannot find Phyton.

root@misc-public:~/sync/oauth2# ./oauth2_google.py
-bash: ./oauth2_google.py: /usr/bin/python: bad interpreter: No such file or directory
root@misc-public:~/sync/oauth2#
apt install python

And now showing:

I'll try again tomorrow running the whole thing.

image

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

Do you have
https://imapsync.lamiral.info/oauth2/oauth2_gmail/oauth2_google.py
in the same directory?

from imapsync.

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024

Yes, just did a whole clone of the IMAPSYNC from github as well.

See:
image

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

It's one of those shell mysteries...

What gives
/root/sync/oauth2/oauth2_google.py

from imapsync.

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024

@gilleslamiral I've started to try it this morning when I generate with:

./oauth2_google.py [email protected] --client_id=6395189-hbl1cs6k98a2aum.apps.googleusercontent.com     --client_secret=GOCSL_sEckDXEFx     --generate_oauth2_token

And i copy and past the URL your script gives me i get this error in google:

image

Where can I find the right guide on how to test this, so that we do not need to enable 2FA when doing a migration and creating App Passwords.

We do Many M365 Migrations that works great but Google is a pain (at the moment :-D )

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

The script to run is ./generate_gmail_token not ./oauth2_google.py

from imapsync.

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024

than i get this error on Google:

image

so i only ran: ./generate_gmail_token [email protected]

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

You may use an old release.

Update with:
https://imapsync.lamiral.info/oauth2/oauth2_gmail/

from imapsync.

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024

@gilleslamiral Still having the same issue just tried again:

image

image

The Advanced button that is stated in your Documentation is not available as you can see.

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

Do you use generate_gmail_token release 1.12?

gilles@petite:~/public_html/imapsync/oauth2/oauth2_gmail 11$ more generate_gmail_token
#!/bin/sh

# $Id: generate_gmail_token,v 1.12 2023/05/31 09:31:42 gilles Exp gilles $

https://imapsync.lamiral.info/oauth2/oauth2_gmail/generate_gmail_token

from imapsync.

kayvanaarssen avatar kayvanaarssen commented on June 18, 2024

Yes I do, downloaded from the link you provided:

image

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 18, 2024

Ok
I don't have this reject when I use it, I just have warnings I can accept

from imapsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.