sk2 / autonetkit

AutoNetkit: an automated network configuration engine
BSD 3-Clause "New" or "Revised" License
129 stars 49 forks source link

autonetkit command broken in latest release #271

Open jdhall75 opened 2 years ago

jdhall75 commented 2 years ago

Hello,

I just installed version 0.12.3 from pypi and got the following error running the autonetkit command.

(.venv) jdhall@thinker ~/projects/autonetkit/autonetkit $ autonetkit
Traceback (most recent call last):
  File "/home/jdhall/projects/Kathara/.venv/bin/autonetkit", line 11, in <module>
    load_entry_point('autonetkit', 'console_scripts', 'autonetkit')()
  File "/home/jdhall/projects/Kathara/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/jdhall/projects/Kathara/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/home/jdhall/projects/Kathara/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/home/jdhall/projects/Kathara/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'autonetkit.console'
(.venv) jdhall@thinker ~/projects/autonetkit/autonetkit $ 

I can't find autonetkit.console, but I have found autonetkit.entry which seems to contain the logic for loading the topology from the .graphml files.

I plan to submit a PR to fix this, but I would like to know if you plan to keep support legacy Python? I would like to contribute more to the project.