Re: Live Video Capture using Python

2009-12-20 Thread David Lyon
Also try.. http://www.unixuser.org/~euske/python/vnc2flv/index.html On Mon, 21 Dec 2009 11:15:32 +0530, Banibrata Dutta wrote: > Have you searched the archives of this list ? I remember seeing a related > discussion 5-6 months back. > > On Mon, Dec 21, 2009 at 2:35 AM, aditya shukla > wrote: >

Re: ubuntu dist-packages

2009-08-30 Thread David Lyon
On Thu, 27 Aug 2009 07:05:51 -0700 (PDT), Paul Boddie wrote: > No, it's the problem of the Pythonic packaging brigade that package > retrieval, building and installing is combined into one unsatisfactory > whole. Brigade? That implies a disciplined and systematic approach.. I would suggest a be

Re: install package in a particular python version

2009-08-23 Thread David Lyon
On Thu, 20 Aug 2009 20:53:18 -0700 (PDT), Steve1234 wrote: > Benjamin suggested: > sudo python2.5 setup.py install > and it works. This makes sense, thanks. > > I downloaded pythonpkgmgr from source and installed it. I got the > error that reguired wx package was missing. I couldn't find this

Re: install package in a particular python version

2009-08-20 Thread David Lyon
On Thu, 20 Aug 2009 17:57:53 -0700 (PDT), Steve1234 wrote: > I installed the boto module in my Ubuntu system using "python setup.py > install" and it installs in my python2.6 version and works great. Now > I want to install boto into my python2.5 version because my hosting > services supports 2.5

Re: Python docs disappointing - group effort to hire writers?

2009-08-10 Thread David Lyon
On Mon, 10 Aug 2009 09:13:34 -0700, Ethan Furman wrote: > As someone who relies heavily on the docs I will also say that the idea > of giving the ability to modify the official documentation to somebody > who is /learning/ the language is, quite frankly, terrifying. What is more terrifying is

Re: wxpython question

