Re: desperately looking for a howto on running my wxPython app on Vista

2009-05-06 Thread Paul Sijben
Mike Driscoll wrote: Hmmm...I'm not familiar with that DLL, but a little googling seems to indicate that you may be able to get it off your installation CD: it actually is there on my system. So this may be the red herring the Dependency Walker FAQ is warning for maybe I should leave

Re: desperately looking for a howto on running my wxPython app on Vista

2009-05-05 Thread Paul Sijben
Mike Driscoll wrote: On Apr 29, 4:17 am, Paul Sijben paul.sij...@xs4all.nl wrote: Is there any way to check which is the offending pyd/dll? (normally Vista does not give out much data on what went wrong) Paul You might be able to find it using the Dependency Walker utility: http

Re: desperately looking for a howto on running my wxPython app on Vista

2009-04-29 Thread Paul Sijben
Gabriel Genellina wrote: I am currently stuck on the infamous R6034 error but I understand that after that there may be another issue with certain wxPython functions. That should be fixed in Python 2.6.2, I think. Are you compiling all your dependencies, including Python itself? R6034 is

desperately looking for a howto on running my wxPython app on Vista

2009-04-28 Thread Paul Sijben
python 2.6, py2exe and Vista do not make a happy set. Unfortunately I am in dire need to launch my app not only on WinXP but also on Vista. I need 2.6 because of a number of support packages I am using and some of which I am compiling myself (and python 2.5 needs a version of visual studio that

Re: default shelve on linux corrupts, does different DB system help?

2009-03-22 Thread Paul Sijben
Thanks very much for a clear and concise explanation of the problem and the solution! I am implementing it now in my system. Luckily we caught this one during testing so no important data has been lost. Unfortunately windows does not seem to support gdbm. But in our case, everything that is on

default shelve on linux corrupts, does different DB system help?

2009-03-12 Thread Paul Sijben
I have the problem that my shelve(s) sometimes corrupt (looks like it has after python has run out of threads). I am using the default shelve so on linux I get the dbhash version. Is there a different DB type I can choose that is known to be more resilient? And if so, what is the elegant way of

import * and py2exe

2008-08-04 Thread Paul Sijben
I am trying to turn my application into a WinXP exe. Py2exe has packaged all my files up into one humongous executable. When trying to run the app, it complains that it can not find modules I just saw it include. These invariably are modules that have been imported using from modulename

giving imp.load_module not a real file, HOW?

2008-02-01 Thread Paul Sijben
I am running into a problem with the python interpreter's internals. For some reason imp.load_module insists on getting a real open file as the second parameter. I have not able to fool it with stringIO or overloaded file objects. So now I have two questions: 1) why does load_module insist on a

Pyrex bitten by the exception bug

2008-02-01 Thread Paul Sijben
I am running into the (apparently) well-known issue with pyrex that trying to raise an exception using python2.5 and pyrex will lead to a TypeError, as TypeError: exceptions must be strings, classes, or instances, not exceptions.ImportError Is there a fixc for this issue? best regards, Paul

Re: Pyrex bitten by the exception bug

2008-02-01 Thread Paul Sijben
Stefan Behnel wrote: Paul Sijben wrote: I am running into the (apparently) well-known issue with pyrex that trying to raise an exception using python2.5 and pyrex will lead to a TypeError, as TypeError: exceptions must be strings, classes, or instances, not exceptions.ImportError You

Re: encrypting python modules

2008-01-14 Thread Paul Sijben
How often do these things *actually* happen? Of those that actually do it, how many are clueless enough that when they run into problems they blame you for it? (And remember that you won't even find out about the non-clueless ones.) This is a rethorical question, right? --

Re: encrypting python modules

2008-01-14 Thread Paul Sijben
:47:26 +1100 Ben Finney [EMAIL PROTECTED] wrote: Paul Sijben [EMAIL PROTECTED] writes: I know that I can not stop a dedicated hacker deconstructing my code. A direct consequence of this is that you can not stop *anyone* from deconstructing your code if it's in their possession. It takes only

Re: encrypting python modules

2008-01-14 Thread Paul Sijben
Robert Latest wrote: Paul Sijben wrote: The problem: I have a client-server app written in python. I want to make sure that the client is not: 1) destabilized by users accidentally or on purpose dropping python files in the path (after which calling the helpdesk will not be useful) 2

encrypting python modules

2008-01-11 Thread Paul Sijben
of freeloaders. I am now considering overriding import with some code that will only import modules signed and crypted by me. However I can not imagine that I would be the first one planning to do this. So is there a solution like this available somewhere? Paul Sijben -- http://mail.python.org

Re: finding bluetooth serial port

2007-11-08 Thread Paul Sijben
thanks very much! Grant Edwards wrote: On 2007-11-07, Paul Sijben [EMAIL PROTECTED] wrote: To automate/ease configuration in my app I am trying to find out to which serial port a certain bluetooth device is connected. With pybluez I can find out which bluetooth devices I have

finding bluetooth serial port

2007-11-06 Thread Paul Sijben
am insterested in the platforms WinXP and linux primarily) Paul Sijben -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5.1 segfault, multithreading dual core issue?

2007-08-22 Thread Paul Sijben
thanks very much! I am currently compiling python with the patch and will test it over the coming days. Paul Hrvoje Niksic wrote: Paul Sijben [EMAIL PROTECTED] writes: I am running a multi-threaded python application in a dual core intel running Ubuntu. [...] Judging from the stack

python 2.5.1 segfault, multithreading dual core issue?

2007-08-21 Thread Paul Sijben
I am running a multi-threaded python application in a dual core intel running Ubuntu. I am using python 2.5.1 that I compiled myself. At random points I am getting segmentation faults (sometimes indicating a duplicate free). Below is the backtrace of the latest segfault. I am thinking this might

Re: Windows XP timezone language issue

2007-06-14 Thread Paul Sijben
MRAB wrote: On Jun 13, 7:31 am, Paul Sijben [EMAIL PROTECTED] wrote: I ran into an internationalization issue. I need a consistent idea about the timezone my application is running on. However when I run the following: import time time.tzname I get back ('West-Europa (standaardtijd

Windows XP timezone language issue

2007-06-13 Thread Paul Sijben
I ran into an internationalization issue. I need a consistent idea about the timezone my application is running on. However when I run the following: import time time.tzname I get back ('West-Europa (standaardtijd)', 'West-Europa (zomertijd)') which is in dutch (the language of the host

Re: audio video streaming communications

2007-03-07 Thread Paul Sijben
Hi Ken, I am looking for something similar. I can do the communications myself but need to be able to select a video feed, capture it and also need to display it through wxPython. Trawled the web and even tried to hire coders to create it for me. So far I have been having no luck. I did learn

worker thread catching exceptions and putting them in queue

2007-03-05 Thread Paul Sijben
All, in a worker thread setup that communicates via queues is it possible to catch exceptions raised by the worker executed, put them in an object and send them over the queue to another thread where the exception is raised in that scope? considering that an exception is an object I feel it

Re: worker thread catching exceptions and putting them in queue

2007-03-05 Thread Paul Sijben
Stargaming Diez, thanks very much! Stargaming wrote: Paul Sijben schrieb: All, in a worker thread setup that communicates via queues is it possible to catch exceptions raised by the worker executed, put them in an object and send them over the queue to another thread where the exception

Re: maximum number of threads

2007-01-10 Thread Paul Sijben
Gabriel Genellina wrote: Simply you can't, as you can't have 1 open files at once. Computer resources are not infinite. sure but *how* fast they run out is the issue here Do you really need so many threads? I might be able to do with a few less but I still need many. I have done a

Re: maximum number of threads

2007-01-10 Thread Paul Sijben
Felipe Almeida Lessa wrote: Maybe Stackless could help the OP? http://www.stackless.com/ thanks I will look into it! -- http://mail.python.org/mailman/listinfo/python-list

Re: convert binary data to int

2007-01-10 Thread Paul Sijben
in some cases struct.unpack would also help [EMAIL PROTECTED] wrote: Hello, I need to convert a 3 byte binary string like \x41\x00\x00 to 3 int values ( (65,0,0) in this case). The string might contain characters not escaped with a \x, like A\x00\x00 Any ideas? Daniel --

Re: maximum number of threads

2007-01-10 Thread Paul Sijben
All thanks for all the input! This was very informative. Looks like I indeed need stackless as my code benefits from being concurrently designed. Paul Jean-Paul Calderone wrote: On Wed, 10 Jan 2007 12:11:59 -0200, Felipe Almeida Lessa [EMAIL PROTECTED] wrote: On 1/10/07, Laurent Pointal

maximum number of threads

2007-01-09 Thread Paul Sijben
I have a server in Python 2.5 that generates a lot of threads. It is running on a linux server (Fedora Core 6). The server quickly runs out of threads. I am seeing the following error. File /home/sijben/ORCA/src/libmercury_mt.py, line 565, in __init__ MercuryObject.__init__(self,mylink)

Python UPnP on Linux?

2006-04-26 Thread Paul Sijben
I am writing some client software that needs to accept connections from the Internet. So I am looking for a UPnP implementation for a client of an Internet gateway so I can request the NAT binding. Googling on this I have found win32 implementations and Twisted implementations yet I am looking

Re: Python UPnP on Linux?

2006-04-26 Thread Paul Sijben
You are right of course but I was hoping to avoid that. Twisted is very large and has all kinds of internal dependencies. Sybren Stuvel wrote: Paul Sijben enlightened us with: Googling on this I have found win32 implementations and Twisted implementations yet I am looking for a way to do

Re: FOUNDIT (was Re: massive threading performance)

2006-04-25 Thread Paul Sijben
Lawrence D'Oliveiro wrote: In article [EMAIL PROTECTED], Paul Sijben [EMAIL PROTECTED] wrote: I found that the problem was caused by the sending thread not giving control back quickly enough to the receiving thread. Also in going through the code I found an old self.s.setblocking(0)call

UDP performance

2006-04-20 Thread Paul Sijben
scheduling? Paul Sijben -- http://mail.python.org/mailman/listinfo/python-list

Re: UDP performance

2006-04-20 Thread Paul Sijben
Serge Orlov wrote: Paul Sijben wrote: I am stumped by the following problem. I have a large multi-threaded server accepting communications on one UDP port (chosen for its supposed speed). I have been profiling the code and found that the UDP communication is my biggest drain on performance

Re: UDP performance

2006-04-20 Thread Paul Sijben
Serge Orlov wrote: Paul Sijben wrote: Serge Orlov wrote: Paul Sijben wrote: I am stumped by the following problem. I have a large multi-threaded server accepting communications on one UDP port (chosen for its supposed speed). I have been profiling the code and found that the UDP

Re: UDP performance

2006-04-20 Thread Paul Sijben
Martin P. Hellwig wrote: [snip] Is the connection 1:1 i.e. the receiving end receives data only from one sender at the time? And how do you handle lost packages in your application? no the server is receiving from multiple clients. and at the moment I do not handle lost packets. --

FOUNDIT (was Re: massive threading performance)

2006-04-20 Thread Paul Sijben
just 1. Thanks to those who took the time to respond to my earlier messages. Paul Paul Sijben wrote: OK the problem I posted about earlier is NOT a UDP/socket problem, it is a threading problem. Albeit one that only happens when you have many thrreads I have made two little scripts

massive threading performance (was:Re: UDP performance)

2006-04-20 Thread Paul Sijben
appreciate if anyone can shed light on this! Paul Paul Sijben wrote: I am stumped by the following problem. I have a large multi-threaded server accepting communications on one UDP port (chosen for its supposed speed). I have been profiling the code and found that the UDP communication is my