Matthew, Thanks! Btw, I was under the impression that I needed to have PyPDF2 (which is why I packaged it). That has version 1.24. Can I still use that? In that case what do I do? Same as below. Many thanks, Ranjan On Fri, 22 May 2015 11:22:47 -0400 Matthew Miller <mattdm@xxxxxxxxxxxxxxxxx> wrote: > On Fri, May 22, 2015 at 09:54:07AM -0500, Ranjan Maitra wrote: > > $ fpaste pdf-stapler.spec > > Uploading (2.3KiB)... > > http://ur1.ca/mlk1u -> http://paste.fedoraproject.org/224688/30572714 > > Hmmm, first thing here — you're asking for python3-devel but calling > %{__python} (which is currently %{__python2}) instead of > % %{__python3}, and you're using the python2 sitelib. > > > However, it "crashes" after installation: > [...] > > pkg_resources.DistributionNotFound: pypdf==1.12 > > We actually have pyPdf in the distro. However, it's 1.13. Try: > > at the top of the file: > > %define pypdfversion 1.13 > > requires line: > > Requires: pyPdf = %{pypdfversion} > > (no need for BuildRequires), and then put this after %setup > > for f in setup.py stapler.egg-info/requires.txt ; do > sed -i 's/pypdf == 1.12/pypdf == %{pypdfversion}/g' $f > done > > Having made these changes, your specfile works for me and pdf-stapler > appears to run — at least, it does not crash. > > > -- > Matthew Miller > <mattdm@xxxxxxxxxxxxxxxxx> > Fedora Project Leader > -- > users mailing list > users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe or change subscription options: > https://admin.fedoraproject.org/mailman/listinfo/users > Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct > Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines > Have a question? Ask away: http://ask.fedoraproject.org -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org