rohdef/pysmell — Issue #8: error when quit vim
Author: rohdef
Created: 2011-10-24 10:10:41+00:00
State: open
Labels: Vim

What steps will reproduce the problem?
1. invoke pysmell in vim;
2a. unsave file, and quit vim;
2b. save file, and quit vim;

What is the expected output? What do you see instead?
i got:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
h.flush()
File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
self.stream.flush()
AttributeError: flush
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
h.flush()
File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
self.stream.flush()
AttributeError: flush

What version of the product are you using? On what operating system?
I use pysmell-0.7. My box is ubuntu 8.10, vim is installed default, version
number is 7.1.314.

Comment 1 by project member orestis, Nov 3, 2008
This doesn't look like a pysmell bug - more like a Vim-python integration bug. PySmell doesn't register any
atexit functions. Could you try removing pysmell.vim from your plugins, and do any kind of python invocation
from inside Vim? Something like:

:python import sys; print sys.path

And see if you get the same behaviour?

I would then try

:python import pysmell

And quit, just to see if it's a side effect I don't know about...