Re: pyinstaller

2016-07-26 Thread Tom Brown
I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs and see if I can help if you have not solved it already. What is the issue you are having? -Tom On Jun 21, 2016 16:57, "Larry Martell" wrote: > Anyone here have any experience with pyinstaller? I am trying to use > it, b

Re: pthreads in C++ with embedded Python

2011-06-08 Thread Tom Brown
On Wed, Jun 8, 2011 at 2:11 PM, Jason Tackaberry wrote: > On 11-06-07 07:29 PM, Tom Brown wrote: > >> Any suggestions will be appreciated. >> > > Why are you calling PyEval_ReleaseLock() in the CmdThread constructor? > This looks suspicious. > > Also, I don&

pthreads in C++ with embedded Python

2011-06-07 Thread Tom Brown
Hi guys! I am trying to build a C++ application that uses pthreads and embedded python. I've simplified the problem down so that the Python code is a single class that subclasses from Queue. The main thread of the C++ application adds to the queue. A worker thread in the C++ application reads from

Re: building psycopg2 on windows using mingw, "cannot find -lpq"

2008-01-21 Thread Tom Brown
On Mon, 2008-01-21 at 01:57 -0800, GHUM wrote: > What am I missing? any hints? I use psycopg2 all the time on windows. I use the binary installer instead of source. Works great for me. -Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: dealing with binary files

2008-01-07 Thread Tom Brown
On Mon, 2008-01-07 at 11:57 -0200, Guilherme Polo wrote: > 2008/1/7, Gerardo Herzig <[EMAIL PROTECTED]>: > > Hi all. Im trying to read a binary data from an postgres WAL archive. > > If i make a > > xfile = open('filename', 'rb').xreadlines() > > line = xfile.next() > > > > i see this sort of thing

Re: google earth / pythoncom

2007-11-15 Thread Tom Brown
On Thu, 2007-11-15 at 18:09 +, John Walsh wrote: > Hi, > > I'd like to write a python script to control Google Earth, > and I've read that Google Earth provides a COM api, and that > Python has a COM module 'pythoncom'. > I think what you are looking for you can download from here: http://s

Re: How to Start

2007-09-13 Thread Tom Brown
On Thursday 13 September 2007 14:59, Michael R. Copeland wrote: >I've decided that Python is a language/environment I'd like to learn > (I've been a professional programmer for 45+ years), but I really don't > know where and how to start! I have a number of books - and am buying > some more -

Re: Python Database Apps

2007-09-11 Thread Tom Brown
On Monday 10 September 2007 19:52, [EMAIL PROTECTED] wrote: > Kindof a poll, kindof curiosity... > > What is your favorite python - database combination? I'm looking to > make an app that has a local DB and a server side DB. I'm looking at > python and sqlite local side and sql server side. > > A

Re: Subclassing zipfile (new style class)

2007-09-06 Thread Tom Brown
On Thursday 06 September 2007 16:15, Larry Bates wrote: > I'm trying to learn about subclassing new style classes and the first > project I went to do needs to subclass zipfile to add some methods. > > > Why does this: > > import zipfile > class walkZip(zipfile): > pass > > > if __name__ == "_

Re: why should I learn python

2007-09-06 Thread Tom Brown
On Thursday 06 September 2007 16:01, windandwaves wrote: > Hmmm, thank you all for your replies. I will do some research on the > net (i did some already, but because I am really not much of a > programmer, it is often too detailed for me). I have limited time, > but it does sound like something

Re: why should I learn python

2007-09-06 Thread Tom Brown
On Thursday 06 September 2007 15:44, Torsten Bronger wrote: > Hallöchen! > > Tom Brown writes: > > [...] Python has been by far the easiest to develop in. Some > > people might say it is not "real programming" because it is so > > easy. > > I can&#x

Re: why should I learn python

2007-09-06 Thread Tom Brown
On Thursday 06 September 2007 15:29, windandwaves wrote: > On Sep 7, 9:50 am, James Stroud <[EMAIL PROTECTED]> wrote: > > Seewww.python.org. Trust us all when we say that its the best. > > I get that feeling - yes. Question is: > > 1. what is it good for? > 2. why is it so good? > > I would love t

Re: why should I learn python

2007-09-06 Thread Tom Brown
On Thursday 06 September 2007 14:32, windandwaves wrote: > Can someone tell me why I should learn python? I am a webdeveloper, > but I often see Python mentioned and I am curious to find out what I > am missing out on. Ease of develpment. I write everything I can in python. If I can't do it in p

low level ethernet device access in linux

2007-08-31 Thread Tom Brown
Hi, I have a windows application, written in delphi, that communicates to our devices using raw ethernet frames. I am trying to port this application to linux using python. However, when I try to open a socket, I get this error: File "/home/tbrown/projects/discovery/trunk/comm.py", line 9, in

Re: How to fill a form

2006-08-14 Thread Tom Brown
On Monday 14 August 2006 20:43, Sulsa wrote: > On Tue, 15 Aug 2006 03:37:02 - > > Grant Edwards <[EMAIL PROTECTED]> wrote: > > On 2006-08-15, Sulsa <[EMAIL PROTECTED]> wrote: > > > I want to fill only one smiple form so i would like not to use > > > any non standard libraries. > > > > Then just

Re: serial ports, threads and windows

2006-08-09 Thread Tom Brown
On Wednesday 02 August 2006 16:02, Tom Brown wrote: > I've written a python app that r/w eight serial ports to control eight > devices using eight threads. This all works very nicely in Linux. I even > put a GUI on it using PyQt4. Still works nicely. > > Then I put the app on

serial ports, threads and windows

2006-08-02 Thread Tom Brown
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still works nicely. Then I put the app on on a virtual Windows machine running inside of vmware on the same

how do I make a class global?

2006-04-27 Thread Tom Brown
Hi, I thought it would be nifty to create a class that created other classes for me. The method below shows what I would like to do. The problem is that the class the method creates is local to the method. Is it possible to make the class visible in the global scope so I can import the module s

Re: installing PygreSQL and psychopg2 modules (a newbie question)

2005-11-03 Thread Tom Brown
On Wednesday 02 November 2005 14:10, Zlatko Matić wrote: > Hello. > I was trying to install PygreSQL and psychopg2 in order to use python > as front-end for PostgreSQL, on WIndows XP. When I tried to install > by calling setup.py from command prompt ("setup.py install"), in both > cases I had the s

subprocess.Popen and replacing the shell pipe line

2005-09-22 Thread Tom Brown
I need to chain together three linux commands and get the final output. I read the documentation for Popen in the subprocess module for replacing the shell pipe line. I followed the example and keep getting a 0 where I should be getting a 1. I am trying to do this: grep "Sep 22" /var/log/auth.

Re: How to use writelines to append new lines to an existing file

2005-09-22 Thread Tom Brown
On Thursday 22 September 2005 05:52, Nico Grubert wrote: > Does f = open('/tmp/myfile', 'w') overwrite the existing file or > does f.writelines('456') replace the first line in the existing file? Here's an excerpt from open.__doc__ The mode can be 'r', 'w' or 'a' for reading (default), w

Re: A brief question.

2005-07-02 Thread Tom Brown
On Saturday 02 July 2005 10:55, Nathan Pinno wrote: > Brief question for anyone who knows the answer, because I don't. Is > there anyway to make Python calculate square roots? from math import sqrt -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 service and sockets

2005-02-09 Thread Tom Brown
On Wednesday 09 February 2005 10:48, David Bolen wrote: > Tom Brown <[EMAIL PROTECTED]> writes: > > Well, I have found that it works if I launch the client on the same > > machine as the service. It will not work from a remote machine. Any > > ideas? > > Since yo

Re: win32 service and sockets

2005-02-09 Thread Tom Brown
On Tuesday 08 February 2005 16:41, Tom Brown wrote: > Hi, > > I created a win32 service for XPPro called N4010ATestService.py (see > below). The service runs as a particular user with administrative rights. > It starts a thread that creates a simple socket server > (N4010ASocke

win32 service and sockets

2005-02-08 Thread Tom Brown
Hi, I created a win32 service for XPPro called N4010ATestService.py (see below). The service runs as a particular user with administrative rights. It starts a thread that creates a simple socket server (N4010ASocketServer.py -- also below) that just waits for 20 character string. When I run the

Re: how to send an int over a socket

2005-02-04 Thread Tom Brown
On Friday 04 February 2005 18:27, Tom Brown wrote: > Hi, > > I have what seems to be a simple problem. But I can not for the life of me > find a way to send an integer over a socket. The send method will only > accept strings. Here is what I am trying to do: > > testme

how to send an int over a socket

2005-02-04 Thread Tom Brown
Hi, I have what seems to be a simple problem. But I can not for the life of me find a way to send an integer over a socket. The send method will only accept strings. Here is what I am trying to do: testmessage = 'test message' msglen = len(testmessage) sock.send(msglen) sock.send(testmessage)