Bug 2355091 - print fatal error: "The PPD version (5.3.4) is not compatible with Gutenprint 5.3.5."
Summary: print fatal error: "The PPD version (5.3.4) is not compatible with Gutenprint...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gutenprint
Version: 41
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-26 16:55 UTC by pgnd
Modified: 2025-04-11 01:53 UTC (History)
3 users (show)

Fixed In Version: gutenprint-5.3.5-4.fc43 gutenprint-5.3.5-4.fc42 gutenprint-5.3.5-4.fc41 gutenprint-5.3.5-5.fc40
Clone Of:
Environment:
Last Closed: 2025-03-28 05:51:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description pgnd 2025-03-26 16:55:53 UTC
on
```
	distro
		Name: Fedora Linux 41 (Forty One)
		Version: 41
		Codename:
```

with installed
```
	rpm -qa | grep -Ei "gutenprint|cups" | sort
		cups-2.4.11-9.fc41.x86_64
		cups-browsed-2.1.0-1.fc41.x86_64
		cups-client-2.4.11-9.fc41.x86_64
		cups-devel-2.4.11-9.fc41.x86_64
		cups-filesystem-2.4.11-9.fc41.noarch
		cups-filters-2.0.1-3.fc41.x86_64
		cups-filters-driverless-2.0.1-3.fc41.x86_64
		cups-ipptool-2.4.11-9.fc41.x86_64
		cups-libs-2.4.11-9.fc41.x86_64
		gutenprint-5.3.5-3.fc41.x86_64
		gutenprint-cups-5.3.5-3.fc41.x86_64
		gutenprint-libs-5.3.5-3.fc41.x86_64
		libcupsfilters-2.1.1-1.fc41.x86_64
```

attempts to print locally now fail with

	"The PPD version (5.3.4) is not compatible with Gutenprint 5.3.5. Please run `/usr/sbin/cups-genppdupdate' as administrator."


where
```
	rpm -q --whatprovides /usr/sbin/cups-genppdupdate
		gutenprint-cups-5.3.5-3.fc41.x86_64
```

on exec
```
	/usr/sbin/cups-genppdupdate

		Traceback (most recent call last):
		  File "/usr/sbin/cups-genppdupdate", line 1078, in <module>
		    status = update_ppd (ppd_file)
		  File "/usr/sbin/cups-genppdupdate", line 439, in update_ppd
		    (ndt, nopt, nres, ndef, source_data) = get_ppd_data (source_fd,
		                                           ~~~~~~~~~~~~~^^^^^^^^^^^
		                                                         1, 1, 1, 1, 1)
		                                                         ^^^^^^^^^^^^^^
		  File "/usr/sbin/cups-genppdupdate", line 711, in get_ppd_data
		    line = fh.readline ()
		  File "<frozen codecs>", line 325, in decode
		UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 2063-2064: invalid continuation byte
```


Reproducible: Always

Comment 1 pgnd 2025-03-26 18:25:33 UTC
downgrade 5.3.5 -> 5.3.4

	rpm -qa | grep gutenprint
		gutenprint-libs-5.3.4-3.fc41.x86_64
		gutenprint-5.3.4-3.fc41.x86_64
		gutenprint-cups-5.3.4-3.fc41.x86_64

from fork/build @

	https://src.fedoraproject.org/fork/pgfed/rpms/gutenprint/commits/f41
	https://copr.fedorainfracloud.org/coprs/pgfed/gutenprint/

cures the problem -- printing OK.

Comment 2 pgnd 2025-03-26 19:32:42 UTC
and, w/ 5.3.4, e.g.

	/usr/sbin/cups-genppdupdate
		Updated /etc/cups/ppd/HPLJ_5200.ppd using gutenprint.5.3://hp-lj_5200/expert
		Updated 1 PPD file
		Restart cupsd for the changes to take effect.

Comment 3 Zdenek Dohnal 2025-03-27 11:28:43 UTC
Hi,

thank you for the report!

I can reproduce the issue and I'm trying to figure out the reason why the python script fails - it looks like the driver gutenprint.5.3 now generates wrong encoded data - when I open the PPD generated by it, I see incorrect symbols for some translations, which worked in 5.3.4.

