Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764989 - dev-python/PyQt5-5.15.1: sipQtGuiQPdfWriter.cpp:869:21: error: 'class QPdfWriter' has no member named 'addFileAttachment'
Summary: dev-python/PyQt5-5.15.1: sipQtGuiQPdfWriter.cpp:869:21: error: 'class QPdfWri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-11 18:05 UTC by pchodgson11
Modified: 2021-05-29 23:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emi.txt,6.51 KB, text/plain)
2021-01-11 18:05 UTC, pchodgson11
Details
emerge -pqv (epqv.txt,1.67 KB, text/plain)
2021-01-11 18:05 UTC, pchodgson11
Details
build log (build.log,713.52 KB, text/x-log)
2021-01-11 18:06 UTC, pchodgson11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pchodgson11 2021-01-11 18:05:30 UTC
Created attachment 682456 [details]
emerge --info

Trying to perform an @world update, when emerging dev-python/PyQt5-5.15.1, error appears: class QPdfWriter' has no member named 'setDocumentXmpMetadata'

Reproducible: Always

Steps to Reproduce:
1. run sudo emerge --update --newuse --deep --with-bdeps=y @world
Actual Results:
error: 'class QPdfWriter' has no member named
'setDocumentXmpMetadata'


Expected Results:  
PyQt5 should emerge without error
Comment 1 pchodgson11 2021-01-11 18:05:55 UTC
Created attachment 682459 [details]
emerge -pqv
Comment 2 pchodgson11 2021-01-11 18:06:13 UTC
Created attachment 682462 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-11 22:32:56 UTC
5.15.2 any better? I suppose this is with the new pdf.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-11 22:33:02 UTC
(In reply to Sam James from comment #3)
> 5.15.2 any better? I suppose this is with the new pdf.

qpdf
Comment 5 pchodgson11 2021-01-12 17:16:38 UTC
Thanks for the advice! I added dev-python/* ~amd64 to accept_keywords, and that seems to have cleared up whatever package requirement issues there were.
Comment 6 Davide Pesavento gentoo-dev 2021-02-06 21:32:39 UTC
app-text/qpdf has nothing to do with the PDF support in Qt or PyQt.
Comment 7 Davide Pesavento gentoo-dev 2021-02-06 21:36:02 UTC
QPdfWriter::addFileAttachment was introduced in Qt 5.15. I suspect the reporter has/had an older version of Qt installed.
Comment 8 Davide Pesavento gentoo-dev 2021-02-06 21:37:28 UTC
same story with QPdfWriter::setDocumentXmpMetadata
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-07 01:00:40 UTC
(In reply to Davide Pesavento from comment #6)
> app-text/qpdf has nothing to do with the PDF support in Qt or PyQt.

Whoops, sorry. Thank you!
Comment 10 Davide Pesavento gentoo-dev 2021-05-29 23:34:59 UTC
PyQt5-5.15.2 depends on Qt >= 5.15, so this should be fixed.