prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Error with go get github.com/prasmussen/gdrive #638

Open StephanieG60 opened 2 years ago

StephanieG60 commented 2 years ago

We are building Raspi Pi devices for Speed Tests and this code has worked before and now has stopped, Below is the error

go get github.com/prasmussen/gdrive

golang.org/x/oauth2/google/internal/externalaccount

go/src/golang.org/x/oauth2/google/internal/externalaccount/executablecredsource.go:256:15: undefined: io.ReadAll

We have tried multiple OS and WiFi networks.

Any tips would be helpful

avenbreaks commented 2 years ago

you can try :

  1. wget https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz
  2. tar -xvf gdrive_2.1.1_linux_386.tar.gz
  3. ./gdrive about
  4. enter your verification code
StephanieG60 commented 2 years ago

Im getting this when I follow ./gdrive about

And I get this error, ./gdrive about bash: ./gdrive: cannot execute binary file: Exec format error

Have I made a mistake? I am following the code on this webpage - Compiling and Running gDrive - Pi My Life Uphttps://pimylifeup.com/compiling-and-running-gdrive/

Kind Regards,

Stephanie Green

IT Specialist

[Y4U2]

Mobile: 0437759066 Work : 02 6171 9806 Email: @.**@.>

From: Joey WIbowo @.> Sent: Monday, 4 July 2022 11:04 AM To: prasmussen/gdrive @.> Cc: Stephanie Green @.>; Author @.> Subject: Re: [prasmussen/gdrive] Error with go get github.com/prasmussen/gdrive (Issue #638)

you can try :

  1. wget https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz
  2. tar -xvf gdrive_2.1.1_linux_386.tar.gz
  3. ./gdrive about
  4. enter your verification code

— Reply to this email directly, view it on GitHubhttps://github.com/prasmussen/gdrive/issues/638#issuecomment-1173222262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ3YG7I7DQOC637ZYS4ZCY3VSIZ7BANCNFSM52KZSCZA. You are receiving this because you authored the thread.Message ID: @.**@.>>

cg2v commented 2 years ago

Rasberry Pi is ARM, not i386. You can possibly try https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_arm64.tar.gz instead.

If you can upgrade your go to 1.16 (not 1.17 or newer), then go get may work. It does work for me on linux using go version go1.16.2 linux/amd64, but not go version go1.13.8 linux/amd64

Mr-Tech-13 commented 2 years ago

you can try :

  1. wget https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz
  2. tar -xvf gdrive_2.1.1_linux_386.tar.gz
  3. ./gdrive about
  4. enter your verification code

Thank you so much, this worked on ubuntu 20.04 in a google VM (For anyone trying to reproduce)

StephanieG60 commented 2 years ago

Hi I managed to get a work around to resolve the gdrive issue but im getting another error that I thought id see if you’ve seen it before.

I think in trying to get these devices to work ive messed up somewhere

Its when I also do go get github.com/prasmussen/gdrive but get this new error

@.***:~/gdrive $ go get github.com/prasmussen/gdrive

runtime/cgo

gcc: error: unrecognized command-line option '-marm'

Would you know anything about this?

From: Chaskiel Grundman @.> Sent: Thursday, 7 July 2022 3:59 AM To: prasmussen/gdrive @.> Cc: Stephanie Green @.>; Author @.> Subject: Re: [prasmussen/gdrive] Error with go get github.com/prasmussen/gdrive (Issue #638)

Rasberry Pi is ARM, not i386. You can possibly try https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_arm64.tar.gz instead.

If you can upgrade your go to 1.16 (not 1.17 or newer), then go get may work. It does work for me on linux using go version go1.16.2 linux/amd64, but not go version go1.13.8 linux/amd64

— Reply to this email directly, view it on GitHubhttps://github.com/prasmussen/gdrive/issues/638#issuecomment-1176517487, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ3YG7IMBQBTKHHEXJLD6IDVSXCNVANCNFSM52KZSCZA. You are receiving this because you authored the thread.Message ID: @.**@.>>

hgmaleldiin commented 2 years ago

when I tried !./grive about .. I couldn't find any box to enter the verification code in ..why this may happen please? image

@avenbreaks

cg2v commented 2 years ago

@StephanieG60 That looks like a cross compiler issue. https://github.com/golang/go/issues/16801. You need to set the CC variable to the gcc (or clang) cross compiler for your pi build environment.