Bug 672027

Summary: Python Interface crashes vim
Product: [Fedora] Fedora Reporter: Paul Bolle <pebolle>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: karsten
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-24 11:40:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul Bolle 2011-01-23 10:38:25 UTC
Description of problem:
Python Interface crashes vim

Version-Release number of selected component (if applicable):
7.3.081-1

How reproducible:
Always

Steps to Reproduce:
1. vim -u NONE
2. :py print "Hello"
3.
  
Actual results:
crash of vim (terminal needs te be reset after this crash):
Traceback (most recent call last):
                                    File "/usr/lib/python2.7/site.py", line 62, in <module>
                                                                                               import os
                                                                                                          File "/usr/lib/python2.7/os.py", line 398, in <module>
                                                                                                                                                                    import UserDict
         File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
                                                                        import _abcoll
                                                                                        File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
                                                                                                                                                      from abc import ABCMeta, abstractmethod
                   File "/usr/lib/python2.7/abc.py", line 8, in <module>
                                                                            from _weakrefset import WeakSet
                                                                                                             File "/usr/lib/python2.7/_weakrefset.py", line 5, in <module>
                                                                                                                                                                              from _weakref import ref
                          ImportError: No module named _weakref


Expected results:
No crash

Additional info:
This could be related to this recent change in the python package:
* Thu Dec 23 2010 David Malcolm <dmalcolm> - 2.7.1-1
[...]
- drop _weakref.so from manifest (_weakref became a core module in r84230)

I haven't yet been able to pinpoint the source of this problem, so this is just the only clue I have found so far.

Comment 1 Paul Bolle 2011-01-23 11:13:37 UTC
Installed were python-2.7.1-5.fc15, python-libs-2.7.1-5.fc15, and friends. Manually installing (downgrading) python-2.7-13.fc15, python-libs-2.7-13.fc15, etc. solves this crash. 

Shall I move to component python?

Comment 2 Paul Bolle 2011-01-23 15:24:51 UTC
0) Rebuilding vim locally, against the current python packages (ie, python-2.7.1-5) solved this problem.

1) The solution seems to be: ship a vim rebuilt against python-2.7.1.

Comment 3 Karsten Hopp 2011-01-24 11:40:21 UTC
I've built vim-7.3.107-1.fc15, so the update should take care of this bug, too.
Please reopen if the problem still exists.