[issue19459] Python does not support the GEORGIAN-PS charset

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.10.2021 10:44, Serhiy Storchaka wrote: > > Possible solutions (they can be combined): > > 1. Add support for the GEORGIAN-PS charset and all other encodings used in > libc (issue22679). The problem is that it is difficult to g

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Possible solutions (they can be combined): 1. Add support for the GEORGIAN-PS charset and all other encodings used in libc (issue22679). The problem is that it is difficult to get the official information about these encodings. 2. Falls back to utf-8

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-18 Thread STINNER Victor
'/home/vstinner/python/main/build/lib.linux-x86_64-3.11-pydebug', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized LookupError: unknown encoding: GEORGIAN-PS Current thread 0x7ff89b81d2c0 (most rec

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-18 Thread Tal Einat
Tal Einat added the comment: With recent versions of Python (e.g. 3.9) this no longer causes a crash. Python apparently falls back to UTF-8, at least on my system: $ LANG=ka_GE.georgianps python3.9 Python 3.9.7 (default, Sep 9 2021, 23:20:13) [GCC 9.3.0] on linux Type "help", "copyright",

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-04 Thread Blake Garretson
Creating a standalone, special-purpose program that does one thing really well seems doable for a beginner. What you are describing sounds much more involved than that though. Frankly, it is overwhelming. I would HIGHLY suggest looking into creating an extension/plugin for an existing

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-04 Thread Marko Rauhamaa
Grant Edwards : > Holy Cow. > > I'd like to build something just like the Brooklyn Bridge, only with > more lanes. Failed grandiose attempts make you into a better software developer. Successful grandiose attempts even more so! Always playing it safe condemns you to

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-04 Thread Grant Edwards
On 2015-10-04, Marko Rauhamaa wrote: > Grant Edwards : > >> Holy Cow. >> >> I'd like to build something just like the Brooklyn Bridge, only with >> more lanes. > > Failed grandiose attempts make you into a better software developer. > > Successful

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-03 Thread Michael Torrie
On 10/02/2015 02:23 PM, Kenneth L wrote: > No don't tell me what to do. I joined the military 3 years ago. You > wouldn't believe the stuff I wasn't able to do before but now I am. > You can keep your advice to yourself. I wasn't asking for something > simple. I was asking for a starting point.

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Chris Angelico
On Sat, Oct 3, 2015 at 2:41 AM, Kenneth L wrote: > I'm a graphic designer. I'm new to Python. I know html, css, alittle > actioscript and little javascript. I actually build an iOS using Flash. I > understand programming concepts I believe. > > I'd like to build a

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Grant Edwards
On 2015-10-02, Kenneth L wrote: > I'm a graphic designer. I'm new to Python. I know html, css, alittle > actioscript and little javascript. I actually build an iOS using > Flash. I understand programming concepts I believe. > I'd like to build a Illustrator/Photoshop like

Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like to build a Illustrator/Photoshop like program. Why, there are some features that I'd like to

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Laura Creighton
In a message of Fri, 02 Oct 2015 09:41:16 -0700, Kenneth L writes: >I'd like to build a Illustrator/Photoshop like program. Why, there are some features that I'd like to personally have. Example, randomizing the rotation, line height and sizing of text. You have to do this manually. It would

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
I tried to use gimp but as a photoshop user it was horrible. I was trying to like it. That is a great idea tearing down gimp. that is how I learn html and css. Breakin down websites. -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
Well 15 years ago when I was 15 I wanted to model cars in 3D. It took me 100 hours and 5-10 years but I can modeling a realistic vehicle and other objects in 3d. It was time consuming and challenging but it was worth it. And honestly I've used my 3d modeling skills to build displays and

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Random832
On Fri, Oct 2, 2015, at 14:27, Kenneth L wrote: > I tried to use gimp but as a photoshop user it was horrible. This is off-topic, but have you tried Gimpshop? -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Random832
And right after I posted this I found all the stuff mentioning someone had hijacked the name and added spyware... sorry... On Fri, Oct 2, 2015, at 14:57, Random832 wrote: > On Fri, Oct 2, 2015, at 14:27, Kenneth L wrote: > > I tried to use gimp but as a photoshop user it was horrible. > > This

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Bartc
On 02/10/2015 17:41, Kenneth L wrote: I actually build an iOS using Flash. What does that mean? That you built an Apple-like operating system using Flash? I'd like to build a Illustrator/Photoshop like program. You've probably got the message by now that that is not trivial. Maybe this

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Kenneth L
No don't tell me what to do. I joined the military 3 years ago. You wouldn't believe the stuff I wasn't able to do before but now I am. You can keep your advice to yourself. I wasn't asking for something simple. I was asking for a starting point. The 3d was to show you I've learned hard stuff

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Mark Lawrence
On 02/10/2015 18:39, Grant Edwards wrote: On 2015-10-02, Kenneth L wrote: I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Bartc
On 02/10/2015 21:23, Kenneth L wrote: And I didn't get that by going basic. Keep your advice Bartc. OK, I will. Although I'm now curious as to what advice you /do/ want. -- Bartc -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Ian Kelly
On Fri, Oct 2, 2015 at 12:27 PM, Kenneth L wrote: > I tried to use gimp but as a photoshop user it was horrible. I was trying to > like it. That is a great idea tearing down gimp. that is how I learn html and > css. Breakin down websites. What about Inkscape? It's a lot

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Mark Lawrence
On 02/10/2015 19:25, Kenneth L wrote: Well 15 years ago when I was 15 I wanted to model cars in 3D. It took me 100 hours and 5-10 years but I can modeling a realistic vehicle and other objects in 3d. It was time consuming and challenging but it was worth it. And honestly I've used my 3d

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Terry Reedy
vector-based. In any case, it can output .ps or .eps postscript files* and with an extension# .svg scalable vector graphics files. * They may or may not be readable by any other particular app. # I do not know how to install this, but have read that it exists. To get an intro to using tkinter, I

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread paul.hermeneutic
On Oct 2, 2015 12:31 PM, "Kenneth L" wrote: > I'm not sure about the plugin route. I'm not looking to build a plug, lol. Just a finger to point me where to go/start. Writing a plug-in for an existing open source project would be a good starting point to see how others have

[issue19459] Python does not support the GEORGIAN-PS charset

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19459 ___ ___ Python-bugs-list mailing list

Re: general ConfigParser question [PS]

2013-11-25 Thread Tim Chase
On 2013-11-25 18:29, Tim Chase wrote: On 2013-11-25 18:32, Rita wrote: I was wondering if the default ConfigParser can handle multi line strings (especially in the relate section) [Relate] data=parent process A child process B Parent process B child process C Yes, though I seem to

[issue19459] Fatal Python error: Py_Initialize: Unable to get the locale encoding: GEORGIAN-PS

2013-10-31 Thread Caolán McNamara
New submission from Caolán McNamara: LANG=ka_GE.georgianps /usr/bin/python3 Fatal Python error: Py_Initialize: Unable to get the locale encoding LookupError: unknown encoding: GEORGIAN-PS Aborted (core dumped) but with python-2.7.5 no crash... LANG=ka_GE.georgianps /usr/bin/python2 Python 2.7.5

[issue19459] Fatal Python error: Py_Initialize: Unable to get the locale encoding: GEORGIAN-PS

2013-10-31 Thread STINNER Victor
STINNER Victor added the comment: This bug was initially reported in LibreOffice: https://bugs.freedesktop.org/show_bug.cgi?id=68850 -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19459

[issue19459] Fatal Python error: Py_Initialize: Unable to get the locale encoding: GEORGIAN-PS

2013-10-31 Thread STINNER Victor
STINNER Victor added the comment: I found three georgian encodings: https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/charmaps/GEORGIAN-PS;h=64615ff4344d74ea0c70cfd7a6c6c8019afb884e;hb=HEAD https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/charmaps/GEORGIAN-ACADEMY;h

[issue19459] Python does not support the GEORGIAN-PS charset

2013-10-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Fatal Python error: Py_Initialize: Unable to get the locale encoding: GEORGIAN-PS - Python does not support the GEORGIAN-PS charset versions: +Python 3.4 ___ Python tracker rep

[issue19459] Python does not support the GEORGIAN-PS charset

2013-10-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +lemburg, loewis, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19459 ___

Re: Consolidate several lines of a CSV file with firewall rules [PS]

2013-10-11 Thread Tim Chase
On 2013-10-11 15:40, Tim Chase wrote: the dangling open-quotes on #1 that cause most CSV parsers to read until the subsequent line is read. And by subsequent line, I mean subsequent closing-quote of course. :-) -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Consolidate several lines of a CSV file with firewall rules [PS]

2013-10-11 Thread Starriol
On Friday, October 11, 2013 5:50:06 PM UTC-3, Tim Chase wrote: On 2013-10-11 15:40, Tim Chase wrote: the dangling open-quotes on #1 that cause most CSV parsers to read until the subsequent line is read. And by subsequent line, I mean subsequent closing-quote of course. :-)

Re: Consolidate several lines of a CSV file with firewall rules [PS]

2013-10-11 Thread Mark Lawrence
On 11/10/2013 22:22, Starriol wrote: On Friday, October 11, 2013 5:50:06 PM UTC-3, Tim Chase wrote: On 2013-10-11 15:40, Tim Chase wrote: the dangling open-quotes on #1 that cause most CSV parsers to read until the subsequent line is read. And by subsequent line, I mean subsequent

Re: How to find bad row with db api executemany()? (PS)

2013-03-29 Thread Tim Chase
On 2013-03-29 22:17, Tim Chase wrote: 2) Load into a temp table in testable batches, then do some sort of batch insert into your main table. Again, a quick google suggest the INSERT ... SELECT syntax[2] It looks like there's a corresponding REPLACE INTO ... SELECT syntax[1], as you mention

