Re: Bad Interpreter

2005-01-03 Thread Simon John
[EMAIL PROTECTED] wrote: > the script i have sock.py runs if i say something like : > > python sock.py > > but ./sock.py results in a :bad interpreter error > how do i troubleshoot something like this? sounds like you've been editting the script on a windows machine, and it's inserted it's evil l

Re: Python Installation

2005-01-08 Thread Simon John
brolewis wrote: > I need to install Python on a number of laptop computers (at least a > dozen). I am needing to install Python 2.4, pycrypto, win32all, > wxPython, and pyCurl. You could try the recently-announced MOVPY, or NSIS/InnoSetup as you say. Or simply put the five installers on a disk -

Re: Python and Excel

2005-01-19 Thread Simon John
Hmm, sounds interesting, I've always resorted to using CSV (or even HTML!) when exporting to Excel. As far as how to open it up, have a look at creating a project on www.sourceforge.net or just zip it up and bung it on your own website if you have one. I've got the feeling there are also Python-sp

Re: Pystone benchmark: Win vs. Linux (again)

2005-01-28 Thread Simon John
Franco Fiorese wrote: > Is there any way, that you know, to get better performance under Linux? Build Python yourself, using relevant CFLAGS and TARGET for your processor? I've always noticed that Windows Python takes a lot longer to startup than Linux, but never really looked at runtime perform

WYSIWYG wxPython "IDE"....?

2005-02-04 Thread Simon John
I'm writing my 2nd large wxPython program, and after the problems I found doing the first's layout in code, I'd like to look at using a 'WYSIWYG' IDE, like VisualStudio does for MFC. I've tried a few that I found, wxGlade is probably the best, although it seems to be not 100% WYSIWYG (like the wid

Re: Getting tired with py2exe

2005-09-20 Thread Simon John
James Stroud wrote: [snip] > > http://pyinstaller.hpcf.upr.edu/pyinstaller > That's one short "indefinitely": > > Not Found > The requested URL /pyinstaller was not found on this server. > Apache/2.0.53 (Fedora) Server at pyinstaller.hpcf.upr.edu Port 80 It seems that the URL is http://pyinstall

Re: WYSIWYG wxPython "IDE"....?

2005-02-06 Thread Simon John
Tim Hoffman wrote: > Have you tried Boa Constructor ? > > http://boa-constructor.sourceforge.net/ Yeah, I was never very impressed with it either. The current version doesn't seem to work with wxPython 2.5.3.1 though I guess there isn't a GUI builder that does what I want, back to the manual

Re: WYSIWYG wxPython "IDE"....?

2005-02-07 Thread Simon John
With the news of a GPL Qt4 for Windows, I decided to go with PyQt: http://mats.imk.fraunhofer.de/pipermail/pykde/2005-February/009527.html I just knocked up my application (GUI, backend is still in progress) using QtDesigner in about 5 minutes, and it's layout is just how I want it! -- http://m

PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Simon John
After quite a while of wxPython I'm getting back into PyQt, mainly due to the announcement by Trolltech that they will make a GPL version of Qt4 for Windows (and Phil-T said he will make a PyQt to go with it eventually!) I'm currently using PyQt 3.12 that comes with the BlackAdder demo, it seems t

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Simon John
Yeah I had a look at the Qt Free/Win project, but I think it offers me less than the current official 3.12 from BlackAdder, which is only $80 without the hassle of following those convoluted build instructions (I did try yesterday). As far as XMMS/Gtk goes, it's a remote client for XMMS, designed

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-10 Thread Simon John
I've just read the Qt4 GPL for Windows will only support gcc (and maybe MinGW) anyway, not BCC or VisualC++ (or it's free equivalents), so it looks like it would be a daunting task to actually build PyQt See http://osnews.com/comment.php?news_id=9675 I guess the Qt used in PyQt from BlackAdde

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-10 Thread Simon John
I've just read the Qt4 GPL for Windows will only support gcc (and maybe MinGW) anyway, not BCC or VisualC++ (or it's free equivalents), so it looks like it would be a daunting task to actually build PyQt See http://osnews.com/comment.php?news_id=9675 I guess the Qt used in PyQt from BlackAdde

Re: Multi-Platform installer generator

2005-02-11 Thread Simon John
if you're referring to the installshield x/mp products, forget it, they are really bad. the last company i worked for who used x/mp actually went back to shell scripts for unix and installshield pro for windows, as the java thing was abismall, and even the ide was written in java, so horribly slow

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-11 Thread Simon John
I've just got Qt 3.3.3 and PyQt 3.1.3 compiled for Python 2.4 using the instructions for MinGW here: http://kscraft.sourceforge.net/convert_xhtml.php?doc=pyqt-windows-install.xhtml It was a pretty nasty experience, hacking python24.dll and patching sip/PyQt, but i got it all working after about 4

Re: ANN: pyMinGW support for Python 2.3.5 (final) is available

2005-02-12 Thread Simon John
[snip] > Ha anyone tried cross compiling python with mingw? At work we compile > our software for lots of platforms (including windows) on a linux > build host. The windows builds are done with a mingw cross compiler. > It would be interesting if we could do this with python + extensions > also.

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-13 Thread Simon John
After building with MSVC6 (Python 2.3.5 and 2.4 versions) I've noticed that the ToolTips don't seem to work in the GPL version. MSVC6 is about twice as fast to build as MinGW. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with C extensions under VC6 / WinXP and Python 2.4

2005-02-16 Thread Simon John
What's the difference between ctypes, SWIG and SIP? I've used SWIG to "convert" C source to Python (as I believe SIP does?), so does ctypes wrap functions from binaries (e.g. DLL's)? -- http://mail.python.org/mailman/listinfo/python-list

Pausing a program - poll/sleep/threads?

2005-02-16 Thread Simon John
I'm writing a PyQt network client for XMMS, using the InetCtrl plugin, that on connection receives a track length. To save on bandwidth, I don't want to be continually querying the server for updates (e.g. has the current track finished yet?) so I figured the best thing to do is just update after

Re: Pausing a program - poll/sleep/threads?

2005-02-17 Thread Simon John
I don't think time.sleep() will work too well, I think it will cause the program to hang around in the foreground, and prevent the GUI updating. I'll give it a try just to make sure, as I can't figure out the signal/alarm thing (the alarm only seems to trigger when I click a button, not after n-se

Re: Pausing a program - poll/sleep/threads?

2005-02-17 Thread Simon John
Damn! signal is not supported on Windows. time.sleep() doesn't work, as I suspected:: def info(self): sleep(5) self.info() Basically causes the function to pause, then call itself again, all in the foreground :-( I'm thinking some sort of thread timer is the way to go, but really don't un

Re: Pausing a program - poll/sleep/threads?

2005-02-17 Thread Simon John
Hmm, yes I had thought of looking around PyQt for a timer, forgot about it though. As far as querying the server every few seconds, it does make sense (you don't miss events) and is the recommended way of doing things with InetCtrl, but I'd prefer to save the bandwidth/server load than have realti

Re: Pausing a program - poll/sleep/threads?

2005-02-17 Thread Simon John
Jeff Shannon wrote: [snip] > The amount of bandwidth and server load that will be used by a > once-a-second query is probably pretty trivial (unless you're > expecting this to run over internet or dialup networks -- and even > then, it's probably not going to be worth worrying about). Even on an

Re: Pausing a program - poll/sleep/threads?

2005-02-19 Thread Simon John
OK, I've implemented the 2sec threaded update, but I'm having some problems with it. Basically the thread will have to just run constantly, never exiting (just sleeping for 2secs), which seems to work OK except when I try to get the thread to do anything with the main program's window. As the thr

Re: Pausing a program - poll/sleep/threads?

2005-02-19 Thread Simon John
Damn, seems Qt GUI objects (windgets) aren't thread-safe: http://doc.trolltech.com/3.3/threads.html#11 So I'm going to have to find a way of using a thread to fetch the data, and then using the main program to update the GUI... Someone suggested using events: http://mail.python.org/pipermail/pyt

Re: PyQt Python Bindings for Qt v3.14 Released

2005-02-20 Thread Simon John
All looks like good news, especially PyQt4 - one question, if it's statically linked with Qt4, will it still work with things like py2exe? I guess it just won't need qt-mt4.dll? I'm getting a 404 on the new SIP: http://www.river-bank.demon.co.uk/download/QScintilla/qscintilla-1.61-gpl-1.5.tar.gz

Re: Pausing a program - poll/sleep/threads?

2005-02-20 Thread Simon John
Ah yes, that Informit article helped endlessly - I'm all done now - got the backend to fetch the info from the server every 2secs using a QThread, then it pass the data back to the GUI frontend by raising a custom event! Thanks for all the help folks, now I'm off to compile the new PyQt 3.14 ;-)

Re: Considering python - have a few questions.

2005-02-21 Thread Simon John
I'd go with a MySQL / Python / Apache route, but if it's Windows, maybe not. Also, you shouldn't store images in a database - images should be on the filesystem with their paths stored in the database. I'd definitely say going the web application route would be easier (and more portable) than the

Re: Gordon McMillan installer and Python 2.4

2005-03-02 Thread Simon John
Seriously, if you're only interested in Windows, just use py2exe, or if you want Linux+Windows, try cx_Freeze. -- http://mail.python.org/mailman/listinfo/python-list

Re: About Databases...

2005-03-11 Thread Simon John
Tom Willis wrote: [snip] > Whoa, you are asking alot. Without knowing anything about your > requirements except what was mentioned in your post. I would say you > would quite possibly want the functionality of a relational database. I'm not sure I agree with that. If the data is likely to be lar

Re: Adapting code to multiple platforms

2005-03-11 Thread Simon John
If you're using a GUI, then that may help you decode the platform too - for example wxPython has wx.Platform, there's also platform.platform() , sys.platform and os.name You could try import win32api and checking for an exception ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython vs. pyQt

2005-03-16 Thread Simon John
I used to be a wxPython lover, but it was mainly due to the crappy PyQt licensing terms, rather than any merits of wx (although I like the native LnF). After trying to do a large-ish project using wxPython, I found that I was limited by the lack of widgets and the layout system. My latest project

Re: wxPython vs. pyQt

2005-03-17 Thread Simon John
"so is there already a binary for qt/pyqt/eric3 available or when can i excpect qt4 to be released? " I think that pyqt4 is going to be a long way off, obviously further away than qt4. i have compiled qt 3.3.3/pyqt 3.1.3 using mingw/vcc6 for windows using the instructions i linked to in my previo

Re: PIL for Python 2.4 ?

2004-12-01 Thread Simon John
Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle. wrote: > Hi ! > > I can't install PIL on Python 2.4 ; the soft search Python 2.3 ; gh > ! > Do you know if the great F.L. want to make, soon, a P24 version ? Yes, this kind of thing is stopping me trying 2.4 fo

Re: installing wxPython on Linux and Windows

2004-12-02 Thread Simon John
I have used the Fedora2 RPM's of wxPython 2.5.3.1 successfully on SUSE 9.1 Pro, 9.2 Pro and SLES 9 (and Fedora 3 for that matter) so you don't need to get a specific RPM for SUSE. I even built wxPython 2.5.3.1 with Python 2.4 on Fedora 2 today, it was not that hard - just followed http://wxpython.

Re: exec size

2004-12-03 Thread Simon John
yeah i noticed that when i built it - and strip/upx etc. don't help much. i made sure i disabled debugging too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jython & IronPython Under Active Development?

2004-12-25 Thread Simon John
Haibao Tang wrote: > This question may be a bit weird but I really want to know if these two > hybrid projects are still active. they're both by the same guy, and i think jython just had a new release, although i expect ironpython will turn into microsoft visual python.net instead of reaching v1.

Re: McMillan Installer vs. Python 2.4

2005-03-30 Thread Simon John
[EMAIL PROTECTED] wrote: > 1. Does anyone know why McMillan Installer 5b5 does not work with > Python 2.4 under Linux (works with Python 2.3 just fine), and how to > fix it? I expect so. > 2. Will anyone be picking up the maintenance and development ball for > McMillan Installer? There was a 6a

Re: McMillan Installer vs. Python 2.4

2005-03-30 Thread Simon John
[EMAIL PROTECTED] wrote: [snip] > First, I got the latest Installer, 6a2, from the Vaults of Parnassus. > This version is listed as the 'Windows' version. This means two > things: The .py files are sprinkled with DOS-style line endings > (CR/LF) and file endings (^Z), and the runtime support fil

Re: Installing Python 2.4 on Linux

2005-04-05 Thread Simon John
Marcin Stepnicki wrote: > It's rather Fedora related, I have Python 2.2, 2.3 and 2.4 on my Ubuntu > box and they seem to coexist without problems. It's not a Fedora problem at all. The 2.4.1 RPM's just move the default /usr/bin/python symlink to point to the new Python24 instead of Python23 that

Re: py2exe - create one EXE

2005-04-15 Thread Simon John
yeah, the question does come up once a month at least, but you could try mcmillan installer with it's --onefile option. i have mirrors at http://www.the-jedi.co.uk/downloads/installer -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or PHP?

2005-04-23 Thread Simon John
I've been a PHP and Perl programmer (amongst others) for 10 years or more now, and a Python coder for 3 or so. I have come to hate PHP now, it's pseudo-OOP is awful, it's dog slow at handling XML, it's so easy to use that most of the programmers I've had contact with are very sloppy and do things