Cross Compiling Python for ARM

2010-09-14 Thread Neil Benn
s which I don't have but as my situation is unusual I'm not sure what I am missing. So, I'm asking for help which is what libraries does python depend on on Linux? Thanks in advance. Cheers, Neil -- -- Neil Benn Msc Director Ziath Ltd Phone :+44 (0)7508 107942 Website - h

Re: Python module for LX200 telescope command set

2006-01-30 Thread Neil Benn
ort on computer does not exist Requested port on computer is broken and cannot send data Command gets sent to scope, however some noise occurs in the line and the scope receives data but not what you sent as above but vice versa Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Read from Serial Port

2006-01-23 Thread Neil Benn
self.fireNewMessage(strReceivedString) except: raise finally: self.__objLock.release() PySerial wraps all the platform specific stuff you, so you should really use that, it behaves fairly well - the only real problem is a lack o

Re: Win32 Binary-only for 2.3.x?

2006-01-05 Thread Neil Benn
MSI out of silent mode is not an option, if your installer starts firing up other windows (command prompt or otherwise) - it looks amateurish and cheap. Certainly installing python on a box for a developer or to support/install an in-house app, the MSI is fine and preferable. Cheer

Re: Application Portability?

2005-12-30 Thread Neil Benn
namic languages then you can use Jytjon, there is an unofficial port of Jython for Personal Profile - I'm not sure how robust it is but you could take a look at that. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Ger

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-07 Thread Neil Benn
://ant.apache.org/ant_in_anger.html However anyone up for Maven?? This is a build tool with a different philosophy than most others. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154

Re: Writing big XML files where beginning depends on end.

2005-11-24 Thread Neil Benn
k and look at using a different data representation. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to prevent logging warning?

2005-10-05 Thread Neil Benn
Hello, Absolutley not, I have exactly the same problem and it is really annoying. The logging handlers should be set from an external config file and not explicitly in the code. I simply had to just live with it, it's annoying but there is nothing you can do about it (short of playing around with stdout but avoiding that is why you used logging in the first place!). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows paths, Java, and command-line arguments, oh my!

2005-09-21 Thread Neil Benn
Neil Benn wrote: >Steve M wrote: > > > >>Well, apparently I fried my brain trying to sort this out. There is a >>typo in my example code in the post but not in my real program. (I know >>it is a no-no when asking help on c.l.py but I simplified some details >

Re: Windows paths, Java, and command-line arguments, oh my!

2005-09-21 Thread Neil Benn
. Instead of: cmd = r'java -jar sforcedataloader.jar -Dsalesforce.config.dir=c:\config' os.system(cmd) use cmd = r'java -Dsalesforce.config.dir=c:\\config -jar sforcedataloader.jar' os.system(cmd) Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnova

Re: pythonXX.dll size: please split CJK codecs out

2005-08-23 Thread Neil Benn
than is needed, IMHO, even my handy/mobile phone/cell phone can easily cope with 1.8Mb! Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: pywin32 from network install

2005-08-12 Thread Neil Benn
addition, there is a registry setting you need to delete which automagically adds to the python path - it's in HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. That's probably won't solve your problem but it's somethng to be aware of anyways. Neil -- Neil Benn Senior Automat

Re: What are modules really for?

2005-08-11 Thread Neil Benn
of dangerous features of > languages, but more about the way of using imperative object-oriented >languages in a non-object-oriented way. > > well, in languages like C#, Java and eiffel - you shouldn't really be doing that anyways. that is why they are poor choices for hobbies, h

Re: What are modules really for?

2005-08-10 Thread Neil Benn
f I find >repetitive tasks I can declare functions, but I won't go for a class >immediately. Why do you think putting code into functions is not >encapsulating? > > > >>While you could do all manner >>of nasty hacks in C++ I worked with people who carefu

Re: Recommendations for CVS systems

2005-08-09 Thread Neil Benn
ave the server running in Apache. To work in SVN with eclipse you will need an eclipse plugin : http://subclipse.tigris.org/#subclipse Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-

Re: .pth files

2005-08-09 Thread Neil Benn
ing release management easier. However this solution requires more work. * You could copy the java method using zip files with a manifest in the same way Java uses jar files - I say could because I havn't done this but it is the way I distribute Java apps - nice and clea

epyDoc Questions

2005-08-08 Thread Neil Benn
27;t in there, they are in the fifth argument to the property method (I can manually do this using sections but is there a tag I can use?) Cheers for your help, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden German

Re: Decline and fall of scripting languages ?

2005-08-08 Thread Neil Benn
Obviously there are other variations on this than the Sun stuff but enterprise dosn't mean 'very large companies' in this case. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread Neil Benn
you are on about you access ports through the win32 API which is the 'driver' - you could probably bypass this and start playing around with assembly code but there's no point!! Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum T

Re: pySerial Windows write problem

2005-07-29 Thread Neil Benn
;d write a C extension to do the serial stuff, but I don't know a thing >about Windows programming. > >Thanks! > > > > I wouldn't bother as well - PySerial works fine for me, as I mentioned the only thing I don;t like is no evetn firing when data is availabel but

Vanilla python path

2005-07-25 Thread Neil Benn
Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', '/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac', '/Library/Frameworks/Python.framework/Versions/2

Python Path Setting

2005-07-21 Thread Neil Benn
nd the like - does anyone know where I can find this? Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com --

Re: __eq__ on a dict

2005-07-11 Thread Neil Benn
Steven D'Aprano wrote: > On Mon, 11 Jul 2005 12:42:55 +0200, Neil Benn wrote: > > > >> Hello, >> >>I can't find the docs for __eq__ on a dict and I can't >> find a description on what the eq does (strangely it does implement &g

Re: __eq__ on a dict

2005-07-11 Thread Neil Benn
not as far as I can see from these docs. Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mai

__eq__ on a dict

2005-07-11 Thread Neil Benn
google is not my friend - I invited it out for a drink last week and it stood me up :-). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website :

Re: PyGTK vs. wxPython

2005-04-25 Thread Neil Benn
: Hello, Guess he's talking about windows : http://www.dropline.net/gtk/ You will already have a windowing toolkit on windows - mfc/win32. BTW, I cheated and saw a windows related question from above also same poster ;-) Cheers, Neil -- Neil Benn Senior Automation Engineer

Re: Simple thread-safe counter?

2005-04-02 Thread Neil Benn
Paul Rubin wrote: Skip Montanaro <[EMAIL PROTECTED]> writes: How about (untested): import Queue counter = Queue.Queue() counter.put(0) def f(): i = counter.get() counter.put(i+1) return i Hmmm, that's a bit messier than I hoped for, but it looks sure to work

Re: CGI, FieldStorage and Filename

2005-03-30 Thread Neil Benn
Neil Benn wrote: Hello, I'm writing a simple cgi script and want to be able to access the filename in a FieldStorage file instance. I have successfully manmaged to access the file as a 'file-like object' by using the simple code of : Sorry, split the filename on p

CGI, FieldStorage and Filename

2005-03-30 Thread Neil Benn
ect\tJob\tBarcode\tPlate set ) As you can see, when __str__ is called, the FieldStorage is displaying the name of the client side file - so it knows what it is, however when I call .filename on it, I get None. I don;t get what is happening here - has anyone else seen this and/or knows what

Re: Lowest hassle Python web server?

2005-03-21 Thread Neil Benn
re, I dunno?) The GIL thing makes it easier to do threading with Python (there are disadvantages to the GIL but I won't get into that here - if you're interested read through the history on this group) but it's still threading so beware! Cheers, Neil -- Neil Benn Senior Autom

[Fwd: Re: quick question]

2005-03-08 Thread Neil Benn
-- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com --- Begin Message --- Leeds, Mark wrote: I have a string variable say “8023 “ and

Re: For American numbers

2005-02-14 Thread Neil Benn
Scott David Daniels wrote: Kind of fun exercise (no good for British English). what's American about it? If anything, it's more French than American ;-) N -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)35

Re: Multi-Platform installer generator

