GithubHelp home page GithubHelp logo

Comments (6)

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

Thanks heaps! Will close it. Looks like that message trickles up in a caught exception somewhere. But the erro is gone with the recent patches.

Hope the tools help you. They're far from complete, just past the first major milestone of having reverse engineered enough to implement a few basic commands. That took me so much time and effort I took a break afterwards. Better said turned to other urgent projects.

from degoo.

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

Check that you're using Python 3.9 but it might well be that this relates to #7 and is fixed.

Otherwise I hope if it bombs with int() argument must be a string, a bytes-like object or a number, not 'NoneType'. that it also dumps a stack trace and line number, and if you can share that we can pin down where it's failing.

It's a reverse engineering job and hence based on what I can see watxhing the Degoo web interface do it's thing and most definitely a work in progress. Any field experience with different configs is useful, thanks.

There is a real chance it's been fixed with: 92ae257

But maybe not.

from degoo.

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

Typo fixed in: 892c9bf

Thanks.

from degoo.

cweijden avatar cweijden commented on July 22, 2024

I was using Python 3.8.5 at first. I have tested your Jan 15 commit again using Python 3.9 (using the recommended modules), which however gave the same generic message that opened this issue. Unfortunately without traceback/line number, so no quick pointer to the cause.

Subsequently I pulled your latest commit and rebuild the commands (fixing the typo on degoo_login was a convenient check). Now the initially complaining commands (tested 'cd', 'ls', 'll', 'mkdir', 'rm', 'path') give output as expected, both with Python 3.8.5 and 3.9.

Seems that the #7 fix is fixing this too. Thanks!

from degoo.

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

Strange that it offers no stack trace. I'm guessing form above it's fixed now and we can close this? If perchance I misunderstood that I'd love to see coy/paste form a terminal interaction. Akin to this:

$ ./degoo_pwd
Working Directory is /Web/Backup
$ ./degoo_ls
Alices Restaurant (M).mp4
Image 1.png
$ ./degoo_ll
14239196069	Video      	Alices Restaurant (M).mp4	c:2016-08-09 04:05:26	m:2021-01-15 11:23:32	u:2021-01-15 11:23:32
14238958266	Image      	Image 1.png              	c:2019-03-18 08:05:08	m:2021-01-15 10:28:53	u:2021-01-15 10:28:53

which is just a sample I took form my PC now. Such screen copy/pastes (from a text terminal) say so much so unambigoulsy when compared to a paraphrasal generally.

Of course if I understood right the fix to issue 7 fixed this one.

There have basically been two issues reported, one to do with the configs as none of that was really set up well yet, and the other to do with a the premise that all time stamps would be available (which I relaxed). it's still not superbly robust mind you, and I'm waiting to find time to tidy it up a bit and implement these tools as a nightly backup strategy myself ... ;-).

from degoo.

cweijden avatar cweijden commented on July 22, 2024

Apologies. I could have been more clear on this indeed. You can close this issue. I haven't taken time to look into the actual cause, but to give some insight into my terminal interaction:

Starting with your Jan 15 commit on a Python 3.8.5 setup the result was as follows:

$ python3 degoo_login
Successfuly logged in.
$ python3 degoo_ll
degoo_ll: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
          for help use --help
$

This morning (~10:00 CET) I installed Python 3.9 and with it the packages recommended in your requirements.txt of today, with the same result using Python 3.9:

$ python3.9 degoo_login
Successfuly logged in.
$ python3.9 degoo_ll
degoo_ll: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
          for help use --help
$

Then I pulled your latest commit, removed/rebuild the commands and... issue gone on both Python 3.8.5 & 3.9:

$ git pull
remote: Enumerating objects: 31, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 21 (delta 11), reused 12 (delta 4), pack-reused 0
Unpacking objects: 100% (21/21), 3.16 KiB | 59.00 KiB/s, done.
From https://github.com/bernd-wechner/Degoo
   3246dc8..892c9bf  master     -> origin/master
Updating 3246dc8..892c9bf
Fast-forward
 build.py          |  2 +-
 commands.py       |  2 +-
 degoo/__init__.py | 41 ++++++++++++++++++++++++++++++-----------
 requirements.txt  | 13 +++++++++++++
 4 files changed, 45 insertions(+), 13 deletions(-)
 create mode 100644 requirements.txt
$ rm degoo_*
$ ls
LICENSE.md  commands.py                   default_properties_superset.txt
README.md   default_properties.txt        degoo
build.py    default_properties_paths.txt  requirements.txt
$ python3.9 build.py
$ python3.9 degoo_login
Successfully logged in.
$ python3.9 degoo_ls
Desktop
Samsung
Web
$ python3 degoo_ls
Desktop
Samsung
Web
$

It may have been the fix for issue 7, or it may have been (a combination of) some other change(s), but it working as expected now. Does this help?

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.