Re: Compiling extension with Visual C++ Toolkit Compiler - MSVCR80.dll

2007-01-30 Thread alexandre_irrthum
Thanks for your answers Martin and Peter, I figured out why python.exe was asking for MSVCR80.dll. The first time I compiled the library, MS Visual C++ Express 2005 was used during the build (despite my PATH pointing to MS Visual C++ Toolkit 2003). When I removed Express 2005, I forgot to remov

Compiling extension with Visual C++ Toolkit Compiler - MSVCR80.dll

2007-01-29 Thread alexandre_irrthum
Hi there, I am trying to install a Python library with a C extension (the Polygon library) and I am having a bad time. My Python version is Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59) [MSC v.1310 32 bit (Intel)] on Windows XP Pro. I have dutifully followed the instructi

Re: pyserial to read from DS1615 temperature recorder chip

2006-07-24 Thread alexandre_irrthum
Thanks Grant, > Can you verify that the device is actually responding by > watching the data line with an oscilloscope? I don't have an oscilloscope but the device does respond (LED blinks) when I send it a test command (44H). > I take it that means that other programs are able to read from > th

Re: pyserial to read from DS1615 temperature recorder chip

2006-07-24 Thread alexandre_irrthum
Gerhard Fiedler wrote: > On 2006-07-24 14:03:30, [EMAIL PROTECTED] wrote: > > > To read from the chip, one must issue the "read page" command (33h), > > followed by the two-byte address of the requested page (pages are 32 > > bytes long). After receiving this, the DS1615 will send the data in a > >

pyserial to read from DS1615 temperature recorder chip

2006-07-24 Thread alexandre_irrthum
Hi there, I am trying to use pyserial to read data from a temperature logger device (T-logger). T-logger is based on the DS1615 temperature recorder chip (Dallas Semiconductor). According to the DS1615 docs, writing to the chip is performed one byte at a time. To read from the chip, one must issu

SWIG: name 'new_doubleArray' is not defined

2006-05-17 Thread alexandre_irrthum
Hello, I am trying to use SWIG (1.3) to wrap some C code in Python (2.3.5) under Linux, but obviously I am missing something with arrays. This is my example.c file: double sum_array(double x[], int size) { int i; double sum = 0.0; for (i=0; i>> import example But this fa

ImageDraw line inconsistent ? (repost)

2006-04-07 Thread alexandre_irrthum
Hi there, Sorry to repost this, but I didn't get any answer one month ago. In essence, it seems that the ImageDraw line function draws lines one pixel shorter in some circumstances. This could be very annoying for some applications where precise geometry does matter. Below I test this function on

recursive map on nested list

2006-03-21 Thread alexandre_irrthum
Hello, I'd like to apply a function to elements of a nested list and wondered if there is anything more idiomatic and/or shorter than this recursive way: >>> def recur_map(f, data): ... if isinstance(data, list): ... mapped_list = [] ... for i in data: ...

puzzled by ImageDraw line

2006-03-02 Thread alexandre_irrthum
Hi there, I am puzzled by the comportment of the line function from the ImageDraw module with regard to the way it draws or does not draw the last pixel of a line. Below I test this function on a 3x3 image and show schematic representations of obtained images (where o means a drawn pixel) import