Hello, I solved my first issue by removing the blank spaces in the following line of my .ini file: [loggers] keys = root,routes,myproject,sqlalchemy (strange that nobody had this problem before...)
Concerning the other problem, I still have a "keyError: 'threadName'" message when doing the "paster setup-app" It seems that I'm using the logging library of my virtual environment because the Traceback comes from the following file: File "/home/fabrice/mydevenv/lib/python2.6/site-packages/logging-0.4.9.6-py2.6.egg/logging/__init__.py Fabrice On 29 September 2010 13:10, Marius Gedminas <[email protected]> wrote: > On Wed, Sep 29, 2010 at 10:30:40AM +0200, Fabrice Estiévenart wrote: >> Thank you Marius for your suggestion, >> >> After a short investigation, I notice that, for a strange reason, the >> script is searching for a section named [logger_ routes] (with a blank >> space between _ and routes) while my .ini file has a [logger_routes] >> section (without the blank space). > > Yes, yes. > > There's a [loggers] section with keys = foo, bar, .... The logging > framework takes each of those and looks for [logger_foo], [logger_bar], > .... > > You either have a weird keys list that causes that space to become part > of the logger name, or a buggy version of logging (which is in the > standard library and shouldn't be buggy -- do you have a different > version in your sys.path perhaps?). > >> Other problem related to logging: the script does not find the key >> 'threadName' in the logger format. >> format = %(asctime)s %(levelname)-5.5s [%(name)s] [%(threadName)s] >> %(message)s >> >> Is it a bug in the logging package ? Wrong versions or dependencies ? >> Do you have some suggestions ? > > I think you have an outdated copy of logging somewhere in your python > path. threadName's been in the stdlib's logging since forever > (according to the documentation, and a quick check of Python 2.4 through > 2.6 sources). > > Marius Gedminas > -- > I am Lalo of deB-org. You will be freed. Resistance is futile. > -- from the sig of Lalo Martins > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAkyjHrsACgkQkVdEXeem14/iggCfcmxSpAIdUߤ▧䘥醮� > SX0An3ZQ7I9Va58iCKsOzOOeqFI9q2gt > =U8Bx > -----END PGP SIGNATURE----- > > -- Fabrice Estiévenart http://www.fabrisss.com - guitare acoustique et banjo, ma page musicale http://www.destinationlibre.org - développement open-source autour de php et python, ma page informatique http://www.guitareacoustique.com - toute l'actu de la musique acoustique (en construction) -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
