int128 / gpup

A command to upload photos and movies to Google Photos Library using the official Google Photos Library API
Apache License 2.0
220 stars 21 forks source link

Error when setting up the cli #49

Open pacoorozco opened 4 years ago

pacoorozco commented 4 years ago

When you try to do the first step to configure gpup and error is raised:

$ ./gpup ~/Downloads/Test                            
2020/07/06 15:34:44 Skip reading ~/.gpupconfig: Could not open ~/.gpupconfig: open /home/xxx/.gpupconfig: no such file or directory
2020/07/06 15:34:44 Setup your API access by the following steps:

1. Open https://console.cloud.google.com/apis/library/photoslibrary.googleapis.com/
1. Enable Photos Library API.
1. Open https://console.cloud.google.com/apis/credentials
1. Create an OAuth client ID where the application type is other.

Enter your OAuth client ID (e.g. xxx.apps.googleusercontent.com): xxx.apps.googleusercontent.com
Enter your OAuth client secret: xxx
2020/07/06 15:34:56 Saved credentials to ~/.gpupconfig
2020/07/06 15:34:56 The following 1 items will be uploaded:
#1: /home/xxx/Downloads/Test/Album_20200702/AeoniumLeaf_EN-AU7200082197_1920x1080.jpg
2020/07/06 15:34:57 Open http://localhost:37663 for authorization
Opening in existing browser session.
[0706/153458.209357:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

There are two things that I'be seen different from some time ago (when It was working properly):

1) Google Photos Library API has not "Other" type of credentials, now it seems it's called "Desktop app" 2) This strange error on Linux "NaCl helper process running without a sandbox!"

Can you test it on your environment?

pacoorozco commented 4 years ago

Forget number 2, it's totally normal on Linux.