gphotosuploader / gphotos-uploader-cli

Command line tool to mass upload media folders to your google photos account(s) (Mac OS / Linux)
https://gphotosuploader.github.io/gphotos-uploader-cli/
MIT License
678 stars 78 forks source link

Compilation for Windows fails #483

Open flotux2 opened 2 weeks ago

flotux2 commented 2 weeks ago

Hi,

I'd like to use gphotos-uploader-cli with Windows but already fail to compile it.

I tried the following command:

go install github.com/gphotosuploader/gphotos-uploader-cli@latest

Then I get the following error message:

go: downloading github.com/gphotosuploader/gphotos-uploader-cli v1.2.0 go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d go: downloading github.com/gphotosuploader/googlemirror v0.4.0 go: downloading github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b go: downloading github.com/sirupsen/logrus v1.4.2 go: downloading github.com/spf13/cobra v0.0.5 go: downloading github.com/spf13/afero v1.1.2 go: downloading github.com/gphotosuploader/google-photos-api-client-go/v2 v2.0.0-beta-1 go: downloading github.com/spf13/pflag v1.0.3 go: downloading github.com/client9/xson v0.0.0-20180321172152-0e50cdfc08c0 go: downloading github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213 go: downloading github.com/syndtr/goleveldb v1.0.0 go: downloading golang.org/x/text v0.3.2 go: downloading github.com/pierrec/xxHash v0.1.5 go: downloading github.com/99designs/keyring v1.1.5 go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 go: downloading github.com/mattn/go-colorable v0.1.2 go: downloading github.com/mattn/go-isatty v0.0.9 go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1 go: downloading google.golang.org/api v0.19.0 go: downloading github.com/inconshreveable/mousetrap v1.0.0 go: downloading cloud.google.com/go v0.38.0 go: downloading github.com/gadelkareem/cachita v0.2.1 go: downloading github.com/lestrrat-go/backoff v1.0.0 go: downloading golang.org/x/net v0.0.0-20190628185345-da137c7871d7 go: downloading github.com/danieljoos/wincred v1.0.2 go: downloading github.com/dvsekhvalnov/jose2go v0.0.0-20180829124132-7f401d37b68a go: downloading github.com/mitchellh/go-homedir v1.1.0 go: downloading github.com/mtibben/percent v0.2.1 go: downloading github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db go: downloading github.com/pkg/errors v0.8.1 go: downloading github.com/mediocregopher/radix/v3 v3.2.0 go: downloading github.com/vmihailenco/msgpack v4.0.1+incompatible go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a

github.com/gphotosuploader/gphotos-uploader-cli/internal/datastore/tokenstore

go\pkg\mod\github.com\gphotosuploader\gphotos-uploader-cli@v1.2.0\internal\datastore\tokenstore\keyring.go:117:36: cannot use syscall.Stdin (variable of type syscall.Handle) as int value in argument to terminal.ReadPassword

Has someone experience if compilation with Windows works?

Kind regards Florian

julianpensionjar commented 1 week ago

I don't have a solution I'm afraid, but also interested in this. This looks like the tool I've been seeking to move from OneDrive file-based storage to Google Photos, but given starting from MS, ideally want to run this all from my Windows laptop. Any interest from the developer in providing a compiled release for Windows?!

pacoorozco commented 5 days ago

Hi folks!

The CLI is not intended to be used in Windows. Windows (and Mac) users can enjoy the official Google Photos application.

In order to make it run in Windows several dependencies should be replaced by another that are Windows compatible 😢

Thanks for the interest