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


Groups > comp.lang.python > #62244

Re: PDFMiner install question

Date 2013-12-17 23:30 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: PDFMiner install question
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>
Newsgroups comp.lang.python
Message-ID <mailman.4313.1387323018.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 17/12/2013 20:59, Jason Mellone wrote:> On Tuesday, December 17, 2013 
3:53:24 PM UTC-5, Jason Mellone wrote:
 >> On Tuesday, December 17, 2013 3:32:56 PM UTC-5, MRAB wrote:
 >>> On 17/12/2013 20:06, Jason Mellone wrote:
 >>>> Hello,
 >>>>
 >>>> I have python up and running using the exact setup as recommended 
by http://learnpythonthehardway.org/
 >>>>
 >>>> I am now trying to use pdfminer.
 >>>>
 >>>> I have python here:
 >>>> C:\USERS\Python27
 >>>>
 >>>> using "import os", i am able to cwd to C:\users\python where i 
have C:\users\python\pdfminer-master\.
 >>>>
 >>>> when i navigate to the child directory and run "setup.py install" 
i get the following issue:
 >>>>
 >>>>>>> setup.py install
 >>>>     File "<stdin>", line 1
 >>>>       setup.py install
 >>>>                      ^
 >>>>
 >>>> i have no idea why, any input?
 >>>>
 >>>> thanks!
 >>>>
 >>> Do you really have the ">>>" prompt? If yes, then you're asking Python
 >>> to run a console (OS) command.
 >>>
 >>> You should be running "setup.py install" in a console ("Command
 >>> Prompt") window, something like:
 >>>
 >>> cd C:\users\python\pdfminer-master
 >>> C:\USERS\Python27\python.exe \setup.py install
 >>
 >> ok makes sense.
 >>
 >> i am running now from command line and get the following:
 >>
 >> P:\>C:\USERS\Python27\python.exe 
C:\users\Python27\pdfminer-master\setup.py inst
 >> all
 >> running install
 >> running build
 >> running build_py
 >> error: package directory 'pdfminer' does not exist
 >>
 >> P:\>
 >
 > also this is my dir:
 > P:\>dir C:\users\python27\pdfminer-master
 >   Volume in drive C has no label.
 >   Volume Serial Number is B825-02BA
 >
 >   Directory of C:\users\python27\pdfminer-master
 >
 > 17/12/2013  02:55 PM    <DIR>          .
 > 17/12/2013  02:55 PM    <DIR>          ..
 > 17/12/2013  02:48 PM    <DIR>          cmaprsrc
 > 17/12/2013  02:48 PM    <DIR>          docs
 > 26/11/2013  04:35 AM             1,723 Makefile
 > 26/11/2013  04:35 AM               111 MANIFEST.in
 > 17/12/2013  03:49 PM    <DIR>          pdfminer
 > 26/11/2013  04:35 AM             5,311 README.md
 > 17/12/2013  02:48 PM    <DIR>          samples
 > 26/11/2013  04:35 AM             1,384 setup.py
 > 17/12/2013  02:48 PM    <DIR>          tools
 >                 4 File(s)          8,529 bytes
 >                 7 Dir(s)  26,006,282,240 bytes free
 >
 > P:\>
 >
The prompt shows that the current directory is P:\.

On Windows, each drive has its own current directory, so you have to
set the default drive too.

I think this should do it:

C:
cd C:\users\Python27\pdfminer-master
C:\USERS\Python27\python.exe setup.py inst

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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