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

Add missing packaging dependency #148

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Add missing packaging dependency #148

merged 1 commit into from
Nov 11, 2023

Conversation

chadell
Copy link
Contributor

@chadell chadell commented Nov 11, 2023

I was using pynautobot and I noticed this packaging missing:

>>> nr = InitNornir(inventory={"plugin": "NautobotInventory","options": {"nautobot_url": "https://demo.nautobot.com/","nautobot_token": "a" * 40,},},)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/nornir/init_nornir.py", line 72, in InitNornir
    inventory=load_inventory(config),
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/nornir/init_nornir.py", line 18, in load_inventory
    InventoryPluginRegister.auto_register()
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/nornir/core/plugins/register.py", line 26, in auto_register
    self.register(entry_point.name, entry_point.load())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/nornir_nautobot/plugins/inventory/nautobot.py", line 20, in <module>
    import pynautobot
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/pynautobot/__init__.py", line 7, in <module>
    from pynautobot.core.api import Api as api
  File "/Users/chadell/github.com/nornir-playground/example/.venv/lib/python3.10/site-packages/pynautobot/core/api.py", line 18, in <module>
    from packaging import version
ModuleNotFoundError: No module named 'packaging'

@jvanderaa jvanderaa merged commit bca3648 into develop Nov 11, 2023
8 checks passed
@jvanderaa jvanderaa deleted the packaging-missing branch November 11, 2023 13:21
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

Successfully merging this pull request may close these issues.

2 participants