Traceback (most recent call last):

 "test.py", line 5, in <module>
dev.open()

 "/usr/local/lib/python2.7/site-packages/jnpr/junos/device.py", line 239, in open
self.facts_refresh()

 "/usr/local/lib/python2.7/site-packages/jnpr/junos/device.py", line 403, in facts_refresh
gather(self, self._facts)

 "/usr/local/lib/python2.7/site-packages/jnpr/junos/facts/swver.py", line 118, in software_version
facts['version_info'] = version_info(facts['version'])

 "/usr/local/lib/python2.7/site-packages/jnpr/junos/facts/swver.py", line 7, in __init__
self.type = m1.group(2)AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):


 "/home/flip111/.local/bin/jupyter-notebook", line 8, in <module>

sys.exit(main())


 "/home/flip111/.local/lib/python3.8/site-packages/jupyter_core/application.py", line 268, in launch_instance

return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)


 "/home/flip111/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance

app.initialize(argv)


 "</home/flip111/.local/lib/python3.8/site-packages/decorator.py:decorator-gen-7>", line 2, in initialize


 "/home/flip111/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error

return method(app, *args, **kwargs)


 "/home/flip111/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 1720, in initialize

self.init_webapp()


 "/home/flip111/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 1443, in init_webapp

self.web_app = NotebookWebApplication(


 "/home/flip111/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 153, in __init__

settings = self.init_settings(


 "/home/flip111/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 269, in init_settings

nbextensions_path=jupyter_app.nbextensions_path,


 "/home/flip111/.local/lib/python3.8/site-packages/notebook/notebookapp.py", line 1104, in nbextensions_path

from IPython.paths import get_ipython_dir


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/__init__.py", line 55, in <module>

from .core.application import Application


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/core/application.py", line 25, in <module>

from IPython.core import release, crashhandler


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/core/crashhandler.py", line 27, in <module>

from IPython.core import ultratb


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/core/ultratb.py", line 119, in <module>

from IPython.utils import path as util_path


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/utils/path.py", line 17, in <module>

from IPython.utils.process import system


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/utils/process.py", line 19, in <module>

from ._process_posix import system, getoutput, arg_split, check_pid


 "/home/flip111/.local/lib/python3.8/site-packages/IPython/utils/_process_posix.py", line 23, in <module>

import pexpect


 "/usr/lib/python3/dist-packages/pexpect/__init__.py", line 75, in <module>

from .pty_spawn import spawn, spawnu


 "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 15, in <module>

from .spawnbase import SpawnBase


 "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 218

def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):

^
SyntaxError: invalid syntax