2009-08-10 Thread David Lyon
is there a method/property called Show/Shown ? On Mon, 10 Aug 2009 07:55:42 -0700 (PDT), azrael wrote: > Is there maybe a method bounded to the class SpinCtrl() that could > hide the widget. One that is maybe also implemented in any other > control. > > self.spcKvadDo = wx.SpinCtrl(id=-1, initi

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-09 Thread David Lyon
Since you're talking about documentation, which is a part of python, don't you think you should be discussing it on python-dev ? That's where discussions about the documentation should be held. haha - I'm just curious to see how long it will for them to shut the discussion down. Before you do

Re: easy_install: unresolved external symbol

2009-08-04 Thread David Lyon
On Tue, 4 Aug 2009 10:52:20 +0200, Bart Smeets wrote: > I could ofcourse use cxfreeze's binary package. But bbfreeze is not > available as a binary. I would love to get easy_install to work. But I have > no idea what's going wrong here. What is going on is that setuptools does some very 'advanced

Re: Python docs disappointing - group effort to hire writers?

2009-08-03 Thread David Lyon
It isn't totally about the writers... Peoples egos are also at stake - it seems. If "Fred X wrote Doc Y".. they don't want their name taken off.. So they generally speaking don't want the docs changed. If you talk too much about docs.. you can be told you're OT.. even in a thread about docs...

Re: Problem in installing PyGreSQL

2009-08-03 Thread David Lyon
On Tue, 4 Aug 2009 09:15:47 +0530, "Thangappan.M" wrote: > I want to access the database related stuffs in python.So I found the > PyGreSQL module in net. > Then I tried to download the module.But I am not able to download it. Did none of the links here work? http://www.pygresql.org/readme.html#

Re: Newbie thwarted by sys.path on Vista

2009-08-01 Thread David Lyon
On Sat, 1 Aug 2009 22:58:53 +0100, "Michael M Mason" wrote: > I'm running Python 3.1 on Vista and I can't figure out how to add my own > directory to sys.path. > > The docs suggest that I can either add it to the PYTHONPATH environment > variable or to the PythonPath key in the registry. Howe

Re: Does python have the capability for driver development ?

2009-07-29 Thread David Lyon
MalC0de wrote: > hello there, I've a question : > I want to know does python have any capability for using Ring0 and > kernel functions for driver and device development stuff . > if there's such a feature it is very good, and if there something for > this kind that you know please refer me to som

Re: Extract images from PDF files

2009-07-27 Thread David Lyon
pdftohtml on sourceforge may help... On Mon, 27 Jul 2009 19:52:01 -0700 (PDT), writeson wrote: > Hi all, > > I've looked around with Google quite a bit, but haven't found anything > like what I'm looking for. Is there a Python library that will extract > images from PDF files? My ultimate goal

Re: Using easy_install, reduncant?

2009-07-27 Thread David Lyon
On Mon, 27 Jul 2009 09:42:06 -0700 (PDT), ray wrote: > I am working on a Trac installation. I am new to Python. To install > packages, it is suggested to use setuptools. I have not understood > the directions. > > I execute ez_install.py. > > Then I attempt to execute easy_install.py setuptoo

Re: Python

2009-07-21 Thread David Lyon
On Wed, 22 Jul 2009 07:32:22 +0700, khanh le wrote: > do you have any materials about Python? > can you show me the link of Python or some books? http://www.python.org/ > thanks a lots! No problem. Have a nice day. -- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools question.

2009-07-21 Thread David Lyon
On Tue, 21 Jul 2009 11:12:01 -0700, Fred C wrote: > I have a python program and when I install this program from the > module home directory using setup.py everything works fine. > > But easy_install fails with the following error, because I am trying > to install some start up shell scripts

Re: convert Dbase (.dbf) files to SQLite databases

2009-07-15 Thread David Lyon
On Wed, 15 Jul 2009 11:53:28 +0200, Helmut Jarausch wrote: > Hi, > > I have a lot of old Dbase files (.dbf) and I'll like to convert these > to SQLite databases as automatically as possible. > Does anybody know a tool/Python script to do so? > > I know, I could use dbfpy and create the SQLite ta

Re: Where does setuptools live?

2009-07-07 Thread David Lyon
On Tue, 07 Jul 2009 13:07:48 +0100, Chris Withers wrote: What hasn't happened is enough testing of pypi packages and installing with setuptools/pip/enstall from pypi. >>> What needs testing? >> >> It's software... therefore it needs testing... > > Yes, which is why I asked WHAT needs t

Re: Where does setuptools live?

2009-07-07 Thread David Lyon
On Tue, 07 Jul 2009 09:06:49 +0100, Chris Withers wrote: >> What hasn't happened is enough testing of pypi packages and installing >> with setuptools/pip/enstall from pypi. > > What needs testing? It's software... therefore it needs testing... David -- http://mail.python.org/mailman/listinfo

Re: Where does setuptools live?

2009-07-06 Thread David Lyon
On Tue, 07 Jul 2009 02:09:41 +0100, Chris Withers wrote: > I wonder how close setuptools is to being forked because of Phil Eby's > unwillingness to apply patches and/or clean up the horrible setuptools > code? setuptools... as far as I can see isn't actually installed until you install easyinst

Re: System default sys.path

2009-07-01 Thread David Lyon
On Wed, 01 Jul 2009 19:48:04 -0700, Brock Pytlik wrote: > Hi, I'm trying to find a way to get the value sys.path would have on a > particular system if python was started with an empty python path. I do > want it to include the site specific additional paths. I know I can hack > this informatio

Re: packaging apps

2009-06-30 Thread David Lyon
On Tue, 30 Jun 2009 11:11:15 -0400, Ronn Ross wrote: > I have a simple application that has a glade file and a .py file. How would > I package that into an installer for Windows, Mac, and a deb file? Can > anyone point me in the right direction? I don't think there is a simple way to do that just

ANN: Package Manager GUI for Python (Windows)

2009-06-30 Thread David Lyon
Hi All, I'm pleased to announce a GUI package manager (v 0.12) for Python versions 2.x under Windows. http://sourceforge.net/projects/pythonpkgmgr/ It's tightly linked to the pypi repository and offers the following functions: - search packages on pypi by name - install (via easyinstall or

Re: IDLE / Python 2.5 under Jaunty

2009-06-23 Thread David Lyon
On Wed, 24 Jun 2009 00:55:14 +0100, duncan smith wrote: > Does anyone know how I can configure Boa to use wxPython 2.8.9.1? Does > anyone know if it's possible to configure the Python version under SPE? It definitely is possible. In fact you need to use wxpython 2.8 with Boa. I had a similar p

Re: Slow wxPyhon on Vista?

2009-06-19 Thread David Lyon
On Fri, 19 Jun 2009 10:16:39 +0200, martin.sch...@gmail.com (Martin Schöön) wrote: > Here is my problem. When I use it on a Vista box its > user interface is very, very slow when it comes to > some but not all operations. On any other Windows > version it reacts instantaneously. I have not tried >

Re: .pth files and figuring out valid paths..

2009-06-09 Thread David Lyon
On Tue, 9 Jun 2009 21:33:56 -0700 (PDT), rh0dium wrote: >> Having multiple paths or multiple .PTH files isn't a >> problem for python. > .. > We use it for our dev tree before we roll to production. Once dev is > QA'd then we (integrate) those changes to main and release. Makes sense... :-)

Re: .pth files and figuring out valid paths..

2009-06-09 Thread David Lyon
On Tue, 9 Jun 2009 16:30:06 -0700 (PDT), rh0dium wrote: >> > Apparently there is a problem with the if statement??? >> >> > Thanks > > No for .pth files this needs to be on a single line.. I can't really see why you need conditional code... If you want to add more locations... Simply create a

Re: how to get the path of a module (myself) ?

2009-06-01 Thread David Lyon
On Mon, 01 Jun 2009 23:28:16 +0200, Stef Mientki wrote: > hello, > > I've pictures stored in a path relative to my python source code. > To get a picture, I need to know what path I'm on in each python module. > I thought __file__ would do the job, > but apparently I didn't read the documentation

Re: SendMessage question

2009-05-25 Thread David Lyon
you might have more luck with http://pypi.python.org/pypi/SendKeys/0.3 On Sat, 23 May 2009 08:58:14 +0800, zhouhaifeng wrote: > Hi,I want to send "ctrl + A" and "ctrl + C" to a window, > but my code can not work, who can help me ? > > Thanks a lot! > > hWnd = win32gui.FindWindow(None, "“pad")

Re: Compile python extensions under windows/cygwin

2009-05-24 Thread David Lyon
On Sun, 24 May 2009 15:34:42 -0700 (PDT), Joana wrote: > I mantain Python on Windows, all installed packages are under c: > \Python25\Lib\site-packages. Now I have to build C libraries used by > python extensions and I am using cygwin, but I don't know how to > install the module in Windows direct

Re: how to get rid of pyc files ?

2009-05-24 Thread David Lyon
On Sun, 24 May 2009 15:01:51 +0200, Stef Mientki wrote: > hello, > > Moving my entire program section between windows and Ubuntu, > sometimes causes problems, due to the existence of pyc-files > (and probably because my program still has hard coded paths). > > Is there a way to prevent generatin

Re: html ui + py background? any tut?

2009-05-23 Thread David Lyon
Hi, I don't know any tutorial either... At work, we have made gui apps using wxpython to make the gui... wxpython has html viewer component... you can use Cheetah or another template engine to make the html... It's pretty easy and effective... David On Sat, 23 May 2009 15:48:38 +0800, oyst

Re: dbfpy - cannot store new record

2009-05-21 Thread David Lyon
On Fri, 22 May 2009 08:34:17 +0200, Laszlo Nagy wrote: > Now I also tried to set -1. In any of the above cases, if I open that > dbf file with a commercial DBF editor application then I see that the > value is not null. > > - Borland Database Desktop shows "False" value > - CDBF shows an invali

Re: dbfpy - cannot store new record

2009-05-21 Thread David Lyon
well, dbfpy isn't super sophisticated. If you make your own code fixes, maybe you can provide them back to the package author. On Thu, 21 May 2009 17:53:38 +0200, Laszlo Nagy wrote: > Here is the next problem. For boolean/logical fields, I can set their > value to True/False easily. However,

Re: dbfpy - cannot store new record

2009-05-21 Thread David Lyon
Hi, Try not opening the file in append mode (no "a+") Inside the logic, there is already a seek to the end of the file and the record counters at the start of the file need updating too. Regards David On Thu, 21 May 2009 13:25:04 +0200, Laszlo Nagy wrote: > Given this example program: > >

Re: Package problem

2009-05-19 Thread David Lyon
On Tue, 19 May 2009 13:29:47 +0100, "A. Cavallo" wrote: > You could try: > > http://download.opensuse.org/repositories/home:/cavallo71:/python-opt/ > > This is a python interpreter installed under /opt/opt-python-2.7a0. > All you have to do is sourcing /opt/opt-python-2.7a0/opt-python-env.sh > f

Re: Package problem

2009-05-19 Thread David Lyon
On Wed, 20 May 2009 00:40:28 +0900, David Cournapeau wrote: > The discussion has nothing to do with setuptools, or even python for > that matter. It has everything to do with python > on any system (including windows). That's why you should avoid > installing from sources into the location

Re: Package problem

2009-05-19 Thread David Lyon
On Tue, 19 May 2009 15:45:42 +0900, David Cournapeau wrote: > There is no simple solution to the following situation: >- install setuptools from ubuntu... When I have a ubuntu system I will try it > But still, the whole > value of ..(python).. is to have a whole set of packages which > a

Re: Package problem

2009-05-18 Thread David Lyon
On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau wrote: > Given that nobody has managed to solve this problem, I doubt you will > find a solution. It is solved in other languages.. for example perl.. and delphi > If there was a reasonable solution, it would have > already been developed.

Re: Package problem

2009-05-18 Thread David Lyon
Hi David, I guess paraphrased you are saying "don't touch your packages".. To my point of view, the needs of the developer override the priorities of the O/S house... We should expect "old" packages on our systems from the O/S and have an easier way to update them to whatever we want.. That's

Re: .pth in current directory: Why doesn't it work as the documentation says?

2009-05-18 Thread David Lyon
On Mon, 18 May 2009 14:05:50 +0100, Tim Golden wrote: > According to http://docs.python.org/install/index.html and my > own reasonably long experience of them, they're just a way of > getting extra paths into sys.path. Well, fair enough... > The docs referred to above do indeed say "add a

Re: .pth in current directory: Why doesn't it work as the documentation says?

2009-05-18 Thread David Lyon
On Mon, 18 May 2009 14:34:33 +0200, Philipp Hagemeister wrote: > Yes, but that processing will add /example/ to sys.path, right? It actually works the other way around. The directories listed in sys.path are scanned for .pth files. You can add packages by listing them inside a .PTH. > I'm expec

Re: .pth in current directory: Why doesn't it work as the documentation says?

2009-05-18 Thread David Lyon
On Mon, 18 May 2009 11:49:15 +0200, Philipp Hagemeister wrote: > 1) According to http://docs.python.org/dev/install/, "The most > convenient way is to add a path configuration file to a directory that’s > already on Python’s path, (...). It's true... > 2) Path configuration files have an extensi

Re: capture stdout and stderror from within a Windows Service?

2009-05-14 Thread David Lyon
On Thu, 14 May 2009 11:16:51 -0500, Grant Edwards wrote: > On 2009-05-14, Chris Curvey wrote: >> I'm trying to get this invocation right, and it is escaping me. How >> can I capture the stdout and stderr if I launch a subprocess using >> subprocess.check_call()? The twist here is that the call

Re: (Windows) Finding out which process has locked a file.

2009-05-14 Thread David Lyon
> In message <787d6072-3381-40bd- > af20-8e1a40405...@h23g2000vbc.googlegroups.com>, CinnamonDonkey wrote: > >> I have a script running which occa[s]ionally fails because it is trying >> to delete a file in use by another process. When this happens I want >> it to log which process has the lock.

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread David Lyon
On Thu, 14 May 2009 08:33:12 +1000, Mark Hammond wrote: > But if PYTHONPATH was set incorrectly it really doesn't matter how > Python was installed, it would still fail. The installer didn't set > PYTHONPATH, a human did. Hi Mark, Well I am just trying to write a package manager for python b

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-13 Thread David Lyon
On Wed, 13 May 2009 13:54:49 +0200, Thomas Heller > > Well, if you don't like the windows installer than you can always > install from the sources. Please go ahead and try it out. Thanks for the offer... but aren't python .eggs supposed to remove the need for doing that ? Regards David --

Re: python script as service

2009-05-13 Thread David Lyon
On XP, go to Start Menu/All Programs/Accessories/System Tools/Scheduled Tasks Add your program in with the scheduled task wizard... On Wed, 13 May 2009 13:10:25 +0530, prakash jp wrote: > Hi all, > > could any one tell how to run a python script as a scheduled service(say > every one minute).

Re: py2exe + win32com + DAO

2009-05-12 Thread David Lyon
On Tue, 12 May 2009 22:06:42 -0700 (PDT), Trevor wrote: > I do not believe your assertion applies to the following line of code: > > daoEngine = win32com.client.Dispatch(r'DAO.DBEngine.36') It doesn't. I'm simply suggesting that it is possible you are opening the database in Access or something

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Lyon
On Wed, 13 May 2009 05:32:16 +0200, "Martin v. Löwis" wrote: > I think this was a case of obscure misconfiguration of the system. > It is always possible to configure a system in such a way that even > the most resilient installation procedure will break. Technically, you are right.. but imho.

Re: py2exe + win32com + DAO

2009-05-12 Thread David Lyon
Maybe VB is opening the table in Exclusive mode... then when you are opening it as a subprocess, it's already locked. It's possible the win32com module is not giving you a very descriptive error message. Try running your process while vb is running at the same time with the database open and if

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Lyon
On Tue, 12 May 2009 23:57:48 GMT, David Lees > Mark and David, > > Thanks for the help. I just got it to install for Python 2.6. All I > did was change PYTHONPATH (as suggested by Mark) from > C:\Python25\Lib\site-packages to C:\Python26\Lib\site-packages lol - so simple... Thankfully, we g

Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-11 Thread David Lyon
Hi, hmmm... that's annoying.. Whilst I don't have an exact answer I have a few hunches... Perphaps what has happened is that the windows installer between the versions of pywin32 has installed newer versions of the same dlls over the top of older ones. Or, possibly, the installer hasn't wanted

Re: Unable to install Pywin32 for Python 2.6.2

2009-05-11 Thread David Lyon
Hi, hmmm... that's annoying.. Whilst I don't have an exact answer I have a few hunches... Perphaps what has happened is that the windows installer between the versions of pywin32 has installed newer versions of the same dlls over the top of older ones. Or, possibly, the installer hasn't wanted

Re: Unable to install Pywin32 for Python 2.6.2

2009-05-11 Thread David Lyon
On Tue, 12 May 2009 02:22:56 GMT, David Lees wrote: > I have no problem installing Python 2.6.2 for windows under XP SP3 and > IDLE and the command line versions work fine. When I run the pywin32 > installer downloaded from sourceforge (pywin32-212.win32-py2.6.exe) I > get the following error

Re: local module-docs server on Linux?

2009-05-04 Thread David Lyon
Hi Soumen, You could try running the Python Package Manager that we are developing on sourceforge. There isn't a release yet but we have implemented two buttons inside the program for 'Examples' and 'Documentation'. What they do is go off and find any documentation files or example directories f

Re: Third Party Modules

2009-04-29 Thread David Lyon
> On Tue, 28 Apr 2009 10:15:23 -0700, John Nagle wrote: >> Brock wrote: >>> Hi Everyone, >>> >>> I know this is most likely a basic question and you will roll your >>> eyes, but I am just starting out with Python (hobbyist) and I see many >>> tutorials on the web referring to the use of external

Re: Web based application development using python

2009-04-28 Thread David Lyon
On Tue, 28 Apr 2009 04:50:13 -0700 (PDT), Rahul wrote: > but i want to know which is the official standard recommended by > python. but there isn't one... All of the frameworks are slightly different and solve different problems. It is for you to work out which one suites you best... -- htt

Re: screen scraping with Python?

2009-04-28 Thread David Lyon
On Mon, 27 Apr 2009 12:28:31 +0530, "Meenakshi, Arun Kumar" wrote: > Hi Friends, > > Please let me know whether VT100 (Screen scrapping) > emulation is possible or not. If screen scrapping / VT100 emulation is > possible, please let me know how to do it. I will be happier, if you ca

Re: getting linux distro used...

2009-04-26 Thread David Lyon
perphaps platform.uname()? On Sun, 26 Apr 2009 22:35:29 -0700 (PDT), deostroll wrote: > Hi, > > I just found that you could use platform.system() to get the > underlying os used. But is there a way to get the distro used...? > > --deostroll > -- > http://mail.python.org/mailman/listinfo/python

