{"action":"created","issue":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/871","repository_url":"https://api.github.com/repos/ktbyers/netmiko","labels_url":"https://api.github.com/repos/ktbyers/netmiko/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/871/comments","events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/871/events","html_url":"https://github.com/ktbyers/netmiko/issues/871","id":341039830,"node_id":"MDU6SXNzdWUzNDEwMzk4MzA=","number":871,"title":"Issue installing Netmiko in GNS3 on a Network Automation docker container","user":{"login":"bdbrown69","id":37808433,"node_id":"MDQ6VXNlcjM3ODA4NDMz","avatar_url":"https://avatars3.githubusercontent.com/u/37808433?v=4","gravatar_id":"","url":"https://api.github.com/users/bdbrown69","html_url":"https://github.com/bdbrown69","followers_url":"https://api.github.com/users/bdbrown69/followers","following_url":"https://api.github.com/users/bdbrown69/following{/other_user}","gists_url":"https://api.github.com/users/bdbrown69/gists{/gist_id}","starred_url":"https://api.github.com/users/bdbrown69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdbrown69/subscriptions","organizations_url":"https://api.github.com/users/bdbrown69/orgs","repos_url":"https://api.github.com/users/bdbrown69/repos","events_url":"https://api.github.com/users/bdbrown69/events{/privacy}","received_events_url":"https://api.github.com/users/bdbrown69/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-07-13T14:26:41Z","updated_at":"2018-07-17T16:56:13Z","closed_at":null,"author_association":"NONE","body":"I am having an issue trying to resolve installing netmiko on a Network Automation docker in GNS3. Here is the output I receive when trying to install netmiko:\r\n\r\n\r\nroot@NetworkAutomation-1:~# python3 -m pip install netmiko\r\nThe directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.\r\nThe directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.\r\nCollecting netmiko\r\n  Downloading https://files.pythonhosted.org/packages/96/f8/4ecb91398a14bc1942322e87203859b04421cdb2b8b5c7d9b3fc9a168e21/netmiko-2.1.1.tar.gz (71kB)\r\n    100% |################################| 71kB 1.1MB/s\r\nCollecting paramiko>=2.0.0 (from netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/3e/db/cb7b6656e0e7387637ce850689084dc0b94b44df31cc52e5fc5c2c4fd2c1/paramiko-2.4.1-py2.py3-none-any.whl (194kB)\r\n    100% |################################| 194kB 1.5MB/s\r\nCollecting scp>=0.10.0 (from netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/ef/8c/399c5ddffc8c1bd2593ee6c8937ed31f005dcfa0c591da149f7b4b993f14/scp-0.11.0-py2.py3-none-any.whl\r\nCollecting pyyaml (from netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)\r\n    100% |################################| 276kB 2.1MB/s\r\nCollecting pyserial (from netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)\r\n    100% |################################| 194kB 2.4MB/s\r\nCollecting textfsm (from netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/a1/0d/a1b490503545b3b4600b965eae5d44cc2b6ce27cfb44f4debc563dbb56d3/textfsm-0.4.1.tar.gz\r\nRequirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/local/lib/python3.5/dist-packages (from paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): bcrypt>=3.1.3 in /usr/local/lib/python3.5/dist-packages (from paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): pynacl>=1.0.1 in /usr/local/lib/python3.5/dist-packages (from paramiko>=2.0.0->netmiko)\r\nCollecting cryptography>=1.5 (from paramiko>=2.0.0->netmiko)\r\n  Downloading https://files.pythonhosted.org/packages/ec/b2/faa78c1ab928d2b2c634c8b41ff1181f0abdd9adf9193211bd606ffa57e2/cryptography-2.2.2.tar.gz (443kB)\r\n    100% |################################| 450kB 1.4MB/s\r\nRequirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/local/lib/python3.5/dist-packages (from bcrypt>=3.1.3->paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): cffi>=1.1 in /usr/local/lib/python3.5/dist-packages (from bcrypt>=3.1.3->paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): idna>=2.1 in /usr/local/lib/python3.5/dist-packages (from cryptography>=1.5->paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): asn1crypto>=0.21.0 in /usr/local/lib/python3.5/dist-packages (from cryptography>=1.5->paramiko>=2.0.0->netmiko)\r\nRequirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=2.0.0->netmiko)\r\nInstalling collected packages: cryptography, paramiko, scp, pyyaml, pyserial, textfsm, netmiko\r\n  Running setup.py install for cryptography ... error\r\n    Complete output from command /usr/bin/python3 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-x02kahmv/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-p3yna2ee-record/install-record.txt --single-version-externally-managed --compile:\r\n    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'\r\n      warnings.warn(msg)\r\n    running install\r\n    running build\r\n    running build_py\r\n    creating build\r\n    creating build/lib.linux-x86_64-3.5\r\n    creating build/lib.linux-x86_64-3.5/cryptography\r\n    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.5/cryptography\r\n    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.5/cryptography\r\n    copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.5/cryptography\r\n    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.5/cryptography\r\n    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.5/cryptography\r\n    creating build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.5/cryptography/x509\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat\r\n    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/backends\r\n    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends\r\n    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/mac.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings\r\n    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/backends/openssl\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/kdf\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/ciphers\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/twofactor\r\n    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/twofactor\r\n    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/twofactor\r\n    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/twofactor\r\n    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/twofactor\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/primitives/asymmetric\r\n    creating build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings/openssl\r\n    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings/openssl\r\n    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings/openssl\r\n    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.5/cryptography/hazmat/bindings/openssl\r\n    running egg_info\r\n    writing src/cryptography.egg-info/PKG-INFO\r\n    writing dependency_links to src/cryptography.egg-info/dependency_links.txt\r\n    writing top-level names to src/cryptography.egg-info/top_level.txt\r\n    writing requirements to src/cryptography.egg-info/requires.txt\r\n    warning: manifest_maker: standard file '-c' not found\r\n\r\n    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'\r\n    reading manifest template 'MANIFEST.in'\r\n    no previously-included directories found matching 'docs/_build'\r\n    warning: no previously-included files matching '*' found under directory 'vectors'\r\n    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'\r\n    running build_ext\r\n    generating cffi module 'build/temp.linux-x86_64-3.5/_padding.c'\r\n    creating build/temp.linux-x86_64-3.5\r\n    generating cffi module 'build/temp.linux-x86_64-3.5/_constant_time.c'\r\n    generating cffi module 'build/temp.linux-x86_64-3.5/_openssl.c'\r\n    building '_openssl' extension\r\n    creating build/temp.linux-x86_64-3.5/build\r\n    creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5\r\n    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion\r\n    build/temp.linux-x86_64-3.5/_openssl.c:22:24: fatal error: pyconfig.h: No such file or directory\r\n    compilation terminated.\r\n    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\r\n\r\n    ----------------------------------------\r\nCommand \"/usr/bin/python3 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-x02kahmv/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-p3yna2ee-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-build-x02kahmv/cryptography/\r\nYou are using pip version 8.1.1, however version 10.0.1 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\nroot@NetworkAutomation-1:~#\r\nroot@NetworkAutomation-1:~# python3 netmiko1.py\r\nTraceback (most recent call last):\r\n  File \"netmiko1.py\", line 1, in <module>\r\n    from netmiko import ConnectHandler\r\nImportError: No module named 'netmiko'\r\nroot@NetworkAutomation-1:~#"},"comment":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments/405652750","html_url":"https://github.com/ktbyers/netmiko/issues/871#issuecomment-405652750","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/871","id":405652750,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTY1Mjc1MA==","user":{"login":"bdbrown69","id":37808433,"node_id":"MDQ6VXNlcjM3ODA4NDMz","avatar_url":"https://avatars3.githubusercontent.com/u/37808433?v=4","gravatar_id":"","url":"https://api.github.com/users/bdbrown69","html_url":"https://github.com/bdbrown69","followers_url":"https://api.github.com/users/bdbrown69/followers","following_url":"https://api.github.com/users/bdbrown69/following{/other_user}","gists_url":"https://api.github.com/users/bdbrown69/gists{/gist_id}","starred_url":"https://api.github.com/users/bdbrown69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdbrown69/subscriptions","organizations_url":"https://api.github.com/users/bdbrown69/orgs","repos_url":"https://api.github.com/users/bdbrown69/repos","events_url":"https://api.github.com/users/bdbrown69/events{/privacy}","received_events_url":"https://api.github.com/users/bdbrown69/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T16:56:13Z","updated_at":"2018-07-17T16:56:13Z","author_association":"NONE","body":"Ping and SSH work now!\r\n\r\nIt helps to double check the configuration on the switch...I had to enable SSH. Once that was done, the script was able to run successfully.\r\n\r\nAll - thanks again for your input and assistance! I've been in networking for a number of years and am now just learning Python and how it can help automate a lot of my daily tasks...I'm hooked!"}}
{"actor":{"display_login":"bdbrown69"}}