Traceback (most recent call last):


 "token.py", line 1, in <module>

from jose import jwt


 "/usr/local/lib/python3.7/dist-packages/jose/jwt.py", line 13, in <module>

from jose import jws


 "/usr/local/lib/python3.7/dist-packages/jose/jws.py", line 11, in <module>

from jose import jwk


 "/usr/local/lib/python3.7/dist-packages/jose/jwk.py", line 8, in <module>

from jose.utils import base64url_decode, base64url_encode


 "/usr/local/lib/python3.7/dist-packages/jose/utils.py", line 20, in <module>

from cryptography.utils import int_to_bytes as _long_to_bytes


 "/usr/lib/python3/dist-packages/cryptography/utils.py", line 9, in <module>

import inspect


 "/usr/lib/python3.7/inspect.py", line 40, in <module>

import linecache


 "/usr/lib/python3.7/linecache.py", line 11, in <module>

import tokenize


 "/usr/lib/python3.7/tokenize.py", line 41, in <module>

__all__ = token.__all__ + ["tokenize", "detect_encoding",
AttributeError: module 'token' has no attribute '__all__'

Traceback (most recent call last):


 "/usr/local/bin/napalm", line 11, in <module>

load_entry_point('napalm==2.3.1', 'console_scripts', 'napalm')()


 "/usr/local/lib/python3.6/dist-packages/napalm/base/clitools/cl_napalm.py", line 284, in main

check_installed_packages()


 "/usr/local/lib/python3.6/dist-packages/napalm/base/clitools/cl_napalm.py", line 146, in check_installed_packages

installed_packages = pip.get_installed_distributions()
AttributeError: module 'pip' has no attribute 'get_installed_distributions'
