Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62430

Re: PDFMiner install question

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andipersti@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.023
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'class,': 0.07; 'error:': 0.07; 'url:github': 0.09; 'subject:question': 0.10; 'andreas': 0.16; 'bye,': 0.16; 'subject:install': 0.16; 'url:py': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'import': 0.22; 'skip:" 30': 0.26; 'skip:" 20': 0.27; 'header:In-Reply- To:1': 0.27; 'leave': 0.29; 'moved': 0.30; 'code': 0.31; 'file': 0.32; 'run': 0.32; 'quite': 0.32; '(most': 0.33; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'skip:> 10': 0.36; 'charset:us-ascii': 0.36; 'jason': 0.38; 'to:addr :python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'according': 0.40; 'name': 0.63; 'latest': 0.67; 'sample': 0.67; 'commenting': 0.84; 'url:master': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=o7D58wtdHPYnkKTWVFR3XUPnn1bZ5e7nrqcEf+xwAI4=; b=YNvd/YQAfSE1dlfnTcN9AYdxkWJJZ+xf47ikwyU838zsCEq3SkwcPOr0CzGbvNYqPx LRL7BjrZDZIH+LiIFDPq2N6uH3K9Q5pgfmTOTKRMOHdQ6+P05Y5oqcBW7p6TcK/eY7TA moXwwcAr4s59fj1V2GY252haaliBCon+1pdgSYhvryL4agRiMtHOikOoPtMwCzVLo4Wb XKLuYDAB2rplZnPnK2nps1akpavfg6MvRRHX6lDDLUdnbL3tINI0+KZadLW/WTCzhtKq xuAQ34hczqbmhuAzQ+5UFap66a1Gr0/EJuje44hzLs97dBGA8xjBSwwe4EZCCICtBxjb wiUQ==
X-Received by 10.14.108.134 with SMTP id q6mr1488887eeg.96.1387530055918; Fri, 20 Dec 2013 01:00:55 -0800 (PST)
Date Fri, 20 Dec 2013 10:00:52 +0100
From Andreas Perstinger <andipersti@gmail.com>
To python-list@python.org
Subject Re: PDFMiner install question
In-Reply-To <5460059c-c805-40e3-bd3c-ac2ca677f0f7@googlegroups.com>
References <0322a155-42ba-459b-8cac-fded7c12ba60@googlegroups.com> <mailman.4310.1387312378.18130.python-list@python.org> <89e3b06c-90d7-4cc5-8367-03c916a4dfcb@googlegroups.com> <472d91fe-2ddb-4a78-8a44-6b171f436903@googlegroups.com> <mailman.4313.1387323018.18130.python-list@python.org> <5460059c-c805-40e3-bd3c-ac2ca677f0f7@googlegroups.com>
X-Mailer Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4432.1387530057.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1387530057 news.xs4all.nl 2910 [2001:888:2000:d::a6]:47704
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62430

Show key headers only | View raw


Jason Mellone <jason.mellone@gmail.com> wrote:
>I get the following error:
>PS C:\USERS\Python27> .\python.exe .\MyTest.py
>Traceback (most recent call last):
>  File ".\MyTest.py", line 4, in <module>
>    from pdfminer.pdfpage import PDFTextExtractionNotAllowed
>ImportError: cannot import name PDFTextExtractionNotAllowed
>
>
>If I run commenting out the import of "PDFTextExtractionNotAllowed" it
>runs without a problem. Quite odd.

According to the latest version on Github,
"PDFTextExtractionNotAllowed" was moved into the "PDFPage" class, but
the sample code in the docs was obviously not updated.

https://github.com/euske/pdfminer/blob/master/pdfminer/pdfpage.py

So just leave out that line and if you need that exception use
"PDFPage.PDFTextExtractionNotAllowed" instead of
"PDFTextExtractionNotAllowed".

Bye, Andreas

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

PDFMiner install question Jason Mellone <jason.mellone@gmail.com> - 2013-12-17 12:06 -0800
  Re: PDFMiner install question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 20:27 +0000
  Re: PDFMiner install question MRAB <python@mrabarnett.plus.com> - 2013-12-17 20:32 +0000
    Re: PDFMiner install question Jason Mellone <jason.mellone@gmail.com> - 2013-12-17 12:53 -0800
      Re: PDFMiner install question Jason Mellone <jason.mellone@gmail.com> - 2013-12-17 12:59 -0800
        Re: PDFMiner install question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-17 22:03 +0000
        Re: PDFMiner install question MRAB <python@mrabarnett.plus.com> - 2013-12-17 23:30 +0000
          Re: PDFMiner install question Jason Mellone <jason.mellone@gmail.com> - 2013-12-19 11:36 -0800
            Re: PDFMiner install question MRAB <python@mrabarnett.plus.com> - 2013-12-19 21:18 +0000
            Re: PDFMiner install question Andreas Perstinger <andipersti@gmail.com> - 2013-12-20 10:00 +0100

csiph-web