Bug#469500: fails to read text from PDF file
Hi Stefano, > Thanks for the clarification... It would be nice to have some workaround > until the bug is solved upstream: removing python-qt4 is not a solution > here because I have daily-used applications that depend on it. Upsteam reported these ways: " Just add lines like these to the code that uses the pdftools package: from PyQt4.QtGui import QApplication app = QApplication([]) Or, if the sys module has been imported, like these: from PyQt4.QtGui import QApplication app = QApplication(sys.argv) " sorry but I can't test, since I don't have installed python-qt4. Regards, Sandro -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#469500: fails to read text from PDF file
On lun, 2008-03-17 at 14:41 +0100, Sandro Tosi wrote: > > Talking with upstream we found that if you don't have Qt python > bindings installed (like me) there is no errors, and the same for a > correctly setup environment (the one with a QApplication configured). > It seems that python-pdftools does not setup QApplication. Upsteam is > considering removing the code using QApplication (since not too much > useful) or let it be optional. Thanks for the clarification... It would be nice to have some workaround until the bug is solved upstream: removing python-qt4 is not a solution here because I have daily-used applications that depend on it. Best, Steko -- Stefano Costa http://www.iosa.it Archeologia e Software Libero Io uso Debian GNU/Linux! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#469500: fails to read text from PDF file
Hi Stefano, > > I executed the same commands, with the same file, on my machine and it > > works; since it seems a problem with somethin in Qt libraries, may I > > ask you to upgrade to latest python-qt4 and then let me know? > > Hi Sandro, > I think I have the latest python-qt4 from sid : 4.3.3-2 > Is this the same for you? Talking with upstream we found that if you don't have Qt python bindings installed (like me) there is no errors, and the same for a correctly setup environment (the one with a QApplication configured). It seems that python-pdftools does not setup QApplication. Upsteam is considering removing the code using QApplication (since not too much useful) or let it be optional. Regards, Sandro -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#469500: fails to read text from PDF file
On sab, 2008-03-15 at 18:50 +0100, Sandro Tosi wrote: > I executed the same commands, with the same file, on my machine and it > works; since it seems a problem with somethin in Qt libraries, may I > ask you to upgrade to latest python-qt4 and then let me know? Hi Sandro, I think I have the latest python-qt4 from sid : 4.3.3-2 Is this the same for you? Best, Steko -- Stefano Costa http://www.iosa.it Archeologia e Software Libero Io uso Debian GNU/Linux! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#469500: fails to read text from PDF file
forwarded 469500 [EMAIL PROTECTED] tag 469500 + unreproducible moreinfo thanks Hi Stefano, [8<] > In [8]: contents1 = page1.read_contents() > ASSERT failure in QFontDatabase: "A QApplication object needs to be > constructed before FontConfig is used.", file text/qfontdatabase_x11.cpp, > line 996 I executed the same commands, with the same file, on my machine and it works; since it seems a problem with somethin in Qt libraries, may I ask you to upgrade to latest python-qt4 and then let me know? Thanks in advance, Sandro -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#469500: fails to read text from PDF file
Package: python-pdftools Version: 0.35-1 Severity: important --- Please enter the report below this line. --- I have tried the example commands given in the module's documentation in an interactive ipython session. Here's the command history and the error message. [EMAIL PROTECTED]:~/code/aria$ ipython Python 2.4.4 (#2, Mar 3 2008, 01:16:37) Type "copyright", "credits" or "license" for more information. IPython 0.8.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: from pdftools.pdffile import PDFDocument In [2]: file = "Tabulato.pdf" In [3]: doc = PDFDocument(file) In [4]: print "Document uses PDF format version", doc.document_version() Document uses PDF format version 1.2 In [5]: pages = doc.count_pages() In [6]: print "Document contains %i pages." % pages Document contains 2 pages. In [7]: page1 = doc.read_page(1) In [8]: contents1 = page1.read_contents() ASSERT failure in QFontDatabase: "A QApplication object needs to be constructed before FontConfig is used.", file text/qfontdatabase_x11.cpp, line 996 Abortito [EMAIL PROTECTED]:~/code/aria$ You can get the same file here: http://www2.provincia.genova.it/datiaria/Tabulato.pdf Best, Steko --- System information. --- Architecture: i386 Kernel: Linux 2.6.24-1-686 Debian Release: lenny/sid 500 unstableftp.it.debian.org 500 testing www.debian-multimedia.org 500 testing security.eu.debian.org 500 testing ftp.it.debian.org 500 testing debian.gfoss.it --- Package information. --- Depends (Version) | Installed =-+-=== python| 2.4.4-6 python-central (>= 0.5.8) | 0.5.15-0.1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]