Giter Site home page Giter Site logo

Comments (15)

bergercookie avatar bergercookie commented on September 26, 2024

@shymega please have a look at the latest state of the master branch. it should resolve both the PyYAML installation exception and, for tw_gtasks_sync it should add a few different flags to the executable one of which is the --all

 --all, --taskwarrior-all-tasks  Sync all taskwarrior tasks [potentially very
                                 slow]

Let me know if that doesn't work for you. It will make its way into an actual PyPI release in the next few weeks.

from syncall.

shymega avatar shymega commented on September 26, 2024

Hey @bergercookie - I just cloned, and I can't see any commits that add --all. Not sure if you pushed, or if I'm being stupid.

from syncall.

bergercookie avatar bergercookie commented on September 26, 2024

Sorry, typed this too fast and haven't merged to master yet. Have a look at branch 59-virtual-tags instead :)

from syncall.

shymega avatar shymega commented on September 26, 2024

After I install with pipx install --force ".[google,tw]", I get the following error:

syncall on  59-virtual-tags is 📦 v0.0.0 via 🐍 v3.11.7 on ☁️  (eu-west-2) took 10s
❯ tw_gtasks_sync --help
2024-01-20 22:03:22.769 | ERROR    | syncall.app_utils:inform_about_app_extras:235 -
You have to install the google,tw extras for tw_gtasks_sync to work.
With pip, you can do it with something like: "pip3 install syncall[google,tw]"
Exiting.

I'm on NixOS, so I have to use virtualenvs until I get around to packaging syncall. But this did work on master, so I suspect a regression.

from syncall.

bergercookie avatar bergercookie commented on September 26, 2024

Probably a dependency issue
What do the following lines say?

python3 -c 'from syncall import GTasksSide, TaskWarriorSide'
python3 -c 'from syncall.taskwarrior.taskwarrior_side import TaskWarriorSide'
python3 -c 'from syncall.google.gtasks_side import GTasksSide'

from syncall.

bergercookie avatar bergercookie commented on September 26, 2024

This should now be supported across all the apps in this repo that interact with Taskwarrior. Use the following flag to specify that you want all your taskwarrior tasks to be synchronized.

 --all, --taskwarrior-all-tasks  Sync all taskwarrior tasks (potentially very slow).

This feature should work on latest master - commit 0893f12 - and should make its way to a pypi release in the coming week(s)

@shymega let me know if this still doesn't work and I can help debug this.

from syncall.

shymega avatar shymega commented on September 26, 2024

python3 -c 'from syncall import GTasksSide, TaskWarriorSide'
python3 -c 'from syncall.taskwarrior.taskwarrior_side import TaskWarriorSide'
python3 -c 'from syncall.google.gtasks_side import GTasksSide'

Hey, sorry for the late reply.

I use pipx to install packages, but when I activate the venv and run your commands inside, on latest master, this is the output:

$ python3 -c 'from syncall import GTasksSide, TaskWarriorSide'
python3 -c 'from syncall.taskwarrior.taskwarrior_side import TaskWarriorSide'
python3 -c 'from syncall.google.gtasks_side import GTasksSide'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'GTasksSide' from 'syncall' (/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/__init__.py)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/taskwarrior/taskwarrior_side.py", line 7, in <module>
    from taskw_ng import TaskWarrior
  File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/taskw_ng/__init__.py", line 1, in <module>
    from taskw_ng.utils import clean_task, decode_task, encode_task, encode_task_experimental
  File "/home/dzrodriguez/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/taskw_ng/utils.py", line 9, in <module>
    import packaging.version
ModuleNotFoundError: No module named 'packaging'

I think you've got it right about the dep issue. Funny thing is, I've been able to install with pipx before - it's only since the latest changes that I'm getting this error:

$ tw_gtasks_sync
2024-01-22 17:17:04.061 | ERROR    | syncall.app_utils:inform_about_app_extras:228 -
You have to install the google,tw extras for tw_gtasks_sync to work.
With pip, you can do it with something like: "pip3 install syncall[google,tw]"
Exiting.

This is the command I use to install, inside the root Git repo of syncall:

pipx install ".[google,tw]"

from syncall.

shymega avatar shymega commented on September 26, 2024

This should now be supported across all the apps in this repo that interact with Taskwarrior. Use the following flag to specify that you want all your taskwarrior tasks to be synchronized.

 --all, --taskwarrior-all-tasks  Sync all taskwarrior tasks (potentially very slow).

This feature should work on latest master - commit 0893f12 - and should make its way to a pypi release in the coming week(s)

@shymega let me know if this still doesn't work and I can help debug this.

Thank you for implementing my feature request! Appreciated. Just replied with the output for troubleshooting you requested, too.

Cheers.

from syncall.

bergercookie avatar bergercookie commented on September 26, 2024

ModuleNotFoundError: No module named 'packaging'

Yeah, that's a missing dependency. You can pip install packaging and that should do it.
That dependency comes from the newly added taskw-ng package. I'll bump its version and it should go away

from syncall.

shymega avatar shymega commented on September 26, 2024

Thanks! I'm just having to create a new OAuth app, as the bundled client ID is blocked by Google now.

from syncall.

bergercookie avatar bergercookie commented on September 26, 2024

Thanks! I'm just having to create a new OAuth app, as the bundled client ID is blocked by Google now.

You're using the google tasks <> TW integration and it's blocked ?
That 's not expected. What does the error message say?

from syncall.

shymega avatar shymega commented on September 26, 2024

@bergercookie Yes, so when I click to authorize the application with Google Calendar, not Tasks (long story), I get the following error:

This app is blocked
This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.

I'm on mobile, so can't attach a screenshot from the browser at this time.

The client ID, I believe, is the one bundled with this repository.

The command I'm using is tw_gcal_sync -f "pending" -c "Dom's Tasks".

Thanks.

from syncall.

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.