Re: Subprocess Call works on Windows, but not Ubuntu

2010-11-23 Thread Brett Bowman
Ah, that fixed it. Thank you. On Tue, Nov 23, 2010 at 11:37 AM, Chris Rebert wrote: > On Tue, Nov 23, 2010 at 11:28 AM, Brett Bowman wrote: > > I ran into an interesting problem trying to spawn a subprocess, so I > thought > > I'd ask if the experts could explain it

Subprocess Call works on Windows, but not Ubuntu

2010-11-23 Thread Brett Bowman
I ran into an interesting problem trying to spawn a subprocess, so I thought I'd ask if the experts could explain it to me. I'm spawning a subprocess to run "pdf2txt.py", which is a tool that is distributed with PDFminer to do moderately advanced text-dumps of PDFs. Yet when I run the same code o

Re: Cannot Remove File: Device or resource busy

2010-11-17 Thread Brett Bowman
ov 16, 2010 at 11:25 PM, Dennis Lee Bieber wrote: > On Tue, 16 Nov 2010 17:37:10 -0800, Brett Bowman > declaimed the following in gmane.comp.python.general: > > > > > And then I test the result: > > try: > > pdf_handle = open(outputFile, "rb")

Cannot Remove File: Device or resource busy

2010-11-16 Thread Brett Bowman
age - the standard error message from rm and if I use: cwd = os.getcwd() os.remove(cwd + "\\" + pdfFile) I get "WindowsError: [Error 32]" saying much the same thing. What am I missing? Any suggestions would be appreciated. Details: Python 2.6 Windows XP Sincerely, Brett Bowman -- http://mail.python.org/mailman/listinfo/python-list

Fixing PDF EOF Errors with PyPDF

2010-11-14 Thread Brett Bowman
ully with Adobe Acrobat Reader. Is this code inorrect or is there some other way to correct this error? Or does the code depend on the system? (I'm using Windows XP, but I believe the author was using a *nix) Sincerely, Brett Bowman -- http://mail.python.org/mailman/listinfo/python-list

Re: Copy Protected PDFs and PIL

2010-11-12 Thread Brett Bowman
hich prints the following: 1 2 3 4 5 FATAL PDF disallows copying Any help or suggestions would be appreciated. /b/ On Thu, Nov 11, 2010 at 12:28 PM, Brett Bowman wrote: > I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs

Re: Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
Windows currently, though I also have a Linux box running Ubuntu if need be. On Thu, Nov 11, 2010 at 12:28 PM, Brett Bowman wrote: > I'm trying to parse some basic details and a thumbnail from ~12,000 PDFs > for my company, but a few hundred of them are copy protected. To make >

Copy Protected PDFs and PIL

2010-11-11 Thread Brett Bowman
dies. An automated way to snap a picture of the PDFs would be ideal, but I'd settle for a way to skip over them without crashing my program. Any tips? Brett Bowman Bioinformatics Associate Cibus LLC -- http://mail.python.org/mailman/listinfo/python-list

Re: where is the Write method of ElementTree??

2008-05-23 Thread gray . bowman
On May 23, 3:22 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I'm messing around with trying to write an xml file using > > xml.etree.ElementTree. All the examples on the internet show the use > > of ElementTree.write(), although when I try to use it it's not > > avai

where is the Write method of ElementTree??

2008-05-22 Thread gray . bowman
I'm messing around with trying to write an xml file using xml.etree.ElementTree. All the examples on the internet show the use of ElementTree.write(), although when I try to use it it's not available, gives me ... ElementTree(sectionElement).write("section.xml") TypeError: 'module' object is n

Re: Best way to check if string is an integer?

2008-04-06 Thread bowman
Jorgen Grahn wrote: > [0] There would have been more if Python had supported hexadecimal > floating-point literals, like (I believe) C does. C99 does. On the other hand, it isn't a feature I sorely missed during the first 20 years or so of C's history, but you could always do some creative byte t

Re: urllib.urlopen and https question

2006-01-10 Thread bowman . joseph
That's what I get for scimming the documentation too quickly. Got it, thanks! For anyone else working on something similar, here is all I did... mind you, this is my first experience with python. # subclass of FancyURLopener so we can override the prompt_user_password method class DBCheckUrlOpen

urllib.urlopen and https question

2006-01-10 Thread bowman . joseph
Hi, I'm new to python. I've been handed the job of modifying a script we have here at work that pulls content from a zope site, to create static html. They wanted a check to make sure the database is up, while pulling, to avoid errors. I got it pretty much working how I want without any problems.

Re: Python syntax high-lighting and preservation on web

2005-06-30 Thread Ryan Bowman
http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html Ryan Bowman I get the feeling that the compiler just skips over all the comments... __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yah