Re: How to import modules from specific Python installation?

2009-04-26 Thread David Lyon
On Sun, 26 Apr 2009 13:07:24 -0700 (PDT), kk wrote: > I know there is a way to import from different Python installation but > I could not find the answer. I have Python 2.6 and 2.5 You can probably achieve this by adjusting the pythonpath to search through the site-packages directory of the ot

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-23 Thread David Lyon
On Thu, 23 Apr 2009 14:02:19 -0700, norseman wrote: > If you think I'm somehow able to take a look at a plain piece of code > you posted yesterday and know that it was written 26 years ago on a CP/M > 2.0 dual HD DS 8" floppy drive system using Microsoft Assembly for the > Z80 chip, intended as

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-23 Thread David Lyon
On Thu, 23 Apr 2009 07:04:35 -0400, David Stanek wrote: > If I use win32com how do you expect me to support Linux? Of course not... > What about the many packages on PYPI containing C? Exactly. > What if I decide to write only to Python 3? Fair enough. But don't forget it is open source

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
Hi Steve, >> Why should the package developer dictacte which python version the >> package will run on ? >  > Because they're the developer. Who else should decide what Python > versions to support?  The developer shouldn't be making such decisions at all What hardware or operating systems we

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
Hi Steven, You make some good points... Let me try to answer them.. > Why is it the responsibility of the Python language to provide such a > testing infrastructure? First define "Python language". Ok... we know it as the core interpretor. But to the developer it is also all the packages that

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
:54 -0400, David Stanek  wrote: > On Wed, Apr 22, 2009 at 7:06 PM, David Lyon  > wrote: >> >> One of the big challenges for Python going forward is providing a > testing >> infrastructure for Python Packages. >> >> There are now over 6,000 packages listed on P

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
Hi Daniel, On Wed, 22 Apr 2009 16:39:05 -0700, Daniel Fetchinson wrote: > Have a look at http://www.snakebite.org/ I'm not clear... - are you saying they already test all the packages on pypi? - are they doing it in a one off manner? Pardon me asking but it raised more questions than it

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
On Wed, 22 Apr 2009 16:39:05 -0700, Daniel Fetchinson wrote: > Have a look at http://www.snakebite.org/ Interesring... -- http://mail.python.org/mailman/listinfo/python-list

Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-22 Thread David Lyon
Hi all, I'm working on a python package manager gui. Mainly because I struggle on windows getting python packages installed. In my mind, there seemed to be some minor problems, but then I did the numbers. Do the numbers I writa about here reflect reality? Should we discuss stuff like this? Debat

Re: installer for py2exe files?

2009-04-22 Thread David Lyon
Hi Gabriel, look at ... - inno setup http://jrsoftware.org/isinfo.php - nsis http://sourceforge.net/projects/nsis/ I think these are the two clear leaders for open source... On Wed, 22 Apr 2009 11:17:10 +0200, Gabriel Rossetti wrote: > Hello everyone, > > I am wanting to create an installe

running pkg_resources from a compiled py2exe prog ram

2009-04-14 Thread David Lyon
btw the code is just.. import ConfigParser import zipfile import os import subprocess import getopt, sys import os.path import _winreg import pkg_resources -- http://mail.python.org/mailman/listinfo/python-list

running pkg_resources from a compiled py2exe prog ram

2009-04-14 Thread David Lyon
Hi, I'm trying to make an exe that uses pkg_resources. Every time I try to run the compiled version it always fails complaining that it is missing pkg_resources. Traceback (most recent call last): File "PythonPackageManager.py", line 6, in import MainWindow File "MainWindow.pyc", line

Re: email from windows

2009-03-29 Thread David Lyon
Hi Prakash, You need to tell the system your smtp host... ie > server = smtplib.SMTP('localhost') needs to read something like server = smtplib.SMTP('smtp.myisp.in') On Mon, 30 Mar 2009 08:58:49 +0530, prakash jp wrote: > preexistant code : > > import sys, smtplib > import string > froma

Re: Python AppStore / Marketplace

2009-03-29 Thread David Lyon
On Fri, 27 Mar 2009 08:16:01 -0700, Daniel Fetchinson wrote: > > How will your solution be different from distutils, setuptools, pip, > zc.buildout and a couple other similar packages I don't recall now? For a start.. it doesn't replace those.. it drives them... > Have you considered joining o

