networktocode/diffsync

ModuleNotFoundError: No module named 'packaging'

Closed this issue · 0 comments

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