2005-02-11 Thread Neil Benn
there isn't a JVM present on the system - common in windows boxes), installing JRE is a minimal effort and can be done silently - you can remove it the same way after if you wish but often Java installers are used to install Java programs so you don't want to bother doing that. Cheer

Re: Reportlab and Barcodes

2005-02-09 Thread Neil Benn
the Narrow:Width ratio if you're gonna try and scan the barcode after printing it out - try and get hold of a crappy scanner (I got stung by using a good scanner before in the past). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-0130

Re: Logging

2005-02-03 Thread Neil Benn
ound inside the logging package but I will put the cleaning up of the dict on a shutdown() call as a feature request for logging. Thanks for the comm. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)35

Re: Logging

2005-02-02 Thread Neil Benn
Neil Benn wrote: Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the root logger again, such as : . Previous code missed

Logging

2005-02-02 Thread Neil Benn
in emit .self.stream.seek(0, 2) #due to non-posix-compliant Windows feature .ValueError: I/O operation on closed file .>>> This means that I any code that write or use, if it calls logging.shutdown the logging is buggered for that process - is my analysis correct? Cheers, Neil -

Re: Save the Canvas!

2005-02-02 Thread Neil Benn
march! Save the Canvas! Long live the ComboBox!! Free the ScrollPane!! Sorry in a funny mood. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website :

Re: Python Code Auditing Tool

2005-02-02 Thread Neil Benn
which has require and ensure clauses on every method (following Meyer's Programming by contract philosophy). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTE

Re: python without OO

2005-01-26 Thread Neil Benn
Davor wrote: Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone aware of any scripting language that could be considered as "Python minus OO stuff"? (As you

[Fwd: Re: Oddity is shutil.copyfileobj]

2005-01-20 Thread Neil Benn
--- Begin Message --- Tim Golden wrote: [Neil Benn] | I'm running a program which is using | shutil.copyfileobj on a Win2K Pro, python 2.3 box. Just for (possible) reassurance, I've just run the following code snippet on my Win2k Python 2.3.4 box and it seemed to work without

Oddity is shutil.copyfileobj

2005-01-20 Thread Neil Benn
ed my code again and again and I'm definatly not apeending this. I'm also copying files across, in the same program but the source and dest are binary - this doesn't have the same problem, the filenames are not changed. My question is - has anyone else seen this behaviou

Re: What strategy for random accession of records in massive FASTA file?

2005-01-14 Thread Neil Benn
s,etc) is unlikely to be pure python. The advantage of putting it in a DB will show up later when you have fast and powerful retrieval capability. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
Neil Benn wrote: engsol wrote: Has anyone done a script that will rspond to the serial com port(s) receive buffer interrupt, as opposed to polling and timeouts? Win2000 is the main interest right now. Thanks Norm B Hello, I came across this problem as when I first used PySerial, I

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
case we could also say that threading in VB6 is even easier than python - I'll leave you to guess why!!! Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Ce

Re: Excel module for Python

2005-01-12 Thread Neil Benn
sam wrote: Simon Brunning wrote: On Wed, 12 Jan 2005 15:18:09 +0800, sam <[EMAIL PROTECTED]> wrote: I m wondering which Excel module is good to be used by Python? If you are on Windows, and you have Excel, then the Python for Windows extensions[1] are all you need to drive Excel via COM. O'Reilly'

Re: Game programming in Python

2005-01-12 Thread Neil Benn
Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' Like the end quote : eh, eh, eeehh!! -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatz

Re: shutil.move has a mind of its own

2005-01-11 Thread Neil Benn
Daniel Bickett wrote: Oh, I'm sorry, that was my mistake. The example contained that error, but my code does not. Daniel Bickett To be fair though - I would have expected the method to throw an error rather than default to cwd. Neil -- Neil Benn Senior Automation Engineer Cenix BioSc

Re: gridbaglayout

2004-12-20 Thread Neil Benn
[EMAIL PROTECTED] wrote: Friends - I have tried to do abolute positioning using gridbaglayout, but am having no success in jython. One book I have been referencing says that it only works with JPanels. Could someone post a snippet of code that works for a button? I am so close so just a hint would