"James" <[EMAIL PROTECTED]> wrote
> (a) If I open a terminal and then run my python script
> (./script.py),
> it fails giving me the RLock error I attached in my original e-mail.
> (b) If I open a FRESH terminal, run the interpreter (python), import
> threading & logging and then run the same e
"James" <[EMAIL PROTECTED]> wrote
> I'm having some trouble using the Python logging module. Here's the
> snippet of code that's causing problems:
>
>
>
> # setting up logging using Python's logging module
> LOGFILE = "/home/james/log"
> logging.basicConfig( level=logging.DEBUG,
> forma
Wow this has gotten awfully strange.
I'm running Python on OS X. Here's a quick rundown of what I just
found:
(a) If I open a terminal and then run my python script (./script.py),
it fails giving me the RLock error I attached in my original e-mail.
(b) If I open a FRESH terminal, run the in
James wrote:
> Here's the output of the requested commands:
>
> >>> import threading
> >>> threading.__file__
> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.pyc'
>
>
> >>>
>
> Looks identical to the output you attached.
Strange. How about
>>> import threading
Here's the output of the requested commands:
>>> import threading
>>> threading.__file__
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
threading.pyc'
>>>
Looks identical to the output you attached.
.james
On Sep 29, 2007, at 2:58 PM, Kent Johnson wrote:
> James wrote:
James wrote:
> Traceback (most recent call last):
>File "./script.py", line 225, in
> sys.exit( main() )
>File "./script.py", line 119, in main
> filemode='w')
>File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/logging/__init__.py", line 1237, in basi
All,
I'm having some trouble using the Python logging module. Here's the
snippet of code that's causing problems:
# setting up logging using Python's logging module
LOGFILE = "/home/james/log"
logging.basicConfig( level=logging.DEBUG,
format='%