You are not logged in.

#1 2010-12-02 08:36:11

alexcriss
Member
Registered: 2010-05-24
Posts: 121

[Solved] Python 2.7.1 broke gvim

Hi everybody,

I've just updated python2 from 2.7-3 to 2.7.1, gvim was running smoothly before, now it dies with

alessandro@alessandro-lappy:~/Dottorato/Scuola/FinePrimoAnno$ gvim SlidesPrimoAnno.tex 
alessandro@alessandro-lappy:~/Dottorato/Scuola/FinePrimoAnno$ 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

Am I missing something or should I report on the bugtracker? Note that downgrading python 2.7-3 gives again a working gvim.

Cheers,
Alessandro

Last edited by alexcriss (2010-12-02 11:57:26)

Offline

#2 2010-12-02 09:50:19

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: [Solved] Python 2.7.1 broke gvim

Rebuild the package from ABS to make it work.

Cheers

Offline

#3 2010-12-02 10:50:24

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [Solved] Python 2.7.1 broke gvim

You should -Syu, did you? gvim works fine here.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2010-12-02 10:59:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Python 2.7.1 broke gvim

Restart all gvim sessions and it should work.   That module is now built into python's core...

Edit: a gvim rebuild is on its way to the repos...   although I'm still not sure why it was needed.

Offline

#5 2010-12-02 11:06:54

rkj
Member
Registered: 2006-12-09
Posts: 2

Re: [Solved] Python 2.7.1 broke gvim

Still not working hmm

└─[$] <hg:default/tip> ps aux | grep vim
rkj      24223  0.0  0.0   8232   964 pts/1    S+   12:06   0:00 grep vim
┌─[rkj@rkjunior] - [~/Projects/itiner/ttrobot] - [2010-12-02 12:06:13]
└─[$] <hg:default/tip> vim              
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

Offline

#6 2010-12-02 11:07:32

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: [Solved] Python 2.7.1 broke gvim

Edit: I am fully up to date.

The problem is generated by using vim-latexsuite from AUR. If I remove it, everything works, when I try to open a tex file with vim-latexsuite installed vim dies (same error with different tex files). Rebuilding the package doesn't solve the problem. It seems that it cannot use a module from the new python.

I will try to rebuild python. Any other suggestions?

Last edited by alexcriss (2010-12-02 11:09:54)

Offline

#7 2010-12-02 11:09:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Python 2.7.1 broke gvim

Rebuilding python will not help.   Rebuilding that AUR package (and waiting for the gvim rebuild) might.

Offline

#8 2010-12-02 11:10:32

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: [Solved] Python 2.7.1 broke gvim

I've already rebuilt vim-latexsuite from AUR, no cherries though sad

Offline

#9 2010-12-02 11:23:52

mOoh
Member
Registered: 2008-05-23
Posts: 8

Re: [Solved] Python 2.7.1 broke gvim

Same here, without any AUR package installed.

Offline

#10 2010-12-02 11:26:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Python 2.7.1 broke gvim

> pacman -Si gvim
Repository     : extra
Name           : gvim
Version        : 7.3.69-2

Anyone still have issues with that version of gvim?  ( pkgrel=2 )

Offline

#11 2010-12-02 11:30:55

mOoh
Member
Registered: 2008-05-23
Posts: 8

Re: [Solved] Python 2.7.1 broke gvim

mOoh wrote:

Same here, without any AUR package installed.

... actually due to autotag.vim, works well without it.

Offline

#12 2010-12-02 11:32:20

mOoh
Member
Registered: 2008-05-23
Posts: 8

Re: [Solved] Python 2.7.1 broke gvim

Allan wrote:

Anyone still have issues with that version of gvim?  ( pkgrel=2 )

Fixed, thanks !

Offline

#13 2010-12-02 11:57:06

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: [Solved] Python 2.7.1 broke gvim

The problem seems to be gone with the pkgrel=2 gvim.

Thanks a lot Allan for your kind feedback!!

Offline

Board footer

Powered by FluxBB