Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'win32': 0.03; 'subject:skip:s 10': 0.05; 'tmp': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '.........': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:1 40': 0.16; 'subject:Opening': 0.16; 'subprocess': 0.16; 'wrote:': 0.16; 'windows': 0.20; 'machine': 0.21; 'bit': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'specify': 0.27; 'windows,': 0.29; '(c)': 0.29; '2009': 0.34; 'to:addr:python- list': 0.35; 'path': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'received:org': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'sure': 0.40; 'your': 0.60; 'more': 0.62; 'reserved.': 0.70; 'worth': 0.73; 'received:109': 0.75; '.....': 0.76; 'prompt': 0.79; '2.7.8': 0.84; 'becker': 0.84; 'subject:Using': 0.84; '2014,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robin Becker Subject: Re: Opening PDF Using subprocess.Popen Failing Date: Mon, 22 Jun 2015 11:55:04 +0100 References: <4857b9a4-386f-4ae4-861b-09a9564557c7@googlegroups.com> <7710dd71-6f37-4d1b-b868-bc233d4da3b7@googlegroups.com> <5587E48B.2040700@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 109.174.168.73 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <5587E48B.2040700@chamonix.reportlab.co.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1434970521 news.xs4all.nl 2836 [2001:888:2000:d::a6]:48265 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93000 On 22/06/2015 11:33, Robin Becker wrote: > ..... > > Naftali, > > I ran the following from python prompt > ........ > > for what it's worth this also works on my machine > Windows PowerShell > Copyright (C) 2009 Microsoft Corporation. All rights reserved. > > PS C:\Users\rptlab> cd tmp > PS C:\Users\rptlab\tmp> python > Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> import subprocess >>>> subprocess.Popen(['C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe','/n','thello.pdf']) > >>>> not sure if you are using 64bits or 32bit windows, but perhaps you just need to specify the full path to your AcroRd32.exe. -- Robin Becker