why ps/fname of a python interpreter changes across platforms?

2011-09-16 Thread keobox
Hello, I'm writing a little supervisor of some python scripts. To check if the scrips are running I'm using the ps -o pid,fname command on both RH Linux and solaris 10. All the scripts are launched using python script.py command, they are not launched with exec permissions. I don't know why

Re: why ps/fname of a python interpreter changes across platforms?

2011-09-16 Thread Steven D'Aprano
keobox wrote: Hello, I'm writing a little supervisor of some python scripts. To check if the scrips are running I'm using the ps -o pid,fname command on both RH Linux and solaris 10. All the scripts are launched using python script.py command, they are not launched with exec permissions

Fwd: why ps/fname of a python interpreter changes across platforms?

2011-09-16 Thread Yaşar Arabacı
-- Yönlendirilmiş ileti -- Kimden: Yaşar Arabacı yasar11...@gmail.com Tarih: 16 Eylül 2011 14:33 Konu: Re: why ps/fname of a python interpreter changes across platforms? Kime: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info For example, in arch linux, I had 3 different

Re: why ps/fname of a python interpreter changes across platforms?

2011-09-16 Thread Duncan Booth
keobox keo...@gmail.com wrote: I don't know why the fname of the python interpreter changes across platforms. I saw a isapytho in some solaris 10 platforms. I saw python2. in some Linux platforms. On most platforms the value is python. Why? It shows you part of the name of the program

