0
Sorry for this post if it is in the wrong post. I am not very good with Linux other than what i need to get by, very basic stuff. I've been recently learning some python and in my study have tried to install PyATS and Genie. Since doing so I have had to try and hack my way through it... not done anything fancy but just try one method after another.
I got PyATS installed eventually via pip3 install PyATS then used the same method to install genie, however when I try to run anything genie I get this message below. As not being a Linux admin it means nothing to me and I can't find anything online that guides me.... can anyone offer any help please? I get the error for anything where genie is the app. My suspicion is maybe having upgraded python and having a few issues when doing that, I wonder if python is maybe corrupt. Thanks in advance.
kaj0103@ubuntu:~$ genie --help
Traceback (most recent call last):
File "src/genie/utils/profile.py", line 45, in genie.utils.profile
profile.py and cProfile.py modules.
File "<frozen importlib._bootstrap_external>", line 388, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 809, in load_module
File "<frozen importlib._bootstrap_external>", line 668, in load_module
File "<frozen importlib._bootstrap>", line 268, in _load_module_shim
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 661, in exec_module
File "<frozen importlib._bootstrap_external>", line 766, in get_code
File "<frozen importlib._bootstrap_external>", line 818, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/usr/genie_yamls/__init__.py'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/kaj0103/.local/bin/genie", line 6, in <module>
from genie.cli.__main__ import main
File "src/genie/cli/__main__.py", line 9, in init genie.cli.__main__
File "src/genie/cli/commands/diff.py", line 20, in init genie.cli.commands.diff
File "/home/kaj0103/.local/lib/python3.5/site-packages/genie/harness/__init__.py", line 34, in <module>
from .main import main
File "src/genie/harness/main.py", line 18, in init genie.harness.main
File "src/genie/harness/discovery.py", line 23, in init genie.harness.discovery
File "/home/kaj0103/.local/lib/python3.5/site-packages/genie/harness/commons.py", line 4, in <module>
from . import _commons_internal
File "src/genie/harness/_commons_internal.py", line 36, in init genie.harness._commons_internal
File "src/genie/utils/profile.py", line 47, in init genie.utils.profile
"""
ImportError: Cannot import genie_yamls module.
I have since tried using pip3 install genie, this fails and generates a system error which I am asked to report to I'm guessing, ubuntu devs, so it seems the way I am installing it seems loosely correct..... Having uninstalled and re-installed with a coupleof reboots in between the behavior remains the same.
Can you add the following information: the output of
python3 -V
,pip3 -V
,pip3 show genie
? Also, I assume the command you used to install the package waspip3 install --user genie
? – hoefling – 2019-04-29T21:12:11.103