-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Hi,
I would like to set tasks from a Django application in a Nextcloud instance.
After setting the environment variables in a shell script:
export CALDAV_URL=https://nextcloud.example.com/remote.php/dav
export CALDAV_USERNAME=user
export CALDAV_PASSWORD=passwd
and running the basic usage example, I get this error:
In [1]: %run basic_usage_examples.py
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
File ~/basic_usage_examples.py:356
351 ## This should be true. However,
352 # assert same_event.data == events[0].data
355 if __name__ == "__main__":
--> 356 run_examples()
File ~/basic_usage_examples.py:42, in run_examples()
32 """
33 Run through all the examples, one by one
34 """
35 ## We need a client object.
36 ## The client object stores http session information, username, password, etc.
37 ## As of 1.0, Initiating the client object will not cause any server communication,
(...)
40 ## and config file.
41 ## The client object can be used as a context manager, like this:
---> 42 with get_davclient() as client:
43 ## Typically the next step is to fetch a principal object.
44 ## This will cause communication with the server.
45 print("Connecting to the caldav server")
46 my_principal = client.principal()
File ~/venv/lib/python3.10/site-packages/caldav/davclient.py:1285, in get_davclient(check_config_file, config_file, config_section, testconfig, environment, name, **config_data)
1283 conf[conf_key[7:].lower()] = os.environ[conf_key]
1284 if conf:
-> 1285 return DAVClient(**conf)
1286 if not config_file:
1287 config_file = os.environ.get("CALDAV_CONFIG_FILE")
TypeError: DAVClient.__init__() got an unexpected keyword argument 'tasks_api_url'
What did I do wrong?
KR, Christof
Metadata
Metadata
Assignees
Labels
No labels