distutils - setup - lib problem

2008-07-02 Thread rocksportrocker
Hi, I've got some problems with the following setup.py file. using python setup.py install -f it shows that wrap_ica.so is copied to /usr and not to /site-packages as I assumed. What am I doing wrong ? I'm using Python 2.4 on Debian Linux.

Distribute ctypes based modules

2008-07-02 Thread rocksportrocker
Hi, how do you distribute ctypes based modules on a linux machine ? What does your setup.py look like ? I have to copy my shared library to /usr/lib or another common place, but I would prefer .../site-packages/... In the latter case I have to modify LD_LIBRARY_PATH oder some ld.so.conf

problem with exec and locals()

2008-07-01 Thread rocksportrocker
Hi, the following code does not work until I ommit the a=0 statement. def test(): exec a=3 in locals() print a a=0 test() print raises: UnboundLocalError: local variable 'a' referenced before assignment Can anybody explain what is going wrong here ?

Displaying vtk files in a wxPython window

2008-04-09 Thread rocksportrocker
Hi, I want to visualize some vtk-files within a wxPython Window. Google did not help me very much, I only found some tools for Tk, what is no solution for me. I'm sure I am not the first one who asks this question Any hints ? Greetings, Uwe --

BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
Hi, I am trying to implement a local server for storing and retrieving numerical data. So I used BaseHTTPServer as follows: from BaseHTTPServer import * class Handler(BaseHTTPRequestHandler): def do_POST(self): print POST self.send_response(200) httpd =

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
On Feb 27, 1:28 pm, rocksportrocker [EMAIL PROTECTED] wrote: Hi, I am trying to implement a local server for storing and retrieving numerical data. So I used BaseHTTPServer as follows: from BaseHTTPServer import * class Handler(BaseHTTPRequestHandler): def do_POST(self

BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
Hi, I am trying to implement a local server for storing and retrieving numerical data. So I use BaseHTTPServer as follows: - from BaseHTTPServer import * class Handler(BaseHTTPRequestHandler): def do_POST(self):

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
If I ommit send_response() in do_POST() I get no errormessage. That is an acceptable solution for me. Greetings, Uwe -- http://mail.python.org/mailman/listinfo/python-list

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
On Feb 27, 2:50 pm, 7stud [EMAIL PROTECTED] wrote: ... I don't get that error. On the server, I get the output: POST localhost - - [27/Feb/2008 06:49:13] POST / HTTP/1.1 200 - and on the client I get: None In my case the server says: Traceback (most recent call last): File

Re: How to format a string from an array?

2007-06-13 Thread rocksportrocker
On Jun 13, 11:11 am, Allen [EMAIL PROTECTED] wrote: a = range(256) I want to output the formated string to be: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f f0 f1 f2