EuroPython 2019: Please configure your tickets

2019-05-28 Thread M.-A. Lemburg
Since our website was updated this year, we would like to remind you how you can configure your tickets and profiles, so that we get the right information for printing badges and adjusting catering counts. We also had a few issues with the ticket configuration and assignments last week. As a

Re: How to configure trusted CA certificates for SSL client?

2017-02-07 Thread MeV
On Tuesday, February 7, 2017 at 9:42:54 AM UTC-8, Yang, Gang CTR (US) wrote: > My question is where does SSL client code get the trusted CA certificates > from, from Python or the underlying OS? What configuration do I need in order > for the SSL client to conduct the SSL handshake successfully?

How to configure trusted CA certificates for SSL client?

2017-02-07 Thread Yang, Gang CTR (US)
Hi, I'm using Python 3.X (3.5 on Windows 2008 and 3.4 on CentOS 6.7) and encountered an SSL client side CA certificates issue. The issue came up when a third-party package (django-cas-ng) tried to verify the CAS service ticket (ST) by calling CAS server using requests.get(...) and failed with

How to configure SSL client trusted CA certificates?

2017-02-07 Thread gangyang7
Hi, I'm using Python 3.X (3.5 on Windows 2008 and 3.4 on CentOS 6.7) and encountered an SSL client side CA certificates issue. The issue came up when a third-party package (django-cas-ng) tried to verify the CAS service ticket (ST) by calling CAS server using requests.get(...) and failed with

Re: Style().configure don't works for all widgets

2016-11-18 Thread Peter Otten
Luis Marzulli wrote: > ttk.Style().configure(".", font=('Courier New', 30, "bold")) > > works for Button and Label widgets (and maybe others) and don't works for > Entry widget? > > Example in Python 3: > from tkinter import * > from t

Style().configure don't works for all widgets

2016-11-18 Thread Luis Marzulli
Hi Why ttk.Style().configure(".", font=('Courier New', 30, "bold")) works for Button and Label widgets (and maybe others) and don't works for Entry widget? Example in Python 3: from tkinter import * from tkinter import ttk from tkinter import font root = T

Re: how raspi-idle3 configure?

2016-07-12 Thread Egon Mueller
It is a little bit helpful and very interesting, but answers to my question isn't available. I have to search again. Am 12.07.2016 um 20:33 schrieb memilanuk: Egon Mueller online.de> writes: Where can read a beginner so simple things about handling the python 3 idle3? I don't think about py

Re: how raspi-idle3 configure?

2016-07-12 Thread memilanuk
Egon Mueller online.de> writes: > > Where can read a beginner so simple things about handling the python 3 > idle3? I don't think about python programming, only about better > handling the ide. > This link might be of some help... https://hkn.eecs.berkeley.edu/~DYOO/python/idle_intro/index.h

how raspi-idle3 configure?

2016-07-12 Thread Egon Mueller
Hello, is there a manual concerning the python3-ide on a raspberry / debian jessie? - The menue bar and the items there would I like to have a little bit greater for better readability. - After running a program is needed long search to return to editing window. - Where can read a beginne

EuroPython 2016: Please configure your tickets

2016-07-04 Thread M.-A. Lemburg
The EuroPython website supports buying tickets for other people (friends, colleagues, etc.). As a result, it is necessary to assign the tickets you buy to either yourself or someone else. The assignment process is explained below. Please tell us your preferences --- T

building Demo/embed on Mac OS 10.10 from source: configure args?

2015-10-06 Thread vaporbleep
I'm trying to build the embedding demo (Demo/embed in the source directory) After configuring with $ ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.10 And calling "make" in the root source directory to build python.exe I then change directory to Demo/embed and edit L

Re: python---configure file

2015-09-08 Thread Laura Creighton
In a message of Tue, 08 Sep 2015 10:00:26 +0800, "chenc...@inhand.com.cn" write s: > >hi: >I download the python2.7.10 package and execute cmd: ./configure >--help.It is messages as follow: > >Optional Packages: >--with-PACKAGE[=ARG]use PACKA

python---configure file

2015-09-07 Thread chenc...@inhand.com.cn
hi: I download the python2.7.10 package and execute cmd: ./configure --help.It is messages as follow: Optional Packages: --with-PACKAGE[=ARG]use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-universal-archs=ARCH

python---configure file

2015-09-07 Thread chenc...@inhand.com.cn
hi: I download the python2.7.10 package and execute cmd: ./configure --help.It is messages as follow: Optional Packages: --with-PACKAGE[=ARG]use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-universal-archs=ARCH

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-17 Thread Michael Torrie
On 06/16/2015 12:19 PM, Chris Warrick wrote: > On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán wrote: >> I tried that but it didn't work. >> >> I had to change /etc/selinux/config and reboot to make it work. It would be >> nice if the wsgi module generated some log that explains why you get the >>

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Chris Angelico
On Wed, Jun 17, 2015 at 4:22 AM, Néstor Boscán wrote: >> On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán wrote: >> > I tried that but it didn't work. >> > >> > I had to change /etc/selinux/config and reboot to make it work. It >> > would be >> > nice if the wsgi module generated some log that exp

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Néstor Boscán
On Tuesday, June 16, 2015, Chris Warrick wrote: > On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán > wrote: > > I tried that but it didn't work. > > > > I had to change /etc/selinux/config and reboot to make it work. It > would be > > nice if the wsgi module generated some log that explains why y

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Chris Warrick
On Tue, Jun 16, 2015 at 8:14 PM, Néstor Boscán wrote: > I tried that but it didn't work. > > I had to change /etc/selinux/config and reboot to make it work. It would be > nice if the wsgi module generated some log that explains why you get the > 403. There are several posibilities. Well, that’s

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Néstor Boscán
I tried that but it didn't work. I had to change /etc/selinux/config and reboot to make it work. It would be nice if the wsgi module generated some log that explains why you get the 403. There are several posibilities. Regards, Nestor On Tuesday, June 16, 2015, Chris Warrick wrote: > On Tue,

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Chris Warrick
On Tue, Jun 16, 2015 at 12:11 PM, Néstor Boscán wrote: > I disabled selinux completely and the page worked. So, selinux was the problem (which is typical, it’s a really dumb piece of software) The command to disable enforcing temporarily is actually "setenforce 0". Though you would need to issue

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Néstor Boscán
Hi I disabled selinux completely and the page worked. Regards, Nestor On Tuesday, June 16, 2015, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tuesday 16 June 2015 13:31, Néstor Boscán wrote: > > > Tried it and I keep having the same error. Isn't there a log file where I

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-16 Thread Steven D'Aprano
On Tuesday 16 June 2015 13:31, Néstor Boscán wrote: > Tried it and I keep having the same error. Isn't there a log file where I > can check what is causing this? Probably. Have you googled for "selinux log file"? We're not experts on SELinux, this is a Python mailing list, not a specialist SEL

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-15 Thread Néstor Boscán
google the related configuration. > > > from ex-redhatter > > 2015-06-12 20:51 GMT+08:00 Néstor Boscán : > >> Hi >> >> I've been trying to configure Apache and Python 2.7 on Red Hat. I've >> tried the different configurations i've seen on the w

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-14 Thread zhou weitao
selinux is causing this, I guess. Please try run *setenforce 1* to bypass it firstly. If it works then google the related configuration. from ex-redhatter 2015-06-12 20:51 GMT+08:00 Néstor Boscán : > Hi > > I've been trying to configure Apache and Python 2.7 on Red Hat. I&

Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-12 Thread Néstor Boscán
Hi I've been trying to configure Apache and Python 2.7 on Red Hat. I've tried the different configurations i've seen on the web, I've given chmod -R 777 tu my python code but I still get 403 Forbidden and I don't get any errors. Regards, Néstor -- https://mail.py

EuroPython 2015: Please configure your tickets

