Ubuntu installation fails - readfp is deprecated. Use read readfp is deprecated. Use read_file instead: config.read_file

Bug #2065223 reported by Robert Hubbard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Trying to install 3.23.12.run on Ubuntu
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
~

Python version - Python 3.12.3

Python 3.12 has deprecated 'readfp'

installation fails.

AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

  File "/home/rhubbard/Downloads/hplip-3.23.12/base/g.py", line 131, in read

### from some python updates .. readfp is deprecated. Use read_file instead: config.read_file(open(r'abc.txt')) –

Changed base/g.py line 131 : to read_file and install proceeds.

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.