python3-request lib crash system-config-printer

Bug #1481467 reported by george2706
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
New
Undecided
Unassigned

Bug Description

ubuntu mate 15.10
amd64

system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 70, in <module>
    import cupshelpers
  File "/usr/lib/python3/dist-packages/cupshelpers/__init__.py", line 60, in <module>
    from . import openprinting
  File "/usr/lib/python3/dist-packages/cupshelpers/openprinting.py", line 22, in <module>
    import requests, urllib.request, urllib.parse, urllib.error, platform, threading, tempfile, traceback
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 60, in <module>
    from .api import request, get, head, post, patch, put, delete, options
  File "/usr/lib/python3/dist-packages/requests/api.py", line 14, in <module>
    from . import sessions
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 27, in <module>
    from .adapters import HTTPAdapter
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 29, in <module>
    from .packages.urllib3.exceptions import ResponseError
ImportError: cannot import name 'ResponseError'

possible solution
1) comment line 29 and coresponding line in adapters.py where ResponseError is used.
2) fix urllib3.exceptions by adding ResponseError class

Revision history for this message
george2706 (george-bungarzescu) wrote :

the affected packages are: python-requests python-urllib3, system-config-printers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.