Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article <[EMAIL PROTECTED]>, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > >TS> I set PYTHONPATH to > >TS> System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 > > Why would you do that? Don't know, as it's not clear (to me) from the documentation whether PYTHONPATH has to

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > If you don't get an answer here, you should try the wxPython mailing > list: > http://www.wxpython.org/maillist.php > I'm sure they'll be able to help you out (I don't have a Mac, so I > don't know). OK, will try there. Thanks. -- http

Getting wxPython to work on a Mac

2007-12-04 Thread Timothy Smith
Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what should be the latest binary, and it installed without error. So Python comes up as $ python -V Pytho

Re: FtpUtils Progress Bar

2006-09-13 Thread Timothy Smith
[EMAIL PROTECTED] wrote: > Hi, > I can successfully upload and download files using Stefan's Schwarzer's > ftputil script. > > The problem is that as some of the files are quite large you cannot see > how much has been downloaded/uploaded. > Even a percentage or just dots going across the screen wo

threads and return values

2006-09-13 Thread Timothy Smith
say i'm issuing t = Thread(target=lambda: WeeklyReportPDF.MakeReport(self.UserNameValue, self.PassWordValue,ReportType,self.db)) t.start() which works just fine, BUT how do i get access to the return value of WeeklyReportPDF.MakeReport() ?? -- http://mail.python.org/mailman/listinfo/python-li

Re: sending bytes to parallel port

2006-07-29 Thread Timothy Smith
Diez B. Roggisch wrote: >> *sigh* >> if only pyparallel would install >> > > *sigh* If only you said _what_ failed we could maybe help you make it > work... :) > > Diez > titan# python setup.py install running install running build running build_py Traceback (most recent call last): File

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Diez B. Roggisch wrote: >> >>> fd = open('/dev/ppi0','w') >> >>> fcntl.ioctl(fd.fileno(),'PPISCTRL',1000) >> Traceback (most recent call last): >> File "", line 1, in ? >> TypeError: an integer is required >> >> i guess i'm failing to properly define the int i need for the 8byte >> value in

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Dennis Lee Bieber wrote: > On Sat, 29 Jul 2006 13:59:02 +1000, Timothy Smith > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> and yes i've done quite a bit of googling, i never expected it to be >> this difficult. i've done work

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-29, Grant Edwards <[EMAIL PROTECTED]> wrote: > > >> I'd particularly recommend taking a look at the pyparallel >> module found here: >> >> http://pyserial.sourceforge.net/ >> > > Oops, there isn't actually a link to pyparallel from that page > (I swear th

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: > > >> i've been trying to send an 8 byte string to my parallel port >> under freebsd. the purpose is it to control a relay board. the >> board simply responds to the o

sending bytes to parallel port

2006-07-28 Thread Timothy Smith
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from the port. eg. 0001 will set pin 1 high and flick the relay open. todate i've attempted this with mer

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Timothy Smith
Paul McNett wrote: >[EMAIL PROTECTED] wrote: > > >>1) >>Laptop wired, client >>Desktop wired, server >>GREAT! >>webpage served in 2 seconds >> >>2) >>Laptop wired, server >>Deskop wired, client >>GREAT! >>webpage served in 2 seconds >> >>3) >>Laptop wireless, client >>Desktop wireless, server >>

Re: Python obfuscation

2005-11-10 Thread Timothy Smith
> Reliability is >important but so is protecting your code in an effective manner > > there is no way to prevent people disassembling your code compiled or otherwise. once you give then the program they can easily take it apart. no if's, no but's; do NOT rely on binary's for security. > >the

Re: non descriptive error

2005-10-11 Thread Timothy Smith
Fredrik Lundh wrote: >Timothy Smith wrote: > > >>i have reproduced the error in this code block >> >>#save values in edit >>self.FinaliseTill.SaveEditControlValue() >>if >>Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()][&#

Re: non descriptive error

2005-10-09 Thread Timothy Smith
Neil Hodgson wrote: >Timothy Smith: > > > >>FYI i have located where the problem was. in the first if statement >>there was an unbalanced ). now since when does python not give a >>descriptive error for that? >> >> > >I see this with the