Re: Programmatic Parsing of ps

2011-02-10 Thread bsergean
this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost. Thank you. cmn commands.getoutput Emile Also, consider using ps -eo pid,comm (or similar) instead of ps -ef - it should be easier to parse that way

Re: Programmatic Parsing of ps

2011-02-10 Thread James Mills
On Thu, Feb 10, 2011 at 4:58 AM, octopusgrabbus old_road_f...@verizon.net wrote: I have Python 2.6.6. I would like to get this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost. Have you checked out psutil (1

Re: Programmatic Parsing of ps

2011-02-10 Thread Dan Stromberg
this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost. Thank you. cmn commands.getoutput Emile Also, consider using ps -eo pid,comm (or similar) instead of ps -ef - it should be easier to parse

Programmatic Parsing of ps

2011-02-09 Thread octopusgrabbus
I have Python 2.6.6. I would like to get this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost. Thank you. cmn -- http://mail.python.org/mailman/listinfo/python-list

Re: Programmatic Parsing of ps

2011-02-09 Thread Emile van Sebille
On 2/9/2011 10:58 AM octopusgrabbus said... I have Python 2.6.6. I would like to get this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost. Thank you. cmn commands.getoutput Emile -- http://mail.python.org

Re: Programmatic Parsing of ps

2011-02-09 Thread Dan Stromberg
On Wed, Feb 9, 2011 at 11:15 AM, Emile van Sebille em...@fenx.com wrote: On 2/9/2011 10:58 AM octopusgrabbus said... I have Python 2.6.6. I would like to get this output ps -ef | grep 'fglgo csm' into a list. What is the best way to do that? I've been reading the documentation, and am lost

Re: strange subprocess behavior when calling ps

2010-11-19 Thread Alexander Gattin
Hello, On Wed, Nov 17, 2010 at 01:19:09AM -0800, Ned Deily wrote: As far as I know, COMMAND_MODE has no special meaning on other platforms UNIX_STD=2003 on HP-UX if anyone's interested... -- With best regards, xrgtn -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-18 Thread Jean-Michel Pichavant
it's better to just let the exception raise uncought. If you want to handle some errors, meaning you're kindof expecting them then add a explicit clause (like you did with KeyboardInterrupt). JM PS : except Exception : will catch most of the exceptions (all inheriting from that class). It's better

Re: strange subprocess behavior when calling ps

2010-11-18 Thread Roger Davis
Hi JM, Thank you very much for your followup explanation! Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Ned Deily
it with that single setting. I don't think this has any ill effects here with regard to ps, at least none I can detect at the moment, but wouldn't a perhaps safer solution be to do os.environ['COMMAND_MODE']= 'unix2003' prior to the Popen() to instead augment/correct the existing environment which

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Jean-Michel Pichavant
Roger Davis wrote: Hi all, [snip] Roger Davis # code follows #!/usr/bin/python import sys import subprocess def main(): psargs= [/bin/ps, -e] try: ps= subprocess.Popen(psargs, stdout=subprocess.PIPE, close_fds=True) psout

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Roger Davis
to just let the exception raise uncought. If you want to handle some errors, meaning you're kindof expecting them then add a explicit clause (like you did with KeyboardInterrupt). JM PS : except Exception : will catch most of the exceptions (all inheriting from that class). It's better than using

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Roger Davis
On Nov 16, 11:19 pm, Ned Deily n...@acm.org wrote: Interesting.  It appears that OS X 10.6 takes into account the ... Thanks very much for your thorough explanation, Ned! I think I've got what I need now. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Chris Rebert
In a more general manner, if something unexpected happens it's better to just let the exception raise uncought. If you want to handle some errors, meaning you're kindof expecting them then add a explicit clause (like you did with KeyboardInterrupt). JM PS : except Exception : will catch most

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Roger Davis
Thanks for the clarification on exceptions, Chris! Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: strange subprocess behavior when calling ps

2010-11-17 Thread Cameron Simpson
directly in a | Terminal window running tcsh. | | See man compat. What you are seeing is the difference between ps(1) | output in legacy mode, attempting to duplicate the old, non-POSIX | behavior from 10.3 days, or unix2003 mode. Terminal login sessions | are normally automatically started

strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file pid.py (whose first line is #!/usr/bin/python) and run it with the command

Re: strange subprocess behavior when calling ps

2010-11-16 Thread James Mills
On Wed, Nov 17, 2010 at 12:33 PM, Roger Davis r...@hawaii.edu wrote: Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Chris Rebert
On Tue, Nov 16, 2010 at 6:33 PM, Roger Davis r...@hawaii.edu wrote: Hi all, I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e'. When I save my code to the file

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
(/bin/ps) and a specific argument list (-e) and reading that command's output lines. Why should those output lines be different whether I use 2.6.1, 2.6.6 or 8.9.10 for that matter? In fact, this makes the problem that much worse -- the newer python 2.6.6 is the one producing the incorrect output

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Ned Deily
In article 55f26d5c-aba9-4892-9e2c-1caa9988e...@v23g2000vbi.googlegroups.com, Roger Davis r...@hawaii.edu wrote: I have encountered a strange problem with some code I am writing to search the system process list for certain running processes. I am using subprocess.Popen() to call '/bin/ps -e

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
Hi James, Thanks for the pointer to psutil. I actually did look around on python.org before coding this up to see if there was such a package available but there is not, at least not where I'm looking -- on the other hand, I can't find my car keys most of the time. I would really like to restrict

Re: strange subprocess behavior when calling ps

2010-11-16 Thread Roger Davis
it with that single setting. I don't think this has any ill effects here with regard to ps, at least none I can detect at the moment, but wouldn't a perhaps safer solution be to do os.environ['COMMAND_MODE']= 'unix2003' prior to the Popen() to instead augment/correct the existing environment which

PS.

2010-01-24 Thread Jan Kaliszewski
24-01-2010, 16:56:42 Jan Kaliszewski z...@chopin.edu.pl wrote: 24-01-2010, 16:28:26 Robert P. J. Day rpj...@crashcourse.ca wrote once again, probably a trivial question but i googled and didn't get an obvious solution. how to list the attributes of a *class*? dir(type(an_obj)) or

Re: Searching a file for multiple strings (PS)

2009-02-02 Thread gotbyrd
On Jan 31, 11:39 pm, Shawn Milochik sh...@milochik.com wrote: On Sat, Jan 31, 2009 at 3:00 PM, Tim Chase python.l...@tim.thechases.com wrote: I'm fairly new with python and am trying to build a fairly simple search script.  Ultimately, I'm wanting to search a directory of files for

Re: Searching a file for multiple strings (PS)

2009-02-01 Thread Shawn Milochik
On Sun, Feb 1, 2009 at 1:14 AM, John Machin sjmac...@lexicon.net wrote: On Feb 1, 3:39 pm, Shawn Milochik sh...@milochik.com wrote: Not to discourage the use of Python, but it seems that fgrep with the -f flag already does exactly what you want. If you're on Windows, you can get the Windows

Re: Searching a file for multiple strings (PS)

2009-02-01 Thread John Machin
On Feb 1, 7:34 pm, Shawn Milochik sh...@milochik.com wrote: On Sun, Feb 1, 2009 at 1:14 AM, John Machin sjmac...@lexicon.net wrote: On Feb 1, 3:39 pm, Shawn Milochik sh...@milochik.com wrote: Not to discourage the use of Python, but it seems that fgrep with the -f flag already does exactly

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Tim Chase
I'm fairly new with python and am trying to build a fairly simple search script. Ultimately, I'm wanting to search a directory of files for multiple user inputted keywords. I've already written a script that can search for a single string through multiple files, now I just need to adapt it to

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Shawn Milochik
On Sat, Jan 31, 2009 at 3:00 PM, Tim Chase python.l...@tim.thechases.com wrote: I'm fairly new with python and am trying to build a fairly simple search script. Ultimately, I'm wanting to search a directory of files for multiple user inputted keywords. I've already written a script that can

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread John Machin
On Feb 1, 3:39 pm, Shawn Milochik sh...@milochik.com wrote: Not to discourage the use of Python, but it seems that fgrep with the -f flag already does exactly what you want. If you're on Windows, you can get the Windows version of fgrep here: http://unxutils.sourceforge.net/ That URL is

M.I'5`Pers ecution - Four Years of MI 5 Persecut ion Pos ts on Inter net Newsgrou ps

2007-12-26 Thread eivmvmvm
Four Years of. MI5 Persecution Posts on Internet Newsgroups For approximately the first three. years of the MI5 persecution, from June 1990 until late 1992, I kept as quiet as possible, in. the hope that by not reacting, MI5s interest in me would. decrease and they would simply go away of their

Re: Generate report containing pdf or ps figures?

2007-05-18 Thread Grant Edwards
On 2007-04-23, Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). [...] Is there a PDF generation library that can place EPS or PDF figures on a page? I

Re: Generate report containing pdf or ps figures?

2007-05-01 Thread Ken Starks
Cameron Laird wrote: In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Cameron Laird [EMAIL PROTECTED] wrote: [...] I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF generation library that can place EPS or PDF

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Steve Holden
Cameron Laird wrote: In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Steve Holden [EMAIL PROTECTED] wrote: I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF generation library that can place EPS or PDF

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Steve Holden
Grant Edwards wrote: On 2007-04-24, Steve Holden [EMAIL PROTECTED] wrote: I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF generation library that can

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: . . . part of a Win32 application. You can pretty much except a Linux platform to have ghostscript available, but for Win32 users it'll have to be bundled.

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-04-24, Steve Holden [EMAIL PROTECTED] wrote: I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: In fairness to ReportLab I'd like to say that their *commercial* products can do everything the OP asks for and more besides, but unfortunately they are mostly targeted at the enterprise (read: big money) market. This

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, Cameron Laird [EMAIL PROTECTED] wrote: I can't even find any mention of a commercial version of ReportLab on the web site. The FAQ says ReportLib is available under the BSD license. Period. There are some other projects listed, but they don't appear to be relevent.

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread David Boddie
On Tuesday 24 April 2007 20:42, Cameron Laird wrote: I want to make sure we're all keeping up with each other, so I'll make explicit a couple of points, despite the risk of redundancy: A. Bundling GS is a little touchy, depending on what you mean by that. Check out its license. My

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread hlubenow
Grant Edwards wrote: On 2007-04-23, Kjell Magne Fauske [EMAIL PROTECTED] wrote: Is there a PDF generation library that can place EPS or PDF figures on a page? What about http://pybrary.net/pyPdf/ It does some very interesting things. But I'm not really sure, if it does what you're after.

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, David Boddie [EMAIL PROTECTED] wrote: However, it doesn't seem that either are capable of inserting the kinds of vector files you are using. It may be worth writing a quick and dirty PDF writer using an existing backend library, though I can imagine that the hard work would

Re: Generate report containing pdf or ps figures?

2007-04-24 Thread Grant Edwards
On 2007-04-24, hlubenow [EMAIL PROTECTED] wrote: Grant Edwards wrote: On 2007-04-23, Kjell Magne Fauske [EMAIL PROTECTED] wrote: Is there a PDF generation library that can place EPS or PDF figures on a page? What about http://pybrary.net/pyPdf/ It does some very interesting things.

Generate report containing pdf or ps figures?

2007-04-23 Thread Grant Edwards
I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right now the reports consist entire of these figures, so I just write the

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread Kjell Magne Fauske
On Apr 23, 6:30 pm, Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right now the

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread Grant Edwards
On 2007-04-23, Kjell Magne Fauske [EMAIL PROTECTED] wrote: Is there a PDF generation library that can place EPS or PDF figures on a page? If you are familiar with LaTeX, an easy solution would be to automatically generate a LaTeX document that includes your images. Yea, I've been using TeX

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread half . italian
On Apr 23, 9:30 am, Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right now the

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread infidel
On Apr 23, 9:30 am, Grant Edwards [EMAIL PROTECTED] wrote: I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right now the

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread Grant Edwards
On 2007-04-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF generation library that can place EPS or PDF

Re: Generate report containing pdf or ps figures?

2007-04-23 Thread Grant Edwards
On 2007-04-23, infidel [EMAIL PROTECTED] wrote: I've looked at ReportLab's documentation, but although it appears to be able to use bitmap images (e.g jpeg) it doesn't appear to be able to use vector images (EPS/PDF/SVG). Is there a PDF generation library that can place EPS or PDF figures

Saving PyOpenGl figures as ps

2007-02-11 Thread Frank
Hi, I installed pyopengl (opengl for python) on my linux box and everything works fine. But now I want to save the generated images as, e.g., ps or eps. How can I do that and how can I adjust the resolution (if necessary)? This is probably simple but for some reason I can not find out how to do

Re: Saving PyOpenGl figures as ps

2007-02-11 Thread Vasily Sulatskov
On Feb 12, 3:11 am, Frank [EMAIL PROTECTED] wrote: Hi, I installed pyopengl (opengl for python) on my linux box and everything works fine. But now I want to save the generated images as, e.g., ps or eps. How can I do that and how can I adjust the resolution (if necessary)? This is probably

Re: Saving PyOpenGl figures as ps

2007-02-11 Thread Mike C. Fletcher
Frank wrote: Hi, I installed pyopengl (opengl for python) on my linux box and everything works fine. But now I want to save the generated images as, e.g., ps or eps. How can I do that and how can I adjust the resolution (if necessary)? This is probably simple but for some reason I can

ps tkinter

2007-02-07 Thread yvesd
For a bit more help about my previous message (outlook bar) does anybody know how to reparent or change a widget(button)'s owner in tkinter ? here's my code that doesn't work : def inverse(self): if (self.texte==top): self.texte=bottom btn = self

Re: ps tkinter

2007-02-07 Thread Eric Brunel
On Wed, 07 Feb 2007 13:40:33 +0100, yvesd [EMAIL PROTECTED] wrote: For a bit more help about my previous message (outlook bar) does anybody know how to reparent or change a widget(button)'s owner in tkinter ? here's my code that doesn't work : def inverse(self): if

[Half-off] How to get textboxes (text blocks) from ps/pdf files?

2007-01-03 Thread durumdara
Hi! I need to get textboxes/textblocks from pdf files. I can convert them into ps. Is anyone knows about method, trick, routine to I can get the textboxes from ps or pdf? (Pythonic, COM, or command line solutions needed.) I need to redraw them into my application, and user can reorder them

'ps -A' command freezes Popen3

2005-08-31 Thread gao_bolin
Does anybody know why the following lines would freeze python [2.4.1 on Linux]: import popen2 a = popen2.Popen3('ps -A') a.wait() Thanks B. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >