GithubHelp home page GithubHelp logo

Comments (5)

bernd-wechner avatar bernd-wechner commented on July 3, 2024 1

Fixed this with:

8f64b77

Should all be good now, creating the config dir when it's not there.

from degoo.

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Could be a symptom of #1, but yeah it's not super user friendly at present, definitely a WIP (Work In Progress). That said run builld.py first, and see what happens. The command tools as I use them are all the degoo__command files.

That is I don't run:

`./commands.py ls'

but

'./degoo_ls

if you look in commands.py:

command = os.path.basename(sys.argv[0])

you'll find a clue.

After build.py has built the local commands:

./degoo_login

will say what's needed. Currently a dirt cheap implementation, it will just create a login file for you and ask you to go edit it ....

For clues see:

elif command == P+"login":

def login():

It can use some gloss that's for sure ;-). Quick and dirty so far, as I've mostly spent time reading the network traffic to get the commands developed. And login is currently broken it seems, and needs diagnosis and fixing.

PRs always welcome, but I'll take a look at it too some time, maybe not till next year ....

from degoo.

coreysiegel avatar coreysiegel commented on July 3, 2024

Thanks! Led me on the right track. On running ./degoo_login I received error:
FileNotFound(2, 'No such file or directory')`

I then manually created the directory ~/.config/degoo and received the expected error:
No login credentials available. Please add account details to [cred_file]
Login failed.

Now the config file was created, so I could edit it back to the same spot as @jeffmikels in #1. I added the debug code and reproduced his issue:
{'Date': ...}
{"message":"Missing Authentication Token"}

from degoo.

coreysiegel avatar coreysiegel commented on July 3, 2024

Sorry, shouldn't have closed. Guess the issue is (1) add some usage notes and (2) handle a missing directory and create it if missing. Thanks for starting on a potentially very useful tool though!

from degoo.

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Yep that's bug. It should certainly create the degoo app folder if it's not there! As ever PR welcome, or I'll fix that some time .... mean time this is a reminder and I'll rename it for that.

This line:

file.write(json.dumps({"Username": "<your Degoo username here>", "Password": "<your Degoo password here>"}))

needs to be prefixed with a check that the folder exists, and if not, create it.

from degoo.

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.