Re: non descriptive error

2005-10-09 Thread Timothy Smith
[EMAIL PROTECTED] wrote: >On Mon, Oct 10, 2005 at 09:12:13AM +1000, Timothy Smith wrote: > > >>FAYI i have already found it and it was a wrongly indented code block :/ >> >> > >When indentation leaves an illegal program structure, Python gives a very &g

Re: non descriptive error

2005-10-09 Thread Timothy Smith
Timothy Smith wrote: >i have reproduced the error in this code block > >#save values in edit > self.FinaliseTill.SaveEditControlValue() > if >Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalanc

Re: non descriptive error

2005-10-09 Thread Timothy Smith
i have reproduced the error in this code block #save values in edit self.FinaliseTill.SaveEditControlValue() if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): #box must be ch

Re: non descriptive error

2005-10-09 Thread Timothy Smith
Terry Hancock wrote: >On Thursday 06 October 2005 11:57 pm, Timothy Smith wrote: > > >>i try to run my app and i get this >> >>%python DutyShift.py >>error >> >>thats it. thats the error. mya pp was previously working, and i did make >>som

non descriptive error

2005-10-06 Thread Timothy Smith
i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more descriptive message then just "error". anyidea where i need to start looking? -- http://mail.python.org

Re: catching all tracebacks

2005-10-05 Thread Timothy Smith
Timothy Smith wrote: >iw ant to use a singel try except statment with my main app loop in the >middle and catch all tracebacks and email them to myself as a bug >report. however it seems a little more tricky then i thought > >try: >Main.Main() >except Exception, er

catching all tracebacks

2005-10-05 Thread Timothy Smith
iw ant to use a singel try except statment with my main app loop in the middle and catch all tracebacks and email them to myself as a bug report. however it seems a little more tricky then i thought try: Main.Main() except Exception, err_o: print err_o.__class__.__name__, '//', err_o, '/

Re: services on linux

2005-09-20 Thread Timothy Smith
Martin Franklin wrote: >Christoph Haas wrote: > > >>On Tue, Sep 20, 2005 at 02:57:26AM -0500, pt python wrote: >> >> >> >>>im moving from the windows world to the linux world and i need to make >>>a python script to see if a service is instaled (ex: apache), if it is >>>running or stoped and

Re: OCR librarys

2005-09-12 Thread Timothy Smith
Larry Bates wrote: >You need to specify a "platform" you will be running on. I've had >good experience with ExperVision's RTK toolkit on Windows. It is not >free, but it is very, very good. Sometimes software is actually >worth paying for ;-). > &g

OCR librarys

2005-09-12 Thread Timothy Smith
i'm looking for ocr librarys with reasonably free licensing and the ablity to use python with them. c library's that i can call from python are acceptable. so far all i have run into is voodoo and wild claims. i've tried gocr, and it wasn't very impressive. i'm like to be able to ocr handwriting

Re: startfile problems

2005-08-02 Thread Timothy Smith
Michael Hoffman wrote: >Timothy Smith wrote: > > > >>yep the program is executed in the same dir as the pdf file. like i said >>it actually opens it, but throws up an exception as well. >> >> > >You are far more likely to get informed help if

Re: startfile problems

2005-08-02 Thread Timothy Smith
Dennis Lee Bieber wrote: >On Tue, 02 Aug 2005 17:35:27 +1000, Timothy Smith ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > >>it's iterally just >> >>PDFname = 'tmp.pdf' >>os.startfile(PDFname) >> &

Re: startfile problems

2005-08-02 Thread Timothy Smith
Dennis Lee Bieber wrote: >On Tue, 02 Aug 2005 15:10:23 +1000, Timothy Smith ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > >>i'm very curious as to what everyone thinks >> >> > > I suspect most of us think:

startfile problems

2005-08-01 Thread Timothy Smith
hello i have a very odd issue with os.startfile() ok basicly my app works perfectly on every single other pc todate. i cannot recreate this issue on any system. so i've already ruled out any obvious coding issues, such as wrong file names etc. this issue only occurs on this one old pc. upon tr

multi threading and win9x

2005-06-20 Thread Timothy Smith
i want to run my sql statements on a seperate thread to prevent my app from stop responding to input (atm is says "not responding" under windows until the sql is finished) but i'm hesitant because i have to still support win9x and i'm not sure how well this will play. -- http://mail.python.org/

decimal and trunkating

2005-06-02 Thread Timothy Smith
i want to trunkate 199.999 to 199.99 getcontext.prec = 2 isn't what i'm after either, all that does is E's the value. do i really have to use floats to do this? -- http://mail.python.org/mailman/listinfo/python-list

Re: query progress bar

2005-05-17 Thread Timothy Smith
Bernhard Holzmayer wrote: >Timothy Smith wrote: > > > >>i'm using pypgsql >> >> > >Assuming you work with PostgreSQL, then: >You know the EXPLAIN command? > >EXPLAIN will give you a very accurate estimation for the expense for the >query

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Ivan Voras wrote: >Paul Rubin wrote: > > > >>>your active code is then in some library.zip shared between the >>>three, and you need never change alice.exe, bob.exe, and carol.exe >>> >>> >>I think I understand what you're saying and it sounds like a very >>good idea. Thanks. >> >> >

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Toby Dickenson wrote: >On Tuesday 17 May 2005 09:35, Timothy Smith wrote: > > >>mate dont bugger around with all that. py2exe will make you a windows >>native exe to run. and for updates you just need to update it's >>library.zip. >> &g

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Paul Rubin wrote: >Bernhard Holzmayer <[EMAIL PROTECTED]> writes: > > >>I can feel your unhappiness, and I share it. Hi Paul! >>Here are some hints... >> >> > >Thanks! ;-) > > > >>Since your installer needs to run before Python is installed, you need >>something else. Go to http://www.wis

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Paul Rubin wrote: >As what must be penance for something or other, I'm needing to release >a Python app for use under Windows XP. Please be gentle with me since >I'm a Un*x weenie and the only thing I've had much practice with under >Windows is rebooting it. > >My app contains three different pro

Re: query progress bar

2005-05-16 Thread Timothy Smith
Harald Massa wrote: >>it's for wx, the problem isn't making the progress bar itself, it's >>knowing how long the query is going to run for. >>i'm using pypgsql >> >> > >It is quite easy: > >from timemachine import oracle > >guesser=oracle(guess="SQL") >guesser.set_hint(driver="pypgsql") >gues

Re: query progress bar

2005-05-16 Thread Timothy Smith
[EMAIL PROTECTED] wrote: >What type of UI is this for? The Python Cookbook, 2nd Ed. has a nice >textual solution. I'm not sure if this is the same one, but here is href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/168639";>one >from ASPN. Here is one href="http://wxpython.org/docs/api/

Re: Python on a public library computer

2005-05-16 Thread Timothy Smith
John J. Lee wrote: >"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > >>Here's my situation: >> >>I'm typing this in a public library on a computer with OS windows 2000 >>server. I can run Internet explorer, word, excel and powerpoint, that's >>it. Maybe java, but it seems to be flaky. >> >>

query progress bar

2005-05-16 Thread Timothy Smith
is it possible to mke a progress bar for queries? say i have a query that will take 20 seconds, i'd like to give some feed back to users on how long this will take. -- http://mail.python.org/mailman/listinfo/python-list

urllib download insanity

2005-05-11 Thread Timothy Smith
ok what i am seeing is impossible. i DELETED the file from my webserver, uploaded the new one. when my app logs in it checks the file, if it's changed it downloads it. the impossible part, is that on my pc is downloading the OLD file i've deleted! if i download it via IE, i get the new file. SO,

Re: sync dir's

2005-05-10 Thread Timothy Smith
Gerhard Haering wrote: >On Tue, May 10, 2005 at 05:21:30PM +1000, Timothy Smith wrote: > > >>i need something which has a python library, so far i haven't seen >>anything like that for rsync. i'll check out the others but >> >>

Re: sync dir's

2005-05-10 Thread Timothy Smith
Fredrik Lundh wrote: >Timothy Smith wrote: > > > >>what would be the best tool to use to sync my local dir with a remote >>one, say off a http resorce (although i'm open to other options there) i >> >> > >rsync? wget --mirror? > > > &

sync dir's

2005-05-09 Thread Timothy Smith
what would be the best tool to use to sync my local dir with a remote one, say off a http resorce (although i'm open to other options there) i haven't gotten any feed back on my problems with loading pysvn on win98, and i can apprechiate if the dev's are too busy/can't be bothered with win98. b

RE: py23-pysvn-svn114-1.2.0-415.exe << won't load on win98

2005-05-09 Thread Timothy Smith
hello there, i get the following error when attempting to load pysvn on a win98 system Traceback (most recent call last): > File "PubWare.py", line 11, in ? > File "Main.pyc", line 46, in ? > File "pysvn\__init__.pyc", line 12, in ? > File "pysvn\_pysvn.pyc", line 9, in ? > File "pysvn\_pysvn

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
vincent wehren wrote: >"Timothy Smith" <[EMAIL PROTECTED]> schrieb im Newsbeitrag >news:[EMAIL PROTECTED] >| Timothy Smith wrote: >| >| >this is truely maddening >| > >| >Traceback (most recent call last): >| > File "PubWare.py",

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
Timothy Smith wrote: >this is truely maddening > >Traceback (most recent call last): > File "PubWare.py", line 11, in ? > File "Main.pyc", line 46, in ? > File "pysvn\__init__.pyc", line 12, in ? > File "pysvn\_pysvn.pyc"

computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
this is truely maddening Traceback (most recent call last): File "PubWare.py", line 11, in ? File "Main.pyc", line 46, in ? File "pysvn\__init__.pyc", line 12, in ? File "pysvn\_pysvn.pyc", line 9, in ? File "pysvn\_pysvn.pyc", line 7, in __load ImportError: DLL load failed: A device att

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
David Bolen wrote: >Timothy Smith <[EMAIL PROTECTED]> writes: > > > >>what i do is as soon as the update is complete i close the app, but it >>still gives the error, i tried clear() after update and before it, it >>still got the same error. it's be nic

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
Just wrote: >In article <[EMAIL PROTECTED]>, > David Bolen <[EMAIL PROTECTED]> wrote: > > > >>Are you perhaps trying to update the zip file in-place while it is still >>being used by the application? I'm not sure that's a safe operation. >> >> > >I'm sure it's not :) > >[lots of useful hel

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
Timothy Smith wrote: >ok, i am updating my program from my svn - this works, however, i am >getting the following error when i close the program. the zip file >successfully updates, so i'm curious as to the meaning of this. > >Traceback (most recent call last): > File &

py2exe + svn - the final drama

2005-05-05 Thread Timothy Smith
ok, i am updating my program from my svn - this works, however, i am getting the following error when i close the program. the zip file successfully updates, so i'm curious as to the meaning of this. Traceback (most recent call last): File "Main.pyo", line 820, in ValidateLogin File "Main.py

Re: py2exe and library.zip

2005-05-05 Thread Timothy Smith
David Bolen wrote: >Peter Hansen <[EMAIL PROTECTED]> writes: > > > >>Do you know that Subversion has (as I understand it) a fairly >>intelligent binary file comparison routine, and it will (again, as I >>understand it) not transmit the entire contents of the zip file but >>would actually send on

Re: Py2Exe security

2005-05-05 Thread Timothy Smith
i used to work in a place that did this exact same thing. they attempted to hide passwords in source code. there is an even bigger problem with this then security of it in source - if someone comprimises the password, how are you going to change it quickly? all those systems will have to update the

utf encoding error

2005-05-04 Thread Timothy Smith
hi there, this one is in relation to my py2exe saga. when i compile a package using py2exe i get the error msg below, if i just run the py files it doesn't error, so i assume pysvn is trying to use something thats not being included in the build. only i have no idea where to start looking. Tra

Re: py2exe and library.zip

2005-05-04 Thread Timothy Smith
Peter Hansen wrote: >Timothy Smith wrote: > > >>Peter Hansen wrote: >> >> >>>Anything's possible. Maybe you could explain what you're actually >>>trying to accomplish (or the reasons) so we can better understand >>>where y

Re: py2exe and library.zip

2005-05-04 Thread Timothy Smith
Simon Brunning wrote: >On 5/4/05, Timothy Smith <[EMAIL PROTECTED]> wrote: > > >>Simon Brunning wrote: >> >> >>>The zip file is a generated artifact. I've always found it a good rule >>>of thumb that you should keep source artifacts in

Re: py2exe and library.zip

2005-05-03 Thread Timothy Smith
Peter Hansen wrote: >Timothy Smith wrote: > > >>is it possible instead of py2exe putting all library's in a zip file, to >>just put them in a sub dir? >> >> > >Anything's possible. Maybe you could explain what you're actually &

py2exe and library.zip

2005-05-02 Thread Timothy Smith
is it possible instead of py2exe putting all library's in a zip file, to just put them in a sub dir? -- http://mail.python.org/mailman/listinfo/python-list

pysvn install on freebsd

2005-04-16 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/Extension/B

pysvn install on freebsd

2005-04-15 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/Extension/B

Re: cross platform use of set locale

2005-03-23 Thread Timothy Smith
Serge Orlov wrote: Timothy Smith wrote: Serge Orlov wrote: Timothy Smith wrote: thats ok, but how do i get it to group thousands with a , ? and thats would mean i'd have to run everything through a formatter before i displayed it :/ it'd be nicer if i could just selec

Re: cross platform use of set locale

2005-03-23 Thread Timothy Smith
Serge Orlov wrote: Timothy Smith wrote: thats ok, but how do i get it to group thousands with a , ? and thats would mean i'd have to run everything through a formatter before i displayed it :/ it'd be nicer if i could just select a proper locale I think you're misusing loca

Re: cross platform use of set locale

2005-03-22 Thread Timothy Smith
Marc 'BlackJack' Rintsch wrote: In <[EMAIL PROTECTED]>, Timothy Smith wrote: hi there i need to set my locale so that when i output a number it's formatted with thousands grouped. the problem i've found is there doesn't seem to be very good cross platform sup

cross platform use of set locale

2005-03-22 Thread Timothy Smith
hi there i need to set my locale so that when i output a number it's formatted with thousands grouped. the problem i've found is there doesn't seem to be very good cross platform support for locales, even between unix's it's horrid. -- http://mail.python.org/mailman/listinfo/python-list

Re: fastest postgresql module

2005-03-17 Thread Timothy Smith
Leif B. Kristensen wrote: Timothy Smith skrev: my only issue with psycopg, is last time i looked they had no win32 port? Uh, in that case, maybe you should consider changing platform? 8^) my app has to be multiplatform, but i would gladly rip windows from the drives of every computer

Re: fastest postgresql module

2005-03-17 Thread Timothy Smith
Leif B. Kristensen wrote: Timothy Smith skrev: has anyone got some hard numbers on which pg access module is the fastest, i currently use pypgsql, but i can't help but feel it's a little slow. 3 seconds to connect, send one query, get th return data. i'm on a adsl 1.5mbit/25

fastest postgresql module

2005-03-17 Thread Timothy Smith
has anyone got some hard numbers on which pg access module is the fastest, i currently use pypgsql, but i can't help but feel it's a little slow. 3 seconds to connect, send one query, get th return data. i'm on a adsl 1.5mbit/256kbit link, the server is on a 10/10mbit, and i have a ping of 245ms

Re: locale support and 4.10

2005-03-05 Thread Timothy Smith
Martin v. Löwis wrote: Timothy Smith wrote: >>> locale.setlocale(locale.LC_NUMERIC, 'us') the exact same thing works under windows xp. do i have to compile it with locale support? No. You have to choose a locale name that is supported by your operating system (which appears t

locale support and 4.10

2005-03-04 Thread Timothy Smith
i'm trying to setlocale() on 4.10, and it appears the python package doesn't support this under 4.10. Python 2.3.3 (#2, Apr 28 2004, 22:48:37) [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(