Após a instalação do Ubuntu 24.04 verifiquei que não consigo imprimir com a impressora hp laserjet P1102w. Tinha instalado no Ubuntu 22.04, e agora não consigo intalar. Aparece o seguinte erro:
./hplip-3.23.12.run
Creating directory hplip-3.23.12
Verifying archive integrity... 100% All good.
Uncompressing HPLIP 3.23.12 Self Extracting Archive 100%
/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py:305: SyntaxWarning: invalid escape sequence '\|'
spinner = "\|/-\|/-"
/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py:355: SyntaxWarning: invalid escape sequence '\d'
m = re.search('python(\d(\.\d){0,2})', ext_path) #get the python version where the .so file is found
/home/manoel/Downloads/Programas/hplip-3.23.12/base/logger.py:438: SyntaxWarning: invalid escape sequence '\<'
elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0]
/home/manoel/Downloads/Programas/hplip-3.23.12/base/logger.py:439: SyntaxWarning: invalid escape sequence '\]'
elem_finished = re.findall("([?|\]\]]*\>)", line)[0]
/home/manoel/Downloads/Programas/hplip-3.23.12/base/logger.py:441: SyntaxWarning: invalid escape sequence '\S'
attrs = re.findall("(\S*?\=\".*?\")", line)
Traceback (most recent call last):
File "/home/manoel/Downloads/Programas/hplip-3.23.12/./install.py", line 38, in <module>
from base.g import *
File "/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py", line 240, in <module>
sys_conf = SysConfig()
^^^^^^^^^^^
File "/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py", line 185, in __init__
ConfigBase.__init__(self, '/etc/hp/hplip.conf')
File "/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py", line 90, in __init__
self.read()
File "/home/manoel/Downloads/Programas/hplip-3.23.12/base/g.py", line 131, in read
self.conf.readfp(fp)
^^^^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?