20.04 apt update of python 3.8 gives errors

Bug #1863825 reported by Bill (franksmcb)
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Run sudo apt dist-upgrade on 20.04 install.

Expected result:

python3 is updated without issue

Actual result:

After this operation, 1,114 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-minimal amd64 3.8.0-3ubuntu1 [23.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3 amd64 3.8.0-3ubuntu1 [47.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libpython3-stdlib amd64 3.8.0-3ubuntu1 [6,872 B]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libnewt0.52 amd64 0.52.21-4ubuntu2 [41.1 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/main amd64 whiptail amd64 0.52.21-4ubuntu2 [17.0 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/main amd64 gnome-disk-utility amd64 3.35.91-1ubuntu1 [186 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 onboard-data all 1.4.1-2ubuntu7 [3,803 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 onboard amd64 1.4.1-2ubuntu7 [351 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 onboard-common all 1.4.1-2ubuntu7 [530 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-html5-parser amd64 0.4.9-3build1 [125 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-renderpm amd64 3.5.34-1build1 [60.4 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-reportlab-accel amd64 3.5.34-1build1 [19.4 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-reportlab all 3.5.34-1build1 [546 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-systemd amd64 234-3build2 [36.5 kB]
Fetched 5,793 kB in 8s (694 kB/s)
(Reading database ... 529746 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.8.0-3ubuntu1_amd64.deb ...
Unpacking python3-minimal (3.8.0-3ubuntu1) over (3.8.0-3) ...
Setting up python3-minimal (3.8.0-3ubuntu1) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
(Reading database ... 529746 files and directories currently installed.)
Preparing to unpack .../00-python3_3.8.0-3ubuntu1_amd64.deb ...
running python pre-rtupdate hooks for python3.8...
Unpacking python3 (3.8.0-3ubuntu1) over (3.8.0-3) ...
Preparing to unpack .../01-libpython3-stdlib_3.8.0-3ubuntu1_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.8.0-3ubuntu1) over (3.8.0-3) ...
Preparing to unpack .../02-libnewt0.52_0.52.21-4ubuntu2_amd64.deb ...
Unpacking libnewt0.52:amd64 (0.52.21-4ubuntu2) over (0.52.21-4ubuntu1) ...
Preparing to unpack .../03-whiptail_0.52.21-4ubuntu2_amd64.deb ...
Unpacking whiptail (0.52.21-4ubuntu2) over (0.52.21-4ubuntu1) ...
Preparing to unpack .../04-gnome-disk-utility_3.35.91-1ubuntu1_amd64.deb ...
Unpacking gnome-disk-utility (3.35.91-1ubuntu1) over (3.35.2-1ubuntu1) ...
Preparing to unpack .../05-onboard-data_1.4.1-2ubuntu7_all.deb ...
Unpacking onboard-data (1.4.1-2ubuntu7) over (1.4.1-2ubuntu6) ...
Preparing to unpack .../06-onboard_1.4.1-2ubuntu7_amd64.deb ...
Unpacking onboard (1.4.1-2ubuntu7) over (1.4.1-2ubuntu6) ...
Preparing to unpack .../07-onboard-common_1.4.1-2ubuntu7_all.deb ...
Unpacking onboard-common (1.4.1-2ubuntu7) over (1.4.1-2ubuntu6) ...
Preparing to unpack .../08-python3-html5-parser_0.4.9-3build1_amd64.deb ...
Unpacking python3-html5-parser (0.4.9-3build1) over (0.4.9-3) ...
Preparing to unpack .../09-python3-renderpm_3.5.34-1build1_amd64.deb ...
Unpacking python3-renderpm:amd64 (3.5.34-1build1) over (3.5.34-1) ...
Preparing to unpack .../10-python3-reportlab-accel_3.5.34-1build1_amd64.deb ...
Unpacking python3-reportlab-accel:amd64 (3.5.34-1build1) over (3.5.34-1) ...
Preparing to unpack .../11-python3-reportlab_3.5.34-1build1_all.deb ...
Unpacking python3-reportlab (3.5.34-1build1) over (3.5.34-1) ...
Preparing to unpack .../12-python3-systemd_234-3build2_amd64.deb ...
Unpacking python3-systemd (234-3build2) over (234-3build1) ...
Setting up libnewt0.52:amd64 (0.52.21-4ubuntu2) ...
Setting up whiptail (0.52.21-4ubuntu2) ...
Setting up gnome-disk-utility (3.35.91-1ubuntu1) ...
Setting up libpython3-stdlib:amd64 (3.8.0-3ubuntu1) ...
Setting up python3 (3.8.0-3ubuntu1) ...
running python rtupdate hooks for python3.8...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/share/hplip/base/utils.py:2060: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:
/usr/share/hplip/check-plugin.py:116: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if log_level is 'debug':
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:
/usr/share/hplip/installer/core_install.py:2037: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if home_dir is "":
/usr/share/hplip/ui5/devmgr_ext.py:15: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.latest_available_version is not "":
/usr/share/hplip/ui5/devmgr_ext.py:37: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.latest_available_version is not "":
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
running python post-rtupdate hooks for python3.8...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up python3-reportlab-accel:amd64 (3.5.34-1build1) ...
Setting up onboard-common (1.4.1-2ubuntu7) ...
Setting up python3-html5-parser (0.4.9-3build1) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up python3-reportlab (3.5.34-1build1) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up python3-systemd (234-3build2) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up python3-renderpm:amd64 (3.5.34-1build1) ...
Setting up onboard (1.4.1-2ubuntu7) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be use
d
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3 3.8.0-3ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8
Uname: Linux 5.4.0-12-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
CurrentDesktop: MATE
Date: Tue Feb 18 18:44:49 2020
InstallationDate: Installed on 2019-04-14 (310 days ago)
InstallationMedia: Ubuntu-MATE 19.04 "Disco Dingo" - Alpha amd64 (20190413.3)
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python3-defaults
UpgradeStatus: Upgraded to focal on 2020-01-09 (40 days ago)

Revision history for this message
Bill (franksmcb) (franksmcb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python3-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

We can reproduce following command:

$ sudo py3compile -p python3-apport -V 3.0-
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)

py3comipe set "bufsize=1" for subprocess.Popen(): https://salsa.debian.org/cpython-team/python3-defaults/blob/master/py3compile#L132-133

    process = Popen(cmd, bufsize=1, shell=True,
                    stdin=PIPE, close_fds=True)

However newer python (from 3.8?) warn on buffering=1.

* https://github.com/python/cpython/commit/a2670565d8f5c502388378aba1fe73023fd8c8d4
* https://bugs.python.org/issue32236

Revision history for this message
omar (4ckr) wrote :

i solve this Using choosing another version of Ubuntu

sudo update-alternatives --config python3

and i choosed another version of Ubuntu i already used

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.