Giter Club home page Giter Club logo

Comments (5)

jmathai avatar jmathai commented on June 11, 2024

Can you share more information about your directory structure and where your config.ini file is located as well as the contents of config.ini (removing any sensitive information)?

from elodie.

LorisSchmit avatar LorisSchmit commented on June 11, 2024

I figured it out, I didn't install elodie in my home directory and I didn't define the environment variable ELODIE_APPLICATION_DIRECTORY. The config.ini is detected now, however I still have a problem with the Google Photos plugin. When I run /.elodie.py batch --debug the output is Called batch() for GooglePhotos but my browser does not open and there is also no API call in the Google cloud console. While creating the OAuth client ID in the Google Cloud Console, there wasn't an other for the application type so I chose Desktop app, not sure if this is an issue?

This is the content of my config.ini:

[Directory]
location=%city, %state
month=%m
year=%Y
full_path=%year/%month

[Plugins]
plugins=GooglePhotos
 
[PluginGooglePhotos]
secrets_file=/full/path/to/my/home/src/elodie/client_secret.json
auth_file=/full/path/to/my/home/src/elodie/credentials/auth_file.json

from elodie.

LorisSchmit avatar LorisSchmit commented on June 11, 2024

Now the debug output when running ./elodie.py batch --debugis:

{"GooglePhotos": "Could not initialize session"}
{"GooglePhotos": "/path/to/image failed to upload."}
Called batch() for GooglePhotos

from elodie.

jmathai avatar jmathai commented on June 11, 2024

You may need to add some log messages in https://github.com/jmathai/elodie/blob/master/elodie/plugins/googlephotos/googlephotos.py.

The message Could not initialize session is from the google photos library which would seem to indicate that it's somewhere in set_session().

from elodie.

LorisSchmit avatar LorisSchmit commented on June 11, 2024

I figured it out! I hadn't properly defined the location of the secret file... Everything works perfectly now. Thanks for the hints and kudos for the good work!

from elodie.

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.