[Bug 1481467] [NEW] python3-request lib crash system-config-printer
george2706
george.bungarzescu at gmail.com
Tue Aug 4 19:53:42 UTC 2015
Public bug reported:
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
** Affects: requests (Ubuntu)
Importance: Undecided
Status: New
** Tags: crash system-config-printer
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to requests in Ubuntu.
https://bugs.launchpad.net/bugs/1481467
Title:
python3-request lib crash system-config-printer
Status in requests package in Ubuntu:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/requests/+bug/1481467/+subscriptions
More information about the foundations-bugs
mailing list