Bug 757468

Summary: NameError: global name 'pixbuf' is not defined
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: pdfshufflerAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16CC: mail, subscribed-lists
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pdfshuffler-0.6.0-0.2.20120302svn64.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-21 02:33:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Kratochvil 2011-11-27 11:21:09 UTC
Description of problem:
No PDF can get loaded

Version-Release number of selected component (if applicable):
FAIL: pdfshuffler-0.5.1-1.fc16.noarch
PASS: pdfshuffler-0.5-2.fc14.noarch

How reproducible:
Always.

Steps to Reproduce:
echo 'foo\bye' >foo.tex; pdftex foo.tex; pdfshuffler foo.pdf 

Actual results:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/bin/pdfshuffler", line 964, in run
    thumbnail = self.load_pdf_thumbnail(pdfdoc, npage, angle, crop)
  File "/usr/bin/pdfshuffler", line 1010, in load_pdf_thumbnail
    pixbuf.fill(0xffffffff)
NameError: global name 'pixbuf' is not defined

and black screen

Expected results:
Loaded PDF.

Additional info:

Comment 1 Steven Stern 2011-11-29 17:27:49 UTC
Confirmed.  This happened a few months ago and, IIRC, it had to do with a bad version of pypoppler.

I have the same issue

[sdstern@sds-desk ~]$ rpm -qa |grep pdfshuffler
pdfshuffler-0.5.1-1.fc16.noarch

[sdstern@sds-desk ~]$ rpm -qa |grep pypoppler
pypoppler-0.12.1-16.fc16.i686

Comment 2 Rafał Mużyło 2011-12-01 14:34:31 UTC
:roll: honestly,..

The most probable reason is described here: https://bugs.gentoo.org/show_bug.cgi?id=390607

summary: as of poppler 0.18, python-popler is kind of broken, the most simple solution is to stop using render_to_pixbuf method and fix python-poppler.

As per advice, the patch in https://bugs.gentoo.org/show_bug.cgi?id=377063 just copy-pastes the old code from poppler, but - as I mentioned there - I think the proper solution is to stop providing render_to_pixbuf{,_for_printing} and just fix apps using those methods.

Comment 3 Fedora Update System 2012-03-02 10:54:47 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/pdfshuffler-0.6.0-0.2.20120302svn64.fc16

Comment 4 Fedora Update System 2012-03-02 10:56:06 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pdfshuffler-0.6.0-0.2.20120302svn64.fc15

Comment 5 Fedora Update System 2012-03-02 10:57:09 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/pdfshuffler-0.6.0-0.2.20120302svn64.fc17

Comment 6 Fedora Update System 2012-03-05 20:55:21 UTC
Package pdfshuffler-0.6.0-0.2.20120302svn64.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pdfshuffler-0.6.0-0.2.20120302svn64.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2846/pdfshuffler-0.6.0-0.2.20120302svn64.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-03-21 02:33:32 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-03-21 02:38:57 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-03-21 18:43:45 UTC
pdfshuffler-0.6.0-0.2.20120302svn64.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.