2015-06-06 Thread M.-A. Lemburg
edit the fields of the ticket Please see the blog post for full instructions and screenshots and how the ticket assignment and preference editing works: http://blog.europython.eu/post/120850074162/europython-2015-please-configure-your-tickets Enjoy

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-17 Thread Veek M
Dumped uwsgi - the documentation is utterly ridculous!! Switched to 'Bottle' - very nice, intutive and clean - tutorial+documentation is excellent and i got 'hello world' up and running in like 10-15 minutes vs the 2 days intermittent it took to scroll through the crap that is uwsgi-server. It

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12 -- https://mail.python.org/mailman/listinfo/python-list

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
Just to be very very clear about this: 1. I have never worked seriously with Javascript, frameworks, django, flask etc. 2. I can write CGI on Apache. 3. I have never worked with nginx untill 2 days ago. 4. All this started because I wanted to mess with SQL/CSS/HTML5. 5. Some frigging! *moron* on I

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
Chris Warrick wrote: > This is NOT how uwsgi works! You cannot use plain .py files with it, > and for good reason ? CGI should be long dead. > > What you need to do is, you must write a webapp ? in Flask, for > example. Then you must craft an .ini file that mentions this. **Hi Chris, Could you

Re: uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Chris Warrick
On Tue, Dec 16, 2014 at 4:01 PM, Veek M wrote: > Has anyone got the thing to work? I want to run some python database scripts > on nginx. Because that will have a simple web-UI, i decided to go with > uWSGI. It's proving to be a massive pain. > > I found a decent book for nginx and got that bit wo

uWSGI, nGinx, and python on Wheezy: how do you configure it?

2014-12-16 Thread Veek M
Has anyone got the thing to work? I want to run some python database scripts on nginx. Because that will have a simple web-UI, i decided to go with uWSGI. It's proving to be a massive pain. I found a decent book for nginx and got that bit working. The query gets sent to uWSGI but for some reaso

Re: Qml Error on CentOS6.4 when ./configure ?

2013-12-10 Thread Steven D'Aprano
On Mon, 09 Dec 2013 16:38:19 +0800, levinie wrote: > I install latest QT5 and PyQt5 on CentOS6.4 And here is some error: Sorry, I have no experience installing QT or PyQT. If you don't get a response here, perhaps you should try on a dedicated QT or PyQT forum. It will probably help if you expl

Qml Error on CentOS6.4 when ./configure ?

2013-12-09 Thread levinie
I install latest QT5 and PyQt5 on CentOS6.4 And here is some error: g++ -c -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt/5.1.1/gcc_64/mkspecs/linux-g++ -I. -I. -I../../QtQml -I/opt/python/include/python2.7 -I/opt/Qt/5.1.1/

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Alex
Fabio Zadrozny wrote: > On Thu, Sep 6, 2012 at 10:43 AM, Alex wrote: > > Ramchandra Apte wrote: > > > >> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > >> > I'm new to Python and have been using IDLE 3.2.3 to experiment > with >> > > >> > code as I learn. Despite being configured

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-10-17 Thread Fabio Zadrozny
On Thu, Sep 6, 2012 at 10:43 AM, Alex wrote: > Ramchandra Apte wrote: > >> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: >> > I'm new to Python and have been using IDLE 3.2.3 to experiment with >> > >> > code as I learn. Despite being configured to use a 4 space >> > indentation >> >

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-06 Thread Alex
Terry Reedy wrote: [snip] > IDLE is not the interpreter. Fine, I meant shell. Thanks for fixing that for me. > The IDLE Shell is intended mainly for single-line inputs. Maybe it should be limited to that, then. That way stoopid noobs like me don't use it wrong and then use the wrong nomencla

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-06 Thread Terry Reedy
On 9/6/2012 9:43 AM, Alex wrote: On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: I'm new to Python and have been using IDLE 3.2.3 to experiment with code as I learn. Despite being configured to use a 4 space indentation width, sometimes IDLE's "smart" indentation insists >>> upon

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-06 Thread Ramchandra Apte
On Thursday, 6 September 2012 19:13:23 UTC+5:30, Alex wrote: > Ramchandra Apte wrote: > > > > > On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > > > > I'm new to Python and have been using IDLE 3.2.3 to experiment with > > > > > > > > code as I learn. Despite being configured t

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-06 Thread Alex
Ramchandra Apte wrote: > On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > > I'm new to Python and have been using IDLE 3.2.3 to experiment with > > > > code as I learn. Despite being configured to use a 4 space > > indentation > > > > width, sometimes IDLE's "smart" indentation insi

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-09-05 Thread Ramchandra Apte
On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex wrote: > I'm new to Python and have been using IDLE 3.2.3 to experiment with > > code as I learn. Despite being configured to use a 4 space indentation > > width, sometimes IDLE's "smart" indentation insists upon using width-8 > > tabs. > >

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-25 Thread Terry Reedy
On 8/25/2012 10:17 AM, Alex wrote: Yes, that appears to be the issue I was talking about and is, in fact, one of the threads I had looked at before posting here. Of course, I didn't pay enough attention to the dates. I see the most recent posting on the issue appears to have been made in January

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-25 Thread Alex
Mark Lawrence wrote: > On 25/08/2012 13:50, Alex wrote: > > Terry Reedy wrote: > > > > > On 8/24/2012 6:33 PM, Alex wrote: > > > > Despite being configured to use a 4 space > > > > indentation > > ... > > > > sometimes IDLE's "smart" indentation insists upon using > > > > width-8 tabs. > > > > >

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-25 Thread Mark Lawrence
On 25/08/2012 13:50, Alex wrote: Terry Reedy wrote: On 8/24/2012 6:33 PM, Alex wrote: Despite being configured to use a 4 space indentation ... sometimes IDLE's "smart" indentation insists upon using width-8 tabs. [The 4-space indentation setting] applies to the editor and works in the edi

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-25 Thread Alex
Terry Reedy wrote: > On 8/24/2012 6:33 PM, Alex wrote: > > Despite being configured to use a 4 space > > indentation ... > > sometimes IDLE's "smart" indentation insists upon using > > width-8 tabs. > > [The 4-space indentation setting] applies to the editor and works in > the editor for me and

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-25 Thread Terry Reedy
On 8/24/2012 6:33 PM, Alex wrote: I'm new to Python and have been using IDLE 3.2.3 to experiment with code as I learn. Despite being configured to use a 4 space indentation That applies to the editor and works in the editor for me and others. A tab becomes 4 space characters, and a backspace i

Is there a way to configure IDLE to use spaces instead of tabs for indenting?

2012-08-24 Thread Alex
I'm new to Python and have been using IDLE 3.2.3 to experiment with code as I learn. Despite being configured to use a 4 space indentation width, sometimes IDLE's "smart" indentation insists upon using width-8 tabs. >From what I've been able to find on Google, this is due to a shortcoming in Tk. W

Re: How to configure Tkinter Listbox to disable state keeping selected item highlighted

2012-07-18 Thread Rick Johnson
On Tuesday, July 17, 2012 8:55:21 AM UTC-5, Sarbjit singh wrote: > I am having a problem configuring a listbox widget such that the selection > remains highlighted even while it is set (programmatically) to the DISABLED > state. Below code shows the problem: > > from Tkinter import * > master =

Re: How to configure Tkinter Listbox to disable state keeping selected item highlighted

2012-07-17 Thread inq1ltd
On Tuesday, July 17, 2012 06:55:21 AM Sarbjit singh wrote: > I am having a problem configuring a listbox widget such that the selection > remains highlighted even while it is set (programmatically) to the DISABLED > state. Below code shows the problem: > > from Tkinter import * > master = Tk() >

How to configure Tkinter Listbox to disable state keeping selected item highlighted

2012-07-17 Thread Sarbjit singh
I am having a problem configuring a listbox widget such that the selection remains highlighted even while it is set (programmatically) to the DISABLED state. Below code shows the problem: from Tkinter import * master = Tk() listbox = Listbox(master) listbox.pack() listbox.insert(END, "Text1")

how to write configure

2012-07-09 Thread contro opinion
PyGObject uses the standard autotools for the build infrastructure. To build, it should be as simple as running: $ ./configure --prefix= my python2.7 is in /usr/lib/python2.7 will i write : ./configure --prefix=/usr/lib/python2.7 or ./configure --prefix=/usr/lib -- http

Re: ./configure

2012-06-05 Thread Janet Heath
On Jun 3, 10:01 pm, Janet Heath wrote: > On Jun 3, 6:31 pm, Steven D'Aprano > > > > > > > > > +comp.lang.pyt...@pearwood.info> wrote: > > On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: > > > Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am > > > thinking that it isn't se

Re: ./configure

2012-06-04 Thread Irmen de Jong
On 4-6-2012 0:01, Janet Heath wrote: > > Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking > that it > isn't set in my $PATH variable. I don't know where the $PATH is set at. I > will > check to see if their is a binary. You'll have to have the Apple Developer tool

RE: ./configure

2012-06-04 Thread Prasad, Ramit
> > Thanks Alain. I should have a compiler on my Mac OS X Lion. I am > thinking that it isn't set in my $PATH variable. I don't know where the > $PATH is set at. I will check to see if their is a binary. > > You need to install the command line tools package within XCode in > order to get them

Re: ./configure

2012-06-03 Thread Janet Heath
On Jun 3, 6:31 pm, Steven D'Aprano wrote: > On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: > > Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am > > thinking that it isn't set in my $PATH variable.  I don't know where the > > $PATH is set at.  I will check to see if their

Re: ./configure

2012-06-03 Thread William R. Wing (Bill Wing)
On Jun 3, 2012, at 8:31 PM, Steven D'Aprano wrote: > On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: > >> Thanks Alain. I should have a compiler on my Mac OS X Lion. I am >> thinking that it isn't set in my $PATH variable. I don't know where the >> $PATH is set at. I will check to see

Re: ./configure

2012-06-03 Thread Steven D'Aprano
On Sun, 03 Jun 2012 15:01:07 -0700, Janet Heath wrote: > Thanks Alain. I should have a compiler on my Mac OS X Lion. I am > thinking that it isn't set in my $PATH variable. I don't know where the > $PATH is set at. I will check to see if their is a binary. At the command line, run: echo $PAT

Re: ./configure

2012-06-03 Thread Benjamin Kaplan
> > Thanks Alain.  I should have a compiler on my Mac OS X Lion.  I am thinking > that it isn't set in my $PATH variable.  I don't know where the $PATH is set > at.  I will check to see if their is a binary. > -- > http://mail.python.org/mailman/listinfo/python-list You need to install the comma

Re: ./configure

2012-06-03 Thread Andrew Berg
On 6/3/2012 5:01 PM, Janet Heath wrote: > Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking > that it isn't set in my $PATH variable. I don't know where the $PATH is set > at. I will check to see if their is a binary. There are always Windows and OS X binary installers

Re: ./configure

2012-06-03 Thread Robert Kern
On 6/3/12 11:01 PM, Janet Heath wrote: Thanks Alain. I should have a compiler on my Mac OS X Lion. I am thinking that it isn't set in my $PATH variable. I don't know where the $PATH is set at. I will check to see if their is a binary. Lion does not come with a compiler out-of-box. You ha

Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote: > Hi, > > I am trying to run the ./configure but I keep getting this: > > > configure:2756: checking for --enable-universalsdk > configure:2797: result: no > configure:2806: checking for --with-universal-archs

Re: ./configure

2012-06-03 Thread Chris Angelico
On Mon, Jun 4, 2012 at 7:19 AM, Janet Heath wrote: > configure:3534: error: no acceptable C compiler found in $PATH The configure script is used to build Python from source. To do that, you need a C compiler (such as gcc, which it went looking for a few lines earlier). Perhaps you want a bin

Re: ./configure

2012-06-03 Thread Alain Ketterlin
Janet Heath writes: [...] > configure:3161: checking machine type as reported by uname -m > configure:3164: result: x86_64 > configure:3177: checking for --without-gcc > configure:3221: result: no > configure:3282: checking for gcc > configure:3312: result: no > configure:

Re: ./configure

2012-06-03 Thread Janet Heath
On Sunday, June 3, 2012 3:19:16 PM UTC-6, Janet Heath wrote: > Hi, > > I am trying to run the ./configure but I keep getting this: > > > configure:2756: checking for --enable-universalsdk > configure:2797: result: no > configure:2806: checking for --with-universal-archs

./configure

2012-06-03 Thread Janet Heath
Hi, I am trying to run the ./configure but I keep getting this: configure:2756: checking for --enable-universalsdk configure:2797: result: no configure:2806: checking for --with-universal-archs configure:2823: result: 32-bit configure:2980: checking MACHDEP configure:3129: result: darwin

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-18 Thread Jeffrey Britton
I was sent via email an alternative solution which is working even better for me. In Python code use: class AppFileHandler(logging.FileHandler): def __init__(self, *args): filename, mode = args if not os.path.isabs(filename): filename = os.path.join(os.environ['APPD

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-18 Thread Jean-Michel Pichavant
Jeffrey Britton wrote: Hi, An alternative is to subclass FileHandler with a handler customized for your app. class AppFileHandler(FileHandler): def __init__(filename): if not os.path.isabs(filename): filename = os.path.join(os.environ['APPDATA'], 'whateverdir', filename) Fil

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-17 Thread Jean-Michel Pichavant
Jeffrey Britton wrote: I figured out what I was after. logfn = os.path.join(os.environ['APPDATA'], directory, filename) ensure_path(logfn) logging.config.fileConfig("logging.conf", defaults={'logfn': logfn}) In the config file use: [handler_fileHandler] class=FileHandler level=DEBUG formatter=s

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-16 Thread Jeffrey Britton
I figured out what I was after. logfn = os.path.join(os.environ['APPDATA'], directory, filename) ensure_path(logfn) logging.config.fileConfig("logging.conf", defaults={'logfn': logfn}) In the config file use: [handler_fileHandler] class=FileHandler level=DEBUG formatter=simpleFormatter args=(r'%(

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-16 Thread Jeffrey Britton
I figured out a method to enumerate all loggers. root = logging.getLogger() for key in root.manager.loggerDict.keys(): logger = logging.getLogger(key) -- http://mail.python.org/mailman/listinfo/python-list

logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-16 Thread Jeffrey Britton
I have a logging configuration file that I load via logging.config.fileConfig. The configuration file, configures a FileHandler to log to file. I wish to initialize the FileHandler to the path os.environ['APP_DATA']. However, I don't know how to configure anything other than a s

Re: ActivePython - how to configure portable framework?

2010-05-08 Thread Sridhar
Copy all the files in the ZIP to your USB stick and run INSTALLDIR\python.exe -srid On 5/7/2010 3:24 AM, balzer wrote: I downloaded ActivePython-2.6.5.12-win32-x86.zip, it contains two folders and 3 files: SystemFolder INSTALLDIR sh2.py install.bat _install.py Anyone know how to configure

ActivePython - how to configure portable framework?

2010-05-07 Thread balzer
I downloaded ActivePython-2.6.5.12-win32-x86.zip, it contains two folders and 3 files: SystemFolder INSTALLDIR sh2.py install.bat _install.py Anyone know how to configure this Python environment as "portable application" to work with it without installation, to set a fully-function

Re: it gets worse (was: How do you configure IDLE on a Mac...)

2010-01-05 Thread Mensanator
On Jan 5, 4:03 pm, Ned Deily wrote: > In article > <6672dad2-26ba-458b-8075-21bac6506...@e37g2000yqn.googlegroups.com>, Mensanator > wrote: > > [...] > > > > > > > So, for all practical purposes, the macports install is broken also. > > > IDLE simply does not work in an X11 window (you think som

Re: it gets worse (was: How do you configure IDLE on a Mac...)

2010-01-05 Thread Ned Deily
In article <6672dad2-26ba-458b-8075-21bac6506...@e37g2000yqn.googlegroups.com>, Mensanator wrote: [...] > So, for all practical purposes, the macports install is broken also. > > IDLE simply does not work in an X11 window (you think someone would > have noticed that). The missing preferences is

it gets worse (was: How do you configure IDLE on a Mac...)

2010-01-05 Thread Mensanator
et a > > "shell" whose > > parent is named "IDLE"! And that one has a completely different > > preferences, > > one similar the the Windows Configure which allows me to set the font! > > > Now, if I close this shell and start IDLE from the

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Ned Deily
> have an X11 > parent application for which there are no "preferences" applicable to > fonts. > > However, if I use the quick launcher from the python.org, I get a > "shell" whose > parent is named "IDLE"! And that one has a completely different

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Mensanator
On Jan 4, 9:17 am, "Alf P. Steinbach" wrote: > * Mensanator: > > > ...because there's no [Options] menu on the shell window? > > > Or at least give me a clue to how to use Courier New font? > > > For some inscrutable reason, depite the plethora of formatting tools, > > someone decided that proport

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Mensanator
11 Depending on how you launch it. If I type "idle" at a command prompt, I get a shell window whose parent is X11. Here you will get X11 preferences which can't be used to change fonts. If I click the IDLE icon, then I get a shell whose parent is IDLE, not X11 and here you'll fin

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Mensanator
n X11 parent application for which there are no "preferences" applicable to fonts. However, if I use the quick launcher from the python.org, I get a "shell" whose parent is named "IDLE"! And that one has a completely different preferences, one similar the the Windows Con

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Mensanator
On Jan 4, 10:05 am, Benjamin Kaplan wrote: > On Sun, Jan 3, 2010 at 8:42 PM, Mensanator wrote: > > ...because there's no [Options] menu on the shell window? > > > Or at least give me a clue to how to use Courier New font? > > > For some inscrutable reason, depite the plethora of formatting tools,

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Ned Deily
In article , Benjamin Kaplan wrote: > On Sun, Jan 3, 2010 at 8:42 PM, Mensanator wrote: > > ...because there's no [Options] menu on the shell window? > > > > Or at least give me a clue to how to use Courier New font? > > > > For some inscrutable reason, depite the plethora of formatting tools,

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Steve Holden
Alf P. Steinbach wrote: > * Mensanator: >> ...because there's no [Options] menu on the shell window? >> >> Or at least give me a clue to how to use Courier New font? >> >> For some inscrutable reason, depite the plethora of formatting tools, >> someone decided that proportional spaced fonts ought t

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Benjamin Kaplan
On Sun, Jan 3, 2010 at 8:42 PM, Mensanator wrote: > ...because there's no [Options] menu on the shell window? > > Or at least give me a clue to how to use Courier New font? > > For some inscrutable reason, depite the plethora of formatting tools, > someone decided that proportional spaced fonts ou

Re: How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Alf P. Steinbach
* Mensanator: ...because there's no [Options] menu on the shell window? Or at least give me a clue to how to use Courier New font? For some inscrutable reason, depite the plethora of formatting tools, someone decided that proportional spaced fonts ought to be the default for IDLE. Why not jus

How do you configure IDLE on a Mac, seeing as there's no Configure Option...

2010-01-04 Thread Mensanator
...because there's no [Options] menu on the shell window? Or at least give me a clue to how to use Courier New font? For some inscrutable reason, depite the plethora of formatting tools, someone decided that proportional spaced fonts ought to be the default for IDLE. -- http://mail.python.org/ma

Can I configure Markdown to not wrap my text in elements?

2009-12-22 Thread Stodge
I want to use Markdown to process some text before displaying it in a list. However, Markdown, by default, wraps the resulting text in elements, which screws up my list and displays the list item symbol and text on different lines. Can I stop Markdown from wrapping text in paragraphs elements? Sor

Re: can i configure IDLE to use python 3.2 on fedora?

2009-11-10 Thread Aahz
d-coded(?) to still refer to >the officially-installed python-2.6. i see no way to configure idle >to use the "python3" executable instead. Just find your python3 IDLE, I think it's in Tools/ -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft

Re: Python 2.6.4: ./configure does not work

2009-10-31 Thread Ned Deily
In article , knipknap wrote: > Huh, looks like the .bz2 package is broken (even though the md5 is > fine). The .gz works fine. Hmm, the .bz2 from the official download page http://www.python.org/download/releases/2.6.4/ seems to have a perfectly good README and Makefile.pre.in. Problem with

Re: Python 2.6.4: ./configure does not work

2009-10-31 Thread knipknap
On 31 Okt., 11:40, Albert Hopkins wrote: > Which sources are you referring to?  Can you verify the checksums: > > 17dcac33e4f3adb69a57c2607b6de246  13322131  Python-2.6.4.tgz > fee5408634a54e721a93531aba37f8c1  11249486  Python-2.6.4.tar.bz2 > > There is a README at the root of the tarball: Huh,

Re: Python 2.6.4: ./configure does not work

2009-10-31 Thread Albert Hopkins
On Sat, 2009-10-31 at 03:07 -0700, knipknap wrote: > Hi, > > Running ./configure in the 2.6.4 sources produces the following error: > > config.status: error: cannot find input file: Makefile.pre.in > > Indeed, such a file is not contained anywhere in the Pakage.

Python 2.6.4: ./configure does not work

2009-10-31 Thread knipknap
Hi, Running ./configure in the 2.6.4 sources produces the following error: config.status: error: cannot find input file: Makefile.pre.in Indeed, such a file is not contained anywhere in the Pakage. Also, I found this note: "The Unix build and install process is explained clearly in the R

Best way to configure a logger hierarchy (was Re: A new way to configure Python logging)

2009-10-26 Thread Jean-Michel Pichavant
f topic, don't you just need to set the **root** logger debug level ? I figured it out quite recently having problem configuring all my loggers with just one click: I have an application importing modules, the application is not always aware of the logging support by the module. The only

Re: A new way to configure Python logging

2009-10-25 Thread Vinay Sajip
Wolodja Wentland cl.uni-heidelberg.de> writes: > > You are right, unless handlers (and filters, formatters etc.) are given > > names which can be used to refer to them across multiple configuration > > calls. > > This is something I am thinking about and will probably update PEP 391 > > with my

Re: A new way to configure Python logging

2009-10-25 Thread Wolodja Wentland
On Sun, Oct 25, 2009 at 10:48 +, Vinay Sajip wrote: > Wolodja Wentland cl.uni-heidelberg.de> writes: [ HTMLHandler, multiple configuration files ] OK! I agree that these parts are hard to standardise and do not really belong in the *logging* module. Maybe a kind soul implements a "configura

Re: A new way to configure Python logging

2009-10-25 Thread Vinay Sajip
Wolodja Wentland cl.uni-heidelberg.de> writes: > Could a HTMLHandler be added to the standard set? Preferably one that > leaves the choice of the template engine to the user. I haven't done this precisely because users' requirements will be very different for such a handler. For the same reason,

Re: A new way to configure Python logging

2009-10-24 Thread Wolodja Wentland
User Interface > [snip] > All of this sounds quite reasonable. Great :-) > > > Implementation > > -- > > > > You have rightfully noted in the PEP, that the ConfigParser method > > is not really suitable for incremental configuration and I therefore > > c

Re: A new way to configure Python logging

2009-10-24 Thread Vinay Sajip
s sounds quite reasonable. > Implementation > -- > > You have rightfully noted in the PEP, that the ConfigParser method > is not really suitable for incremental configuration and I therefore > configure the logging system programmatically. Since you allow users the

Re: A new way to configure Python logging

2009-10-23 Thread Wolodja Wentland
to give my users great freedom in configuring the application and its output behaviour. I therefore usually have the following command line options: -q, --quiet No output at all -v, --verbose More output (Messages with Level >= INFO) --debug All messages And I like the idea to

Re: A new way to configure Python logging

2009-10-23 Thread Vinay Sajip
ing YAML, JSON or Python source (Django is possibly going to use a dict declared in Python source in the Django settings module to configure logging for Django sites). Best regards, Vinay Sajip -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >