LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware-14.2 -> last slackware-current upgrade python VTE issue (https://www.linuxquestions.org/questions/slackware-14/slackware-14-2-last-slackware-current-upgrade-python-vte-issue-4175606696/)

suprateam 05-26-2017 04:23 AM

slackware-14.2 -> last slackware-current upgrade python VTE issue
 
Hi there,

I use slackware-current (64bits - no multilib ) and update it every once in the while.
since the latest update, terminator terminal refuses to start due to this error: "you need to install python bindings for libvte"

Okay.. I first supposed that current is supposed to be the bleeding edge and my terminator version was a bit off ( 0.97 while 1.91 is out there)

After terminator update => still the same error.

So got curious about vte/libvte but not much help on the net.. except that python should be able to import vte module.

On a fresh 14.2 install with latest 14.2 updates vte is able to load fine
Code:

root@ws1:~#
root@ws1:~# echo "import vte" | python
root@ws1:~#
root@ws1:~# python -V
Python 2.7.13
root@ws1:~#

If I switch to slackware-current on that same fresh 14.2 install, which seems to updates python to the same version but for current it doen't work anymore:
Code:

[  upgrade  ] - python-2.7.13-x86_64-2_slack14.2 --> python-2.7.13-x86_64-1
Code:

root@ws1:~# echo "import vte" | python
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named vte
root@ws1:~#
root@ws1:~#
root@ws1:~# python -V
Python 2.7.13
root@ws1:~#

any clue how I can fix the vte module not present after the upg ?

Thanks for your help!

gmgf 05-26-2017 05:20 AM

vte-0.28.2 is the latest and ultimate release for gtk2

vte-0.44.3 need gtk+3 and it is already one old release, i have a personal package of the latest release (0.48.2) this version work here.

gmgf 05-26-2017 06:56 AM

ok i have tested your terminator version 0.97 need vte-0.28.2 because it contain a part of pygtk2 binding.

the vte-0.44.3 slackware-current doesn't contain this part.

terminator-1.91 need vte3 version and python2-gobject (pygobject3) binding and gtk+3.

suprateam 05-26-2017 07:06 AM

Thanks for help !

Quote:

Originally Posted by gmgf (Post 5715422)
ok i have tested your terminator version 0.97 need vte-0.28.2 because it contain a part of pygtk2 binding.

the vte-0.44.3 slackware-current doesn't contain this part.

terminator-1.91 need vte3 version and python2-gobject binding.

I had for sure gobject installed ( and was able to import it against python2.7 )

I've tried to install vte3 from slackbuilds on current with terminator1.0 and 1.91 , no success. (tested with vte3-ng instead of vte3 also - same error)

duno how I can give more "logs" or "trace" of the issue I'm facing :(

edit: seen your edit: checking if python2-gobject (pygobject3) and gtk+3 are installed...

ponce 05-26-2017 07:14 AM

you most probably need a vte2 SlackBuild: the resulting package is parallel-installable with slackware-current's vte.

gmgf 05-26-2017 07:19 AM

ok i try to make a package of 1.91 version

gmgf 05-26-2017 07:58 AM

i have make 1.91 version package and it work here with vte-0.44.3 slackware current package.

minimun needed, python-keybinder, pygobject3, pycairo,dbus-python.

gmgf 05-26-2017 10:07 AM

Sorry, it need psutils, also.

suprateam 05-26-2017 01:18 PM

Quote:

Originally Posted by gmgf (Post 5715434)
i have make 1.91 version package and it work here with vte-0.44.3 slackware current package.

minimun needed, python-keybinder, pygobject3, pycairo,dbus-python.

I've started from a fresh reinstall, and well the terminator 1.91 installation with its dependencies went okay.
- terminator 1.91 ( based on the slackbuild with just the version bump)
- python-keybinder / psutil from sbo
- pygobject3, pycairo,dbus-python are included in base Slackware

Terminator is able to start okay which is fine for me at the moment.

I cannot tell where was the pbm in first place as that bassically what I did..
Maybe my packages installation at the very first place messed up smth and the vte issue wasn't the root cause.

I will tag the title as solved even though there was no pbm after all ( sorry for the noise )


About the fact that python cannot import VTE, I think you have it right of course
Code:

        ok i have tested your terminator version 0.97 need vte-0.28.2 because it contain a part of pygtk2 binding.

the vte-0.44.3 slackware-current doesn't contain this part.

from install/desinstall logs it vte-0.44.3 does not contain python vte package as you said
Code:

root@ws1:~/Downloads# cat /var/log/removed_packages/vte-0.28.2-x86_64-4-upgraded-2017-05-26,16:14:08  | grep pyth
usr/lib64/python2.7/
usr/lib64/python2.7/site-packages/
usr/lib64/python2.7/site-packages/gtk-2.0/
usr/lib64/python2.7/site-packages/gtk-2.0/vtemodule.la
usr/lib64/python2.7/site-packages/gtk-2.0/vtemodule.so
root@ws1:~/Downloads#

root@ws1:~#  cat /var/log/packages/vte-0.44.3-x86_64-1 | grep pyth
root@ws1:~#


gmgf 05-26-2017 01:46 PM

good news.

you have also ponce SlackBuild and slackonly for precompiled current package:

http://cgit.ponce.cc/slackbuilds/

https://www.slackonly.com/pub/packages/

suprateam 05-27-2017 08:21 AM

Quote:

Originally Posted by gmgf (Post 5715604)
good news.

you have also ponce SlackBuild and slackonly for precompiled current package:

http://cgit.ponce.cc/slackbuilds/

https://www.slackonly.com/pub/packages/


Thanks for the links, I'll keep them somewhere close for future needs !
The pbm wasn't at buildtime but at runtime, but at least precompiled package can save some headache ^_^

cheers !


All times are GMT -5. The time now is 11:19 PM.