Re: Running lpr on windows from python

2016-04-22 Thread eryk sun
On Fri, Apr 22, 2016 at 10:07 AM, loial wrote: > I finally found the solution here : > > http://www.tomshardware.co.uk/forum/240019-44-error-windows > > Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the > sysWOW64 folder Using the virtual

Re: Running lpr on windows from python

2016-04-22 Thread loial
I finally found the solution here : http://www.tomshardware.co.uk/forum/240019-44-error-windows Copied lpr.exe, lprhelp.dll, and lprmonui.dll from the System32 folder to the sysWOW64 folder Thanks for all your efforts -- https://mail.python.org/mailman/listinfo/python-list

Re: Running lpr on windows from python

2016-04-22 Thread loial
Nothing seems to work. Even doing import os os.system("lpr") still returns 'lpr' is not recognized as an internal or external command,operable program or batch file. Even though I can run lpr fine from the command prompt -- https://mail.python.org/mailman/listinfo/python-list

Re: Running lpr on windows from python

2016-04-20 Thread eryk sun
On Wed, Apr 20, 2016 at 9:58 AM, Tim Golden wrote: > 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). WOW64 in Windows 7+ has a virtual "SysNative" directory that accesses the native 64-bit

Re: Running lpr on windows from python

2016-04-20 Thread Stephen Hansen
On Wed, Apr 20, 2016, at 06:57 AM, loial wrote: > process = subprocess.Popen(commandline, shell=True, > stdout=subprocess.PIPE, stderr=subprocess.PIPE) > > where command line is > C:/windows/system32/lpr.exe -S 172.28.84.38 -P RAW C:/john/myfile Try making command line: commandline =

Re: Running lpr on windows from python

2016-04-20 Thread Tim Golden
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

Re: Running lpr on windows from python

2016-04-20 Thread loial
I get the same issue if I just specify "lpr" rather than a full path, i.e. it works from the command prompt(with forward slashes), but not from python -- https://mail.python.org/mailman/listinfo/python-list

Re: Running lpr on windows from python

2016-04-20 Thread loial
As I said, the lpr command works fine from the command prompt but not from python. Everything is 64-bit (windows server 2012). -- https://mail.python.org/mailman/listinfo/python-list

Re: Running lpr on windows from python

2016-04-20 Thread Tim Golden
On 20/04/2016 14:57, loial wrote: > I am trying to run lpr from python 2.7.10 on windows > > However I always get the error > 'C:/windows/system32/lpr.exe ' is not recognized as an internal or external > command, > operable program or batch file. > > Even though typing the same at the command

Re: Running lpr on windows from python

2016-04-20 Thread Random832
On Wed, Apr 20, 2016, at 09:57, loial wrote: > I am trying to run lpr from python 2.7.10 on windows > > However I always get the error > 'C:/windows/system32/lpr.exe ' is not recognized as an internal or > external command, > operable program or batch file. > > Even though typing the same at the

Re: Running lpr on windows from python

2016-04-20 Thread Chris Angelico
On Wed, Apr 20, 2016 at 11:57 PM, loial wrote: > I am trying to run lpr from python 2.7.10 on windows > > However I always get the error > 'C:/windows/system32/lpr.exe ' is not recognized as an internal or external > command, > operable program or batch file. > > Even

Running lpr on windows from python

2016-04-20 Thread loial
I am trying to run lpr from python 2.7.10 on windows However I always get the error 'C:/windows/system32/lpr.exe ' is not recognized as an internal or external command, operable program or batch file. Even though typing the same at the command prompt works OK Any ideas? I am using