You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
Hi, I've installed paws on Fedora 27 with pip without virtaulenv and tried running paws provision but it fails on AttributeError: 'module' object has no attribute 'GSSException':
# paws provision
Traceback (most recent call last):
File "/usr/bin/paws", line 11, in <module>
load_entry_point('paws-cli==0.3.9', 'console_scripts', 'paws')()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 572, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2408, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2414, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/site-packages/paws/cli.py", line 32, in <module>
from paws.helpers import file_mgmt
File "/usr/lib/python2.7/site-packages/paws/helpers.py", line 30, in <module>
from paramiko import AutoAddPolicy, SSHClient
File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 38, in <module>
from paramiko.auth_handler import AuthHandler
File "/usr/lib/python2.7/site-packages/paramiko/auth_handler.py", line 48, in <module>
from paramiko.ssh_gss import GSSAuth, GSS_EXCEPTIONS
File "/usr/lib/python2.7/site-packages/paramiko/ssh_gss.py", line 54, in <module>
GSS_EXCEPTIONS = (gssapi.GSSException,)
AttributeError: 'module' object has no attribute 'GSSException'
When I tried it in a virtualenv, it didn't show that error. After a bit of poking, it seems having 'gssapi' library install causing the issue.
@abraverm I am assuming you have the gssapi library installed in your global system site packages?
Is there a preferred way you need to run paws in your environment: within a virtual environment or not?
I did see a comment in the issues, if you install python-gssapi library you should be able to run paws successfully. If you installed this package in your global system site packages would that effect anything on your end?
Another potential way to have paws work with gssapi library installed would be to downgrade paramiko to the last working version until they have any open PR's to resolve this exception in a new version.
I'm not sure when did I install gssapi and for what purpose, probably it was dependency of other package. I personally keep tools such as paws in the global system environment and this how I stumbled on this issue. Maybe python-gssapi will fix it, but I think downgrading paramiko in this case will make paws less depended on user choices.
This will resolve the bug found when a user has the gssapi library
installed and then tries to run paws. When they go to run paws, it
will fail with a paramiko exception. Rolling back the version resolves
this bug. To note: paws does not require gssapi. We will upgrade to
the latest version of paramiko once they fix the bug.
More information can be referenced in #9
Hi, I've installed paws on Fedora 27 with pip without virtaulenv and tried running
paws provision
but it fails onAttributeError: 'module' object has no attribute 'GSSException'
:When I tried it in a virtualenv, it didn't show that error. After a bit of poking, it seems having 'gssapi' library install causing the issue.
Pip freeze:
Looks like its a known issue:
paramiko/paramiko#1068
paramiko/paramiko#1069
The text was updated successfully, but these errors were encountered: