FS#21961 - ImportError: No module named _weakref

Attached to Project: Arch Linux
Opened by Alexander F. Rødseth (xyproto) - Thursday, 02 December 2010, 12:45 GMT
Last edited by Ionut Biru (wonder) - Thursday, 02 December 2010, 16:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When I run vim, I get this on the commandline:

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

After replacing gvim with vim-gtk from AUR, this is no longer an issue.

Before replacing gvim, there are no files named something with weakref in /usr/lib/python2.7 (but there are some in /usr/lib/python2.5).
After replacing gvim with vim-gtk, there are files named something with weakref in /usr/lib/python2.7.

Additional info:
* package version(s)
gvim 7.3.69-2


Steps to reproduce:
Just start vim from the commandline

All installed packages on my system that shows up when searching for vim:
extra/vim-colorsamplerpack 8.03-2
extra/vim-runtime 7.3.69-1
community/clewn 1.15-1
aur/tudu 0.7-1
aur/vim-darkspectrum
aur/vim-debugger
aur/vim-gtk
aur/vim-nerdtree
aur/vim-pydiction
aur/vimpdb

This is after replacing gvim with vim-gtk, the status of all the other packages on the list is the same.
This task depends upon

Closed by  Ionut Biru (wonder)
Thursday, 02 December 2010, 16:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  vim-runtime 7.3.69-2.
Comment by Ionut Biru (wonder) - Thursday, 02 December 2010, 12:49 GMT
are you sure you had gvim 7.3.69-2? because on the other list you have extra/vim-runtime 7.3.69-1 and it should be the same version as gvim
Comment by Allan McRae (Allan) - Thursday, 02 December 2010, 12:50 GMT
extra/vim-runtime 7.3.69-1 -> update to -2.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 02 December 2010, 12:53 GMT
You are right, I had 7.3.69-1 installed, not 7.3.69-2.
Comment by Allan McRae (Allan) - Thursday, 02 December 2010, 13:02 GMT
So... is it fixed now?
Comment by Vinzent Steinberg (vks) - Thursday, 02 December 2010, 15:52 GMT
Yes. I have had the same problem, and the update fixed it.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 02 December 2010, 15:57 GMT
The repo I use does not have 7.3.69-2 yet: http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64
I'll try another repo and report back.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 02 December 2010, 16:04 GMT
Ok, found a repo that had 7.3.69-2 and installed gvim.
This bug can be closed. Thanks.

Loading...