pimutils / pimutils/vdirsyncer

No module named 'aiostream' in python39+

Open
#1,022 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.9k
Forks
185
Avg merge
11h 49m
Merged PRs (30d)
1

Description

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?

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 in vdirsyncer/cli/discover.py, where the traceback shows aiostream is imported, and review the callers in vdirsyncer/cli/tasks.py and vdirsyncer/cli/init.py. Verify the supported Python versions and dependency packaging before choosing a fix; done means syncing no longer fails with a missing aiostream module on the reported environment.

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
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.