pimutils / pimutils/khal

Autoconfiguration does not detect vdirsyncer

Open
#953 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: documentation
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

I installed vdirsyncer in ~/.local/programs/vdirsyncer, its config-file is at ~/.config/vdirsyncer/config (with environment-variable set) and status_path = "~/.local/share/vdirsyncer/" set in the config-file (so the homedirectory doesn't get so cluttered)
I followed the clean-hard-way installation-method https://vdirsyncer.pimutils.org/en/stable/installation.html#the-clean-hard-way.

$ echo $VDIRSYNCER_CONFIG
/home/harald/.config/vdirsyncer/config
$ ls -al /home/harald/.config/vdirsyncer/config
-rw------- 1 harald harald 2322 Sep  3 14:40 /home/harald/.config/vdirsyncer/config


khal is installed at ~/.local/programs/khal using

$ virtualenv -p python3.7 ~/.local/programs/khal
$ ~/.local/programs/khal/bin/pip3.7 install khal

It's config is at ~/.config/khal

When running khal configure vdirsyncer cannot be found:

$ khal configure
...
If you use vdirsyncer to sync with CalDAV servers, we can try to load its config file and add your calendars to khal's config.
Should we try to load vdirsyncer's config? [Y/n]: y
Sorry, cannot import vdirsyncer. Please make sure you have it installed.
...
$ echo $VDIRSYNCER_CONFIG
/home/harald/.config/vdirsyncer/config

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing khal configure with vdirsyncer installed under ~/.local/programs/vdirsyncer and VDIRSYNCER_CONFIG pointing to ~/.config/vdirsyncer/config. Trace the vdirsyncer import and configuration discovery used by the command; done means khal detects the installation and offers calendars from that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.