Debugging it further...

Comment 4 Zdenek Dohnal 2025-03-27 15:53:00 UTC
Ok, get it - Georgian translations, which are now new in 5.3.5, cannot be decoded as UTF-8 when they are in PPD generated by gutenprint.5.3. Gutenprint includes all translation strings into PPD when creating it, so when Georgian translations are removed, the script works.

In upstream they use Perl script as cups-genppdupdate, which does not show the issue (although PPD file shows weird symbols, but they work in f.e. Evince dialog) and we have rewritten this script to Python in the past to avoid having Perl in the default image, so it is a downstream issue.

I've checked Python docs and there is possibility to influence what to do when UnicodeError happens - one of them is 'replace', which I tried to use for TextWrapper objects and it works - translations in PPD are readable in Vim and in Evince print dialog, so let's go with it for now.

Comment 5 pgnd 2025-03-27 16:11:33 UTC
> cannot be decoded as UTF-8 when they are in PPD generated by gutenprint.5.3

fwiw, 2 F41 machines, cups/gutenprint clean-installed.  one v5.3.4, one v5.3.5

on exec of

  https://pastebin.com/raw/TPTu4tmR

generated ppd with 5.3.5,

  https://is.gd/6nnD6v

Comment 6 Zdenek Dohnal 2025-03-27 16:17:21 UTC
Yes, 5.3.4 does not have Georgian translations.

Comment 7 Zdenek Dohnal 2025-03-27 16:25:36 UTC
Committed in rawhide for now, I will build the fix tomorrow for all branches.

For the moment, F41 scratch build https://koji.fedoraproject.org/koji/taskinfo?taskID=130809556

Comment 8 pgnd 2025-03-27 16:41:26 UTC
confirmed, own f41 copr build from updated rawhide src

rpm -qa | grep gutenprint
	gutenprint-libs-5.3.5-4.fc41.x86_64
	gutenprint-5.3.5-4.fc41.x86_64
	gutenprint-cups-5.3.5-4.fc41.x86_64
systemctl restart cups

-> printing OK

&

/usr/sbin/cups-genppdupdate
	Updated /etc/cups/ppd/HPLJ_4300.ppd using gutenprint.5.3://hp-lj_4300/expert
	Updated 1 PPD file
	Restart cupsd for the changes to take effect.

Comment 9 Fedora Update System 2025-03-28 05:42:20 UTC
FEDORA-2025-245c787fab (gutenprint-5.3.5-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-245c787fab

Comment 10 Fedora Update System 2025-03-28 05:51:51 UTC
FEDORA-2025-245c787fab (gutenprint-5.3.5-4.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-03-28 05:54:30 UTC
FEDORA-2025-b9233395f4 (gutenprint-5.3.5-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b9233395f4

Comment 12 Fedora Update System 2025-03-28 06:05:43 UTC
FEDORA-2025-0ba91b1ef6 (gutenprint-5.3.5-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-0ba91b1ef6

Comment 13 Fedora Update System 2025-03-28 06:17:35 UTC
FEDORA-2025-77a9ae0dc1 (gutenprint-5.3.5-4.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-77a9ae0dc1

Comment 14 Fedora Update System 2025-03-29 01:31:03 UTC
FEDORA-2025-b9233395f4 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b9233395f4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b9233395f4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2025-03-29 02:37:03 UTC
FEDORA-2025-0ba91b1ef6 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-0ba91b1ef6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-0ba91b1ef6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2025-03-29 02:42:33 UTC
FEDORA-2025-77a9ae0dc1 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-77a9ae0dc1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-77a9ae0dc1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2025-04-01 00:18:36 UTC
FEDORA-2025-b9233395f4 (gutenprint-5.3.5-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2025-04-01 01:30:58 UTC
FEDORA-2025-0ba91b1ef6 (gutenprint-5.3.5-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2025-04-03 03:15:02 UTC
FEDORA-2025-d3cac232ac has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d3cac232ac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d3cac232ac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2025-04-11 01:53:03 UTC
FEDORA-2025-d3cac232ac (gutenprint-5.3.5-5.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.