Re: Python AppStore / Marketplace

2009-03-26 Thread David Lyon
I think Marcel has a point... Much can be done and should be done to improve packaging and applications for python. That's why I for one am working on the python package manager project. On sourceforge. It uses the pypi interface to search. Actually we haven't made a release yet. Still many..

Re: Ban Xah Lee

2009-03-09 Thread David Lyon
On Mon, 09 Mar 2009 20:25:16 -0700, Jürgen Exner wrote: >>I'm certain he's the smartest computer guy on his street. > > Make that "he ist certain, he is the smartest computer guy". Which street? in a modern city? someplace in the developed world? This we need to know -- http://mail.py

Re: looking for template package

2009-03-03 Thread David Lyon
> I know there are lots of template packages, but most seem aimed at web > use. > This is just text processing, not part of any web stuff. > > Any suggestions? It doesn't matter if it is web or not. it's worth using a template package. You might very much like Cheatah... only takes a day to

Re: Python AppStore / Marketplace

2009-03-03 Thread David Lyon
Hi all, I only just noticed this thread... :-( At the moment, I am working on a Python Package Manager project on Sourceforge. http://sourceforge.net/projects/pythonpkgmgr/ Firstly, I would welcome any developers who are willing to assist. Secondly, I think there is much work to be done with

Re: unziping a file in python..

2009-03-02 Thread David Lyon
On Mon, 02 Mar 2009 16:13:39 +, MRAB wrote: > zf = zipfile.ZipFile('Archive.zip') > for name in zf.namelist(): > new_path = os.path.join(output_folder, name) > data = zf.read(name) > try: > open(new_path, 'wb').write(data) > except IOError: > # Create i

unziping a file in python..

2009-03-01 Thread David Lyon
It might seem a simple question.. but how does one programmaticaly unzip a file in python? In version 2.6 and above.. the zipfile module has an extractall method. But it isn't available in 2.5 or below. Any cross version, cross-platform answers welcome. Any answers specific to win32 also welcom

Re: Python package Management GUI - New Project on Sourceforge

2009-02-02 Thread David Lyon
Hi Dave, > As of now, Enstaller 3.x is a command-line only tool but it does > provide a lot of benefits over standard setuptools -- uninstall, > update/upgrade command, found eggs aren't pre-pended to the full > sys.path but instead inserted before the containing directory, etc. Sounds extremely

Re: Python package Management GUI - New Project on Sourceforge

2009-02-01 Thread David Lyon
> What's wrong with Enstaller from Enthought ? for a start on https://svn.enthought.com/enthought/wiki/Enstaller it claims to be depracated... > Can I make a few suggestions ? Sure.. > To be truly cross platform, consider > using the Tcl/Tk toolkit rather tahn > wxWindows. Why ? Because T

Python package Management GUI - New Project on Sourceforge

2009-02-01 Thread David Lyon
deserve. Regards David Lyon -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in popularity?

2008-11-25 Thread david . lyon
Quoting Lawrence D'Oliveiro <[EMAIL PROTECTED]>: Perl is the FORTRAN of scripting languages. Python is in some ways like Pascal. Java is like COBOL. C? Who knows... Your memory goes way back... haha -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in popularity?

2008-11-25 Thread david . lyon
Quoting John Machin <[EMAIL PROTECTED]>: pyExcelerator is abandonware. Check out xlwt (a fork of pyExcelerator) at http://pypi.python.org/pypi/xlwt Thanks John. That is very helpful. I will move to that product.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in popularity?

2008-11-24 Thread david . lyon
Quoting John Machin <[EMAIL PROTECTED]>: I'll try again: On what grounds do you assert that "Many libraries, aren't as sophisticated - ie spreadsheet reading and writing."? What Python spreadsheet reading and writing libraries have you used? In what way are they less sophisticated than their per

Re: Python surpasses Perl in popularity?

2008-11-24 Thread david . lyon
Quoting John Machin <[EMAIL PROTECTED]>: Care to elaborate on the relative unsophistication of Python spreadsheet reading and writing libraries? Cheers, John Not really. But one only has to use both languages on a regular basis to realise that perl is well ahead on the libaray/module front

Python surpasses Perl in popularity?

2008-11-24 Thread david . lyon
Interesting topic ! I would venture so far to say that perl is todays 'C'.. Perl is todays language of technical complexity. It is obscure, complex, and is oriented towards the supremely intelligent (or equally - those seeking to get 'lost' in programming). Python, whilst very powerful, d

Re: Python 2.5 and sqlite

2008-11-13 Thread david . lyon
Quoting Thorsten Kampe <[EMAIL PROTECTED]>: And even if you want to compile Python yourself, SQLite doesn't have to be _installed_. You simply can dump the files wherever you like and point Python to it. This is often necessary on a machine where you cannot install anything to the default locati

Re: Python 2.5 and sqlite

2008-11-12 Thread david . lyon
Thorsten, Quoting Thorsten Kampe <[EMAIL PROTECTED]>: * (Tue, 11 Nov 2008 17:58:15 -0500) > > Can you ask them if sqlite3 is installed? and if not... to install > > it? > > Why would he have to install SQLite?! Seems a stupid question. If he wants to use SQLite... it needs to be on the syst

Re: Python 2.5 and sqlite

2008-11-11 Thread david . lyon
> Can you ask them if sqlite3 is installed? and if not... to install it? Why would he have to install SQLite?! Seems a stupid question. If he wants to use SQLite... it needs to be on the system ould include in your discussions "well sqlite3 is part of python" > "if it isn't, you haven'

Re: Python 2.5 and sqlite

2008-11-10 Thread david . lyon
Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: Hi all, On a (sun) webserver that I use, there is python 2.5.1 installed. I'd like to use sqlite3 with this, however sqlite3 is not installed on the webserver. If I were able to compile sqlite using a sun machine (I normally use linux machines) a

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-04 Thread david . lyon
Hi Kurda, I have been through this problem. Somebody needs to write a FAQ. Took me a few days to pinpoint the problem. Don't know which platform but I assume Linux... Python depends upon Sqlite... which is weird... but it is what I discovered... When Python is being built.. it checks for sql

Re: Porting VB apps to Python for Window / Linux use

2008-10-19 Thread david . lyon
Quoting [EMAIL PROTECTED]: Stef Mientki: it's just Object Pascal , which is inferior to Python. They are quite different languages, you can't compare them in a simple way. Delphi is kinda old, so today there are better languages than Delphi (like D), but when Delphi 2-3 was out, there weren't

Python/Django hosting on "normal" hosting plans

2008-10-08 Thread david . lyon
Hi All, I have chosen to use a Django app for a customer site and wish to put it up on the net. Before I waste all day trying it myself (and probably getting it wrong) I thought I would ask the experts here. My questions are: - can most everyday vanilla linux web hosts run a django site

Re: Web shopping carts

2008-09-10 Thread david . lyon
Quoting Luke Hamilton <[EMAIL PROTECTED]>: I am wondering if there are any OS shopping cart application written in python? Hi Luke, I'm sure there are a few. But recently I have been asked by two customers to provide a solution. So I'm thinking about the same thing. Actually, I've

Re: Python web framework choice

2008-08-12 Thread david . lyon
Quoting Mahdi <[EMAIL PROTECTED]>: I need to develop a medium-sized database web application for my company. Given that: I don't know much about building web UI(s) but i have fair knowledge about HTML & My schedule is tight. a recommendation is v v v appreciated. I'm in the same boat a f

Help with displaying images in CherryPy

2008-07-19 Thread David Lyon
Hi all, I have a very simple question about configuration under CherryPy - it is such a simple one but I have been struggling to find an answer for a few days. All I want is a sample configuration file that will allow me to display a page with a jpeg on it. Whilst there are some examples i

Re: Rotating a cube

2008-07-19 Thread David Lyon
Lie wrote: On Jul 17, 3:11 pm, J-Burns <[EMAIL PROTECTED]> wrote: On Jul 17, 12:53 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: J-Burns wrote: Is there a built in Python function for this? for answering questions that have nothing to do with programming, and looks qui

Re: AW: Python embedding question.

2008-07-15 Thread David Lyon
Troeger, Thomas (ext) wrote: Thanks for your answer. The plattform is x86, so basically it's a PC with a compact flash drive. The problem is that the compact flash is rather limited in speed and size (there is other stuff on it too). Oh ok. Well just keep in mind that 4GB of flash memory can b

  1   2   >