Skip to content

Enhancement of Error Message (Ipython) #13

Description

@kirankotari

IPython dependency was missing but it shows ipy variable issue.

[ ERROR ] :: [ ncs_pycli ] :: no module ipython found..!
[ INFO ] :: [ ncs_pycli ] :: you can install via pip "pip install ipython"
Traceback (most recent call last):
  File "/home/xxxxx/python/ncs_cli/venv/bin/ncs_pycli", line 8, in <module>
    sys.exit(run())
  File "/home/xxxxx/python/ncs_cli/venv/lib/python3.9/site-packages/ncs_pycli/ncs_pycli.py", line 150, in run
    obj.initialize(sys.argv)
  File "/home/xxxxx/python/ncs_cli/venv/lib/python3.9/site-packages/ncs_pycli/ncs_pycli.py", line 105, in initialize
    shell = self._get_shell()
  File "/home/xxxxx/python/ncs_cli/venv/lib/python3.9/site-packages/ncs_pycli/ncs_pycli.py", line 92, in _get_shell
    if ipy.get_ipython() is None:
NameError: name 'ipy' is not defined

Expected:
Looks like an issue with IPython, can you run ipython command, we are expecting as following

Python 3.9.13 (main, Oct 10 2022, 21:05:14)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions