AttributeError: 'module' object has no attribute 'disable_warnings'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
New
|
Undecided
|
Unassigned |
Bug Description
Using 0.29 on Trusty:
$ /usr/share/
Traceback (most recent call last):
File "/usr/share/
urllib3.
AttributeError: 'module' object has no attribute 'disable_warnings'
Looks like urllib3 didn't get disable_warnings() until 1.22: https:/
Trusty only has 1.7.1 in it: https:/
A patch to ttvdb.py along the lines of:
# disable the insecure request warning that we know we are going to get
import urllib3
-urllib3.
+try:
+ urllib3.
+except AttributeError:
+ pass
# Check that the lxml library is current enough
# From the lxml documents it states: (http://
Seems to take care of it.
It seems in fact that the above description is just the tip of the iceberg and what really needs doing is to install newer versions of dependent python packages as described here:
https:/ /www.mythtv. org/wiki/ TheTVDB_ API_v2
under the "Ubuntu and Mythbuntu Trusty (14.04)" heading.
In fact all I really needed to update were python- {urllib3, requests} to the Xenial versions of those packges, 1.13.1-2 and 2.9.1-3 respectively.
As easy as that is to do manually, once you discover that things are indeed (pretty silently -- until you notice you are not getting metadata any more) broken, it would be much nicer if upgrading these packages happened when installing 0.29 on Trusty. To that end, a simple backport of those two packages from Xenial to Trusty in the Mythbuntu Trusty PPA would be awesome.