Skip to content

No module named 'aiostream' in python39+ #1022

@lduchosal

Description

@lduchosal

Before you submit bug reports: https://vdirsyncer.pimutils.org/en/stable/contributing.html

  • vdirsyncer, version 0.19.0
  • freebsd port py39-vdirsyncer
  • python Python 3.9.16
  • FreeBSD 12.4

error: Unknown error occurred: No module named 'aiostream'
error: Use -vdebug to see the full traceback.
debug: File "/usr/local/lib/python3.9/site-packages/vdirsyncer/cli/init.py", line 32, in inner
debug: f(*a, **kw)
debug: File "/usr/local/lib/python3.9/site-packages/vdirsyncer/cli/init.py", line 126, in sync
debug: from .tasks import prepare_pair
debug: File "/usr/local/lib/python3.9/site-packages/vdirsyncer/cli/tasks.py", line 8, in
debug: from .discover import collections_for_pair
debug: File "/usr/local/lib/python3.9/site-packages/vdirsyncer/cli/discover.py", line 8, in
debug: import aiostream

Replace :

import aiostream

With :
if sys.version_info < (3,9):
import aiostream

Fixes the bug, Would you accept PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions