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
There's a problem importing urllib via six.moves on Red Hat based distros with a python2 runtime:
$ sudo sosreport -v --batch
Traceback (most recent call last):
File "/sbin/sosreport", line 19, in <module>
from sos.sosreport import main
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 40, in <module>
from sos.plugins import import_plugin
File "/usr/lib/python2.7/site-packages/sos/plugins/__init__.py", line 41, in <module>
from six.moves import urllib, zip, filter
ImportError: cannot import name urllib
However, nothing in the plugins directory actually uses urllib - it seems to be a leftover from the removal of the JBoss/EAP plug-ins which used it for URL handling.
The remaining six imports (zip, filter) appear to work as expected - for now the simplest solution is to drop the urllib import.
The text was updated successfully, but these errors were encountered:
The urllib import via six.moves in the plugins module is unused.
This causes an exception on some distributions when attempting to
import the moved module.
Drop the import since nothing in the plugin classes is using it.
Fixes Issue #218
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
The urllib import via six.moves in the plugins module is unused.
This causes an exception on some distributions when attempting to
import the moved module.
Drop the import since nothing in the plugin classes is using it.
Fixes Issue sosreport#218
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
There's a problem importing urllib via six.moves on Red Hat based distros with a python2 runtime:
However, nothing in the plugins directory actually uses urllib - it seems to be a leftover from the removal of the JBoss/EAP plug-ins which used it for URL handling.
The remaining six imports (zip, filter) appear to work as expected - for now the simplest solution is to drop the urllib import.
The text was updated successfully, but these errors were encountered: