Re: weird embedding problem

2007-12-07 Thread DavidM
On Fri, 07 Dec 2007 00:53:15 -0800, Graham Dumpleton wrote: Are you actually linking your C program against the Python library? Yes. Refer OP: I'm embedding python in a C prog which is built as a linux shared lib. The prog is linked against libpython, and on startup, it calls

weird embedding problem

2007-12-06 Thread DavidM
Hi all, I'm embedding python in a C prog which is built as a linux shared lib. The prog is linked against libpython, and on startup, it calls Py_Initialize(). The prog imports a pure-python script. The script starts up ok, but when it imports the 'math' module, the import fails with: Traceback

pre-ANN: DVEdit - Video Editing the Python Way

2007-11-22 Thread DavidM
Hi fellow pythonistas, I've put up an initial pre-alpha release of DVEdit - a highly pythonic free/opensource framework for scripted video editing and production. http://www.freenet.org.nz/dvedit It's in very early stages, mainly proof of concept, but I feel pretty happy with the core classes

Re: New to python

2007-09-29 Thread DavidM
On Sat, 29 Sep 2007 21:20:10 -0700, Googy wrote: I am new to python... The programming language i know well is C Can any one recommend me the good ebook for beginners. I have loads of ebooks but i am not able to decide which to start with which book. Also i am learning XML so later on i

ANN: y4m - Python video editing framework

2007-09-29 Thread DavidM
Hi all, Just a quick message to announce the latest release (v0.1.1) of the 'y4m' framework. www.freenet.org.nz/y4m What is 'y4m'? y4m is a python framework for manipulating yuv4mpeg video streams. Young but growing rapidly. It offers an intuitive Python API for: - opening yuv4mpeg streams

ANN: Python bindings for mjpegtools (yuv4mpeg)

2007-09-02 Thread DavidM
Hi, I've built some bindings for the yuv4mpeg API, supporting both Python and C++. http://www.freenet.org.nz/pyyuv4mpeg/ Based on SWIG, implements virtually the whole API as given in yuv4mpeg.h, and also implements a high-level 'Stream' class in both C++ and Python. These bindings allow easy

python video editing libs

2007-08-17 Thread DavidM
Hi, Does anyone know of any python or python-wrapped libs for video editing? My requirements: - open video files in any of the popular containers (avi, mov, ogg, flv etc) and all the popular codecs (mpeg3, theora, mpeg2 etc) and audio codecs (raw, wav, mp3 etc) - get an abstract video

ANN: PyBridge: Drupal modules in Python

2007-07-13 Thread DavidM
Hi all, I wonder if I'm the only one who likes the Drupal (www.drupal.org) web CMS framework, but much prefers Python as a programming language. Anyway, I've put up the first cut of PyBridge - a framework that allows Drupal extension modules to be written in Python.

Re: simplifying algebraic expressions

2007-06-26 Thread DavidM
On Tue, 26 Jun 2007 11:11:39 +0100, Robin Becker wrote: I have seen this sort of evolution strategy in the past and it's very wrong to attempt to simplify outside the genetic framework. The implication is that you know better than the overall fitness requirement. The additional

Re: simplifying algebraic expressions

2007-06-26 Thread DavidM
On Tue, 26 Jun 2007 04:22:23 -0700, Mark Westwood wrote: I'm with Robin Becker on this one, if GP is good enough for your problem, then the answers it produces should be good enough. Set the fitness criteria in favour of shorter rather than longer expressions and let you system run a little

ANN: YahooQuote 0.1.0

2007-06-25 Thread DavidM
Hi, After a 3-year break from working with it, I've just released version 0.1.0 (the first formally packaged release) of YahooQuote. As the name implies, it's a stockmarket prices fetcher. Features: - easily fetch stock price quotes and histories - fetch bulk histories across one or more of

simplifying algebraic expressions

2007-06-25 Thread DavidM
Hi, Are there any libraries for manipulating algebraic expression trees? In particular, take an expression tree and simplify it down. I'm working up the next release of PyGene, the genetic programming and genetic algorithms library. Part of PyGene works with trees holding algebraic expressions.