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


Groups > comp.lang.python > #107416

Re: Running lpr on windows from python

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Tim Golden <mail@timgolden.me.uk>
Newsgroups comp.lang.python
Subject Re: Running lpr on windows from python
Date Wed, 20 Apr 2016 15:58:38 +0100
Lines 18
Message-ID <mailman.30.1461164321.12923.python-list@python.org> (permalink)
References <7ec37d41-61eb-4c93-ae21-28d108c261f1@googlegroups.com> <7a7e2d01-fcf3-4f14-9531-f19a96700cf3@googlegroups.com> <5717991E.70309@timgolden.me.uk>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 1InitnyySjGtcOxWil1WvwiQ+aXRdPA+WAKYqkMoNYAw==
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python': 0.10; 'python.': 0.11; 'subject:python': 0.14; '(windows': 0.16; 'access).': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:windows': 0.16; 'tjg': 0.16; 'wrote:': 0.16; 'not,': 0.22; '64-bit': 0.22; '(or': 0.23; 'installation': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'command': 0.26; 'said,': 0.27; 'fine': 0.28; "i'm": 0.30; 'print': 0.30; 'that.': 0.30; 'server': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:p 20': 0.38; 'copying': 0.38; 'sure': 0.39; 'subject:from': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'charset:windows-1252': 0.62; 'from:addr:mail': 0.70; 'miss': 0.77; 'prompt': 0.79
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
In-Reply-To <7a7e2d01-fcf3-4f14-9531-f19a96700cf3@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <5717991E.70309@timgolden.me.uk>
X-Mailman-Original-References <7ec37d41-61eb-4c93-ae21-28d108c261f1@googlegroups.com> <7a7e2d01-fcf3-4f14-9531-f19a96700cf3@googlegroups.com>
Xref csiph.com comp.lang.python:107416

Show key headers only | View raw


On 20/04/2016 15:21, loial wrote:
> As I said, the lpr command works fine from the command prompt but not from python.

Sorry; I did miss that.

> Everything is 64-bit (windows server 2012).
> 

Is the Python installation also 64-bit?

c:\python27\python.exe -c "import platform; print platform.architecture()"

If it is, then I'm not sure what's going on.

If it's not, then try copying the lpr.exe to c:\windows\syswow64 and try
again. (Or to some other place to which you have access).

TJG

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


Thread

Running lpr on windows from python loial <jldunn2000@gmail.com> - 2016-04-20 06:57 -0700
  Re: Running lpr on windows from python Chris Angelico <rosuav@gmail.com> - 2016-04-21 00:07 +1000
    Re: Running lpr on windows from python loial <jldunn2000@gmail.com> - 2016-04-20 07:25 -0700
  Re: Running lpr on windows from python Tim Golden <mail@timgolden.me.uk> - 2016-04-20 15:08 +0100
  Re: Running lpr on windows from python Random832 <random832@fastmail.com> - 2016-04-20 10:09 -0400
  Re: Running lpr on windows from python loial <jldunn2000@gmail.com> - 2016-04-20 07:21 -0700
    Re: Running lpr on windows from python Tim Golden <mail@timgolden.me.uk> - 2016-04-20 15:58 +0100
    Re: Running lpr on windows from python eryk sun <eryksun@gmail.com> - 2016-04-20 22:10 -0500
  Re: Running lpr on windows from python Stephen Hansen <me+python@ixokai.io> - 2016-04-20 14:01 -0700
  Re: Running lpr on windows from python loial <jldunn2000@gmail.com> - 2016-04-22 04:30 -0700
    Re: Running lpr on windows from python loial <jldunn2000@gmail.com> - 2016-04-22 08:07 -0700
      Re: Running lpr on windows from python eryk sun <eryksun@gmail.com> - 2016-04-22 12:04 -0500

csiph-web