This isn't a regression in disco as the same error occurs with the version of the package in the release pocket for disco.
[ 9:53AM 10159 ] [ bdmurray@impulse:~ ] $ pastebinit -b paste.openstack.org -i /tmp/test.txt /usr/bin/pastebinit:42: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 release = platform.linux_distribution()[0].lower() /usr/bin/pastebinit:413: DeprecationWarning: pasteURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods url_opener = pasteURLopener() Traceback (most recent call last): File "/usr/bin/pastebinit", line 417, in <module> params = json.dumps(params) File "/usr/lib/python3.7/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.7/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.7/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type bytes is not JSON serializable [ 9:54AM 10162 ] [ bdmurray@impulse:~ ] $ apt-cache policy pastebinit pastebinit: Installed: 1.5-2 Candidate: 1.5-2 Version table: *** 1.5-2 500 500 http://192.168.10.7/ubuntu disco/main amd64 Packages 500 http://192.168.10.7/ubuntu disco/main i386 Packages 100 /var/lib/dpkg/status
This isn't a regression in disco as the same error occurs with the version of the package in the release pocket for disco.
[ 9:53AM 10159 ] [ bdmurray@impulse:~ ] pastebinit: 42: DeprecationWarning: dist() and linux_distribut ion() functions are deprecated in Python 3.5 linux_distribut ion()[0] .lower( ) pastebinit: 413: DeprecationWarning: pasteURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods pastebinit" , line 417, in <module> python3. 7/json/ __init_ _.py", line 231, in dumps encoder. encode( obj) python3. 7/json/ encoder. py", line 199, in encode python3. 7/json/ encoder. py", line 257, in iterencode python3. 7/json/ encoder. py", line 179, in default _.__name_ _} ' 192.168. 10.7/ubuntu disco/main amd64 Packages 192.168. 10.7/ubuntu disco/main i386 Packages dpkg/status
$ pastebinit -b paste.openstack.org -i /tmp/test.txt
/usr/bin/
release = platform.
/usr/bin/
url_opener = pasteURLopener()
Traceback (most recent call last):
File "/usr/bin/
params = json.dumps(params)
File "/usr/lib/
return _default_
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
File "/usr/lib/
raise TypeError(f'Object of type {o.__class_
TypeError: Object of type bytes is not JSON serializable
[ 9:54AM 10162 ] [ bdmurray@impulse:~ ]
$ apt-cache policy pastebinit
pastebinit:
Installed: 1.5-2
Candidate: 1.5-2
Version table:
*** 1.5-2 500
500 http://
500 http://
100 /var/lib/