Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'URL' object has no attribute 'host_port_subcomponent' #1166

Open
Tonus1 opened this issue Feb 19, 2025 · 0 comments
Open

'URL' object has no attribute 'host_port_subcomponent' #1166

Tonus1 opened this issue Feb 19, 2025 · 0 comments

Comments

@Tonus1
Copy link
Contributor

Tonus1 commented Feb 19, 2025

Hi there,

I can't figure out what went wrong in past weeks.

Syncing provider_calendar/personal
debug: ====================
debug: PROPFIND https://webmail.provider.net/SOGo/dav/[email protected]/Calendar/personal/
debug: {'User-Agent': 'vdirsyncer/0.19.3', 'Content-Type': 'application/xml; charset=UTF-8', 'Depth': '1'}
debug: b'<?xml version="1.0" encoding="utf-8" ?>\n            <propfind xmlns="DAV:">\n                <prop>\n                    <resourcetype/>\n                    <getcontenttype/>\n                    <getetag/>\n                </prop>\n            </propfind>\n            '
debug: Sending request...
error: Unknown error occurred for provider_calendar/personal: 'URL' object has no attribute 'host_port_subcomponent'
error: Use `-vdebug` to see the full traceback.
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/cli/tasks.py", line 74, in sync_collection
debug:     await sync.sync(
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/sync/__init__.py", line 150, in sync
debug:     b_nonempty = await b_info.prepare_new_status()
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/sync/__init__.py", line 55, in prepare_new_status
debug:     async for href, etag in self.storage.list():  # type: ignore[attr-defined]
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/storage/dav.py", line 853, in list
debug:     async for href, etag in super().list():
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/storage/dav.py", line 672, in list
debug:     response = await self.session.request(
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/storage/dav.py", line 413, in request
debug:     return await http.request(method, url, session=session, **more)
debug:   File "/usr/lib64/python3.9/site-packages/vdirsyncer/http.py", line 184, in request
debug:     response = await session.request(method, url, headers=headers, **kwargs)
debug:   File "/usr/lib64/python3.9/site-packages/aiohttp/client.py", line 675, in _request
debug:     req = self._request_class(
debug:   File "/usr/lib64/python3.9/site-packages/aiohttp/client_reqrep.py", line 351, in __init__
debug:     self.update_headers(headers)
debug:   File "/usr/lib64/python3.9/site-packages/aiohttp/client_reqrep.py", line 460, in update_headers
debug:     host = self.url.host_port_subcomponent

I'm using Slackware64-15.0 and to get vdirsyncer use the build script at Slackbuilds.org (that I maintain myself).

The error is for the last available version at Pypi, 0.19.3

Config file is as follow

[general]
status_path = "~/.config/vdirsyncer/status/"

# CALDAV
[pair provider_calendar]
a = "provider_calendar_local"
b = "provider_calendar_remote"
collections = ["from a", "from b"]
#conflict_resolution = "a wins"
conflict_resolution = ["command", "icdiff"]
metadata = ["displayname", "color"]

[storage provider_calendar_local]
type = "filesystem"
path = "~/Calendars/PROVID.ER/"
fileext = ".ics"

[storage provider_calendar_remote]
type = "caldav"
url = "https://webmail.provider.net/SOGo/dav/[email protected]/Calendar/"
username = "[email protected]"
password.fetch = ["command", "pass", "show", "memy.self"]

Last obviously python related updates are

févr. 10 python3-glad-2.0.8-x86_64-1_SBo
févr. 10 python3-meson-opt-1.6.1-noarch-1_SBo
févr. 10 python-zipp-3.21.0-x86_64-1_SBo
févr. 10 python3-pyproject-metadata-0.9.0-x86_64-1_SBo
févr. 10 python3-mesonpy-0.17.1-x86_64-1_SBo
févr. 10 python3-exceptiongroup-1.2.2-x86_64-1_SBo
févr. 10 python3-ruamel.yaml.clib-0.2.7-x86_64-1_SBo
févr. 10 python-importlib_metadata-8.6.1-x86_64-1_SBo
févr. 10 python3-babel-2.17.0-x86_64-1_SBo
févr. 10 python3-numpy-1.26.3-x86_64-3_SBo
févr. 10 python3-psutil-6.1.1-x86_64-1_SBo
févr. 10 python3-pulsectl-24.12.0-x86_64-1_SBo
févr. 10 python3-pytest-8.3.4-x86_64-1_SBo
févr. 10 python3-ruamel.yaml-0.18.10-x86_64-1_SBo
févr. 10 python3-types-python-dateutil-2.9.0.20241206-x86_64-1_SBo
févr. 12 python3-pytz-2024.2-x86_64-1_SBo
févr. 12 python2-pytz-2021.3-x86_64-1_SBo
févr. 12 python3-configobj-5.0.9-x86_64-1_SBo
févr. 12 python3-dateutil-2.9.0-x86_64-1_SBo
févr. 12 python3-icalendar-4.0.9-x86_64-1_SBo
févr. 12 python3-atomicwrites-1.4.1-x86_64-1_SBo
févr. 12 python3-aiostream-0.5.2-x86_64-1_SBo
févr. 12 python3-flit_core-3.10.1-x86_64-1_SBo
févr. 12 python3-installer-0.7.0-x86_64-1_SBo
févr. 12 python3-wheel-0.45.1-x86_64-1_SBo
févr. 12 python3-pyproject-hooks-1.2.0-x86_64-1_SBo
févr. 12 python3-build-1.2.2.post1-x86_64-1_SBo
févr. 12 python3-packaging-opt-24.2-noarch-1_SBo
févr. 12 python3-setuptools-opt-75.8.0-x86_64-1_SBo
févr. 12 python3-calver-2022.6.26-x86_64-1_SBo
févr. 12 python3-trove-classifiers-2025.1.15.22-x86_64-1_SBo
févr. 12 python3-pluggy-1.5.0-x86_64-1_SBo
févr. 12 python3-pathspec-0.12.1-x86_64-1_SBo
févr. 12 python3-editables-0.5-x86_64-1_SBo
févr. 12 python3-hatchling-1.27.0-x86_64-1_SBo
févr. 12 python3-expandvars-0.12.0-x86_64-1_SBo
févr. 12 python3-propcache-0.2.1-x86_64-1_SBo
févr. 12 python3-typing-extensions-4.12.2-x86_64-1_SBo
févr. 12 python3-multidict-6.1.0-x86_64-1_SBo
févr. 12 python3-yarl-1.15.2-x86_64-1_SBo
févr. 12 python3-hatch_vcs-0.4.0-x86_64-1_SBo
févr. 12 python3-hatch_fancy_pypi_readme-24.1.0-x86_64-1_SBo
févr. 12 python3-attrs-23.2.0-x86_64-1_SBo
févr. 12 python3-async-timeout-5.0.1-x86_64-1_SBo
févr. 12 python3-frozenlist-1.5.0-x86_64-1_SBo
févr. 12 python3-aiosignal-1.3.2-x86_64-1_SBo
févr. 12 python3-poetry-core-2.0.1-x86_64-1_SBo
févr. 12 python3-aiohappyeyeballs-2.4.4-x86_64-1_SBo
févr. 12 python3-aiohttp-3.11.11-x86_64-1_SBo
févr. 12 python-urwid-2.1.2-x86_64-2_SBo
févr. 19 python3-pyjwt-2.10.1-x86_64-1_SBo

I can provide the entire list of recent updates if needed.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant