ImportError: 'pyOpenSSL' module missing required functionality. Raise ImportError("'pyOpenSSL' module missing required functionality. pyopenssl.inject_into_urllib3() # type: ignoreįile "/usr/lib/python2.7/site-packages/ urllib3-1.24.1-py2.7.egg/urllib3/contrib/pyopenssl.py", line 118, in inject_into_urllib3įile "/usr/lib/python2.7/site-packages/ urllib3-1.24.1-py2.7.egg/urllib3/contrib/pyopenssl.py", line 153, in _validate_dependencies_met Return get_distribution(dist).load_entry_point(group, name)įile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_pointįile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in loadĮntry = _import_(self.module_name, globals(),globals(), )įile "/usr/lib/python2.7/site-packages/certbot/main.py", line 2, inįrom certbot._internal import main as internal_mainįile "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 20, inįile "/usr/lib/python2.7/site-packages/certbot/_internal/account.py", line 18, inįrom acme.client import ClientBase # pylint: disable=unused-importįile "/usr/lib/python2.7/site-packages/acme/client.py", line 39, in Load_entry_point('certbot=1.9.0', 'console_scripts', 'certbot')()įile "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point Now I have again the original error message again: I uninstalled the pip things and reinstalled the yum versions: To replace pyOpenSSL yum version with pip. After the first error, I just followed an instruction I found Provider: python2-josepy.noarch 1.3.0-2.el7 Provider: python2-distro.noarch 1.2.0-3.el7 sudo: no tty present and no askpass program specified Google told me to either set the environment variable SSHASKPASS or to set askpass in the sudoers file. Plain Text clusterPreError.txt Download file clusterPreError. Provider: python2-cryptography.x86_64 1.7.2-2.el7 PrevalidationCmdMsgs20010: 'Defaults requiretty' is commented in sudoers files FAILED Output:sudo: no tty present and no askpass program specified Thank you in advance. Provider: python2-configargparse.noarch 0.11.0-2.el7ĭependency: python2-cryptography >= 1.2.3 Provider: python2-acme.noarch 1.9.0-1.el7ĭependency: python2-configargparse >= 0.9.3 Provider: python-zope-interface.x86_64 4.0.5-4.el7 hafcClient client. Provider: python-zope-component.noarch 1:4.1.0-5.el7 Provider: python-setuptools.noarch 0.9.8-7.el7 Provider: python2-parsedatetime.noarch 2.4-6.el7 The big one seems to be python2-certbot, but I can only see one level: ~]# rpm -q -requires python2-certbot I've tried googling and it seems impossible to find a yum/rpm dependency tree. I don't know how to walk a yum dependency tree to see what packages may need reinstalling. If you want passwordless login up to the root account (which is generally not a good idea from a security perspective), use SSH to reach the root account, preferably in two hops.The problem is that pip could have overwritten files installed by yum. Note that you still need to have a terminal, even with NOPASSWD, if the requiretty option is set in the sudoers file. Sudo requires a password (unless you add the NOPASSWD tag in the sudoers file). If you expected the SSH passphrase to replace your password for authentication to sudo, that's not going to happen. tty allocation can be enforced though: ssh -t or even ssh -tt. If that's the problem, run ssh inside a terminal emulator such as Console2 or Mintty (included in the Cygwin distribution) - see Best way to use a shell with Cygwin in Windows 7. The Windows console does not completely emulate a unix terminal there may be some difficulty for Cygwin applications to properly emulate a terminal in these circumstances (I'm not sure about that, note). If you aren't able to enter the password even with -t, it's possible that your problem is due to Windows. stdin, stdout, stderr ssh. sudo: no tty present and no askpass program specified I tried. See SSH inside SSH fails with "stdin: is not a tty" for a more detailed explanation. Paramiko: no tty present and no askpass program specified ssh python duplicate Ask Question Asked 5 years, 3 months ago. If you pass a command to ssh, it assumes that the command doesn't need a terminal and doesn't create one, unless you pass -t. You need to have a terminal available to run sudo so that it can prompt you for the password. Sudo: no tty present and no askpass program specified Unfortunately, every time I run ssh 'sudo /var/I have also tried to add -t -t but then it prompts me for the password. I then also tried to add 'newton ALL=NOPASSWD: /var/www/script.sh' I have setup SSH keys so when I run 'ssh it automatically logs me in, I have also set this user in visudo to be 'newton ALL=(ALL:ALL) ALL' I keep getting this error and have tried several ways discussed online to fix this and none are working for me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |