Quando apro il Terminale, vedo quanto segue:
Last login: Wed Feb 8 18:30:05 on ttys029
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/handlers.py", line 75, in emit
self.doRollover()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/handlers.py", line 132, in doRollover
os.rename(self.baseFilename, dfn)
OSError: [Errno 2] No such file or directory
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1472, in shutdown
h.flush()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 740, in flush
self.stream.flush()
ValueError: I/O operation on closed file
Error in sys.exitfunc:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 1472, in shutdown
h.flush()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 740, in flush
self.stream.flush()
ValueError: I/O operation on closed file
Tutto sembra funzionare ma questo è brutto e forse avverte di guai futuri. Ho installato Python 2.7 su questa macchina, quindi lo ho rimosso su virtualenv per ripristinare 2.6 come predefinito di sistema.
Qualche idea su come posso eseguire il debug di questo?
Modifica
Il mio .profile
ha una chiamata a virtualenvwrapper.sh
- che, come la vedo io, si trova sotto .../Versions/2.7
di Python. Quindi forse dovrei cercare il problema lì?