debugging ssl handshake failure

2012-03-19 Thread Ovidiu Deac
I have an HTTPS server written in python, based on ssl package. This application is running on 3 virtual machines which were created by clonning. The application works perfectly on 2 machines but on the third it doesn't. Instead of the normal "Server Hello" message it gives me an Alert Level: Fata

Re: regexp compilation error

2011-10-11 Thread Ovidiu Deac
Thanks for the answer. I will give a try to pypy regex. On Fri, Sep 30, 2011 at 4:56 PM, Vlastimil Brom wrote: > 2011/9/30 Ovidiu Deac : >> This is only part of a regex taken from an old perl application which >> we are trying to understand/port to our new Python implementa

Re: regexp compilation error

2011-09-30 Thread Ovidiu Deac
ern object at 0x7f4069cc3730> Is this a bug in python regex engine? Or maybe some incompatibility with Perl? On Fri, Sep 30, 2011 at 12:29 PM, Chris Angelico wrote: > On Fri, Sep 30, 2011 at 7:26 PM, Ovidiu Deac wrote: >> $ python --version >> Python 2.6.6 > > Ah, I think I

Re: regexp compilation error

2011-09-30 Thread Ovidiu Deac
$ python --version Python 2.6.6 On Fri, Sep 30, 2011 at 12:18 PM, Chris Angelico wrote: > On Fri, Sep 30, 2011 at 7:10 PM, Ovidiu Deac wrote: >> I have the following regexp which fails to compile. Can somebody explain why? >> >>>>> re.compile(r""&qu

regexp compilation error

2011-09-30 Thread Ovidiu Deac
I have the following regexp which fails to compile. Can somebody explain why? >>> re.compile(r"""^(?: [^y]* )*""", re.X) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib/python2.6/

Re: python logging writes an empty file

2010-03-26 Thread Ovidiu Deac
It worked. Setting disable_existing_loggers=False fixed my problem. Thanks to both of you! Ovidiu On Fri, Mar 26, 2010 at 9:09 PM, Vinay Sajip wrote: > On Mar 26, 4:26 pm, Ovidiu Deac wrote: >> Anyway, thanks for the first part. >> >> Anybody else has any idea why using t

Re: python logging writes an empty file

2010-03-26 Thread Ovidiu Deac
Anyway, thanks for the first part. Anybody else has any idea why using the same configuration file works when running the tests with nosetests and doesn't work with logging.config.fileConfig() ? -- http://mail.python.org/mailman/listinfo/python-list

Re: python logging writes an empty file

2010-03-26 Thread Ovidiu Deac
> You set le level of your handler, but did not set the level of the logger > itself. > Replace file.setLevel(logging.INFO) by > logging.getLogger().setLevel(logging.INFO) > > Log events are matched versus the logger level 1st, then the handler level > (if applicable). Most of the time you don't ne

Re: Automatic import ?

2010-03-26 Thread Ovidiu Deac
> But, as there is no case where AAA can be used without BBB, I would > like to avoid importing BBB in my Python scripts when I already import > AAA. Then why do you need to explicitely pass BBB() to AAA constructor? You could leave AAA constructor with no parameters or with a parameter with a def

python logging writes an empty file

2010-03-25 Thread Ovidiu Deac
Hi, I have the following situation: My application uses nosetests to discover&run the unittests. I pass the log configuration file as --logging-config=logging.conf Everything works just fine, the logs are printed as required by the configuration file which makes me happy. I take this as a sign th