Skip to content

ModuleNotFoundError: No module named 'packaging' #99

@aptly-io

Description

@aptly-io

Environment

diffsync 1.4.1
Python 3.9.10

Observed Behaviour

......
  File "/Users/x/pwsync/.venv/lib/python3.9/site-packages/pwsync/sync.py", line 10, in <module>
    from diffsync.logging import enable_console_logging
  File "/Users/x/pwsync/.venv/lib/python3.9/site-packages/diffsync/logging.py", line 22, in <module>
    from packaging import version
ModuleNotFoundError: No module named 'packaging'

Expected Behaviour

No need to make my script depend on packaging, it should be handled as a transitive dep from the diffsync module.

Steps to Reproduce

Seems diffsync module is not specifying a dependency on packaging module.
It seems triggered by this code:

from diffsync.logging import enable_console_logging

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted by the maintainers team for implementationtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions