Menu

#177 Can't locate object method "new" via package "Gnome2::Vte::Terminal"

v1.0 (example)
closed-fixed
nobody
None
5
2019-12-09
2013-09-09
No

Since upgrade to gnome 3.8 on Debian Testing yesterday, I am seeing this message when starting PAC, and then it just keeps frozen:

unhandled exception in callback:
Can't locate object method "new" via package "Gnome2::Vte::Terminal" (perhaps you forgot to load "Gnome2::Vte::Terminal"?) at /opt/pac/lib/PACTerminal.pm line 491.
*** ignoring at /opt/pac/lib/PACMain.pm line 251.
INFO: Using 'Unity' tray icon

Discussion

  • André Saunite

    André Saunite - 2013-09-09

    I could fix it by forcing PAC to use my system library instead of the embedded one, by removing all Vte.so* from PAC:

    find /opt/pac/ -name "Vte.so*" -exec rm {} +

     
  • WARHEAD

    WARHEAD - 2013-09-14

    On my Debian Sid, command "find /opt/pac/ -name "Vte.so" -exec rm {} +" not help, error:
    PAC started (pac) with PID 3766
    INFO: Used config file '/home/ijurisic/.config/pac/pac.nfreeze'
    INFO: Using 'standard Gnome2' tray icon
    unhandled exception in callback:
    Can't locate object method "new" via package "Gnome2::Vte::Terminal" (perhaps you forgot to load "Gnome2::Vte::Terminal"?) at /opt/pac/lib/PACTerminal.pm line 491.
    ** ignoring at /opt/pac/lib/PACMain.pm line 1303.

     
  • spams

    spams - 2013-09-16

    Here's how I solved it on debian-testing with perl 5.18

    is there a directory /usr/lib/perl5/auto/Gnome2/vte ?

    If there is remove as apropriate (unistall package, etc.)

    If there is not

    1.Install dependencies

    apt-get install libglib2.0-dev libpango1.0-dev libvte-dev libvte-2.90-dev

    1. If there isn't directory named vte in /usr/include then

    ln -s /usr/include/vte-2.90/vte /usr/include/vte

    3.build the package with dh-make-perl (will ease its removal in future)
    dh-make-perl --cpan Gnome2::Vte --build

    or

    perl -MCPAN -e 'install Gnome2::Vte'

    or

    just download archive from cpan and follow instructions

    1. if you used dh-make-perl then

    dpkg -i libgnome2-vte-perl_0.10-1_i386.deb

    1. remove following idrectories if install was successful
      rm -rf /opt/pac/lib/ext/{vte32,vte64,vteARM}

    it works now

     
  • David Torrejón Vaquerizas

    Hi André!

    Could you please prvide me your "Vte.so" file? (also, please, send me the output of "ldd Vte.so")

    To every body there with this problem: could you please tell me who has a working "Vte.so" for both 32 and 64 bit compiled(working) with Perl 5.18??

    Thanks in advance!!

     
    • André Saunite

      André Saunite - 2013-09-17

      Hi,

      The file is attached, and here is the command output:

      $ ldd /usr/local/lib/perl/5.18.1/auto/Gnome2/Vte/Vte.so
      linux-vdso.so.1 (0x00007fff3e2ec000)
      libvte.so.9 => /usr/lib/libvte.so.9 (0x00007f8250732000)
      libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007f82500fa000)
      libgdk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 (0x00007f824fe47000)
      libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f824fc24000)
      libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f824fa0e000)
      libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f824f800000)
      libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f824f5e0000)
      libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f824f392000)
      libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f824f0f2000)
      libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f824eeb7000)
      libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f824eb5c000)
      libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f824e90b000)
      libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f824e60c000)
      libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f824e308000)
      libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f824dfcc000)
      libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f824ddba000)
      libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f824dbb8000)
      libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f824d80b000)
      libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f824d5e9000)
      libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f824d3c0000)
      libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f824d0c1000)
      libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f824cea5000)
      libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f824cca1000)
      libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f824ca9d000)
      libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f824c89a000)
      libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f824c694000)
      libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f824c489000)
      libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f824c286000)
      libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f824c075000)
      libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f824be6b000)
      libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f824bc60000)
      libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f824ba0c000)
      libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f824b7e5000)
      libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x00007f824b5db000)
      libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f824b3c3000)
      libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f824b199000)
      libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f824af76000)
      libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f824ad5f000)
      libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f824ab57000)
      libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f824a918000)
      libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f824a670000)
      libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f824a46d000)
      libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f824a262000)
      libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f824a043000)
      librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8249e3b000)
      libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8249c36000)
      /lib64/ld-linux-x86-64.so.2 (0x00007f8250c19000)
      libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f8249a1c000)
      libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f8249814000)
      libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8249610000)
      libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f824940a000)

       
  • David Torrejón Vaquerizas

    Perfect, André! Thank you so much!!

    Now, is there any charitative soul over there with the same file for 32 bit systems, working on Perl 5.18??

    Thanks in advance!

    • David.
     
  • spams

    spams - 2013-09-18

    Here's for 32bit

     
  • spams

    spams - 2013-09-18

    Here's deb for 32bit
    Both are compiled with perl 5.18

     
  • David Torrejón Vaquerizas

    Thank you so so much!! :)

    • David.
     
  • David Torrejón Vaquerizas

    Just released PAC 4.5.3 thanks to all of you!!

    Please, let me know if it solved that "can't locate methos new via packaget Gnome2::Vte...."

    • David.
     
    • Anonymous

      Anonymous - 2013-12-19

      For me, it's not resolved.

       
  • David Torrejón Vaquerizas

    Hi!

    Please, check out PAC 4.5.3.4 and let me know it it resolved your problems.

    • David.
     
    • Anonymous

      Anonymous - 2013-12-19

      Now it's resolved! Thank you! :-)

       
  • David Torrejón Vaquerizas

    Thanks to all of you for your patience! :)

    • David.
     
  • David Torrejón Vaquerizas

    • status: open --> closed-fixed
     
  • Nikos Bestas

    Nikos Bestas - 2014-03-14

    Hi David,

    I am using pac-manager on opensuse. I was running pac manager 4.2 and it was working fine, but I updated to 4.5.3.4 and I get the same problem.

    Some time back a had made an openFate request to include pac manager to the opensuse reposirory, and the guys at opensuse answered my prayers, one of them added it there, but as I said after the upgrade, I get the issue. May I ask you to resolve this for opensuse as well?

    Thanks and regards,
    Nikos

     
  • mauro cendon

    mauro cendon - 2017-04-24

    same issue here..

    mauro@mauro-Lenovo-G470:~$ pac
    PAC started (pac) with PID 17245
    ERROR: PAC was unable to load any config file from '/home/mauro/.config/pac'... Now starting from scratch...Use of uninitialized value in string eq at /opt/pac/lib/PACConfig.pm line 672.
    Violación de segmento (`core' generado)
    mauro@mauro-Lenovo-G470:~$ perl -v

    This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi
    (with 67 registered patches, see perl -V for more detail)

    Copyright 1987-2017, Larry Wall

    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.

    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl". If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.

    mauro@mauro-Lenovo-G470:~$ sh: 1: kill: No such process

    ^C
    mauro@mauro-Lenovo-G470:~$ uname -a
    Linux mauro-Lenovo-G470 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    mauro@mauro-Lenovo-G470:~$

     
  • Magno Benevides Fontolan

    Hello I use linux deepin 15.5 and I performed all the steps described above, however my cap still does not work, I opened the file PACTermianal.pm, which seems to indicate where to start the Gnome and accuse an instruction error in line 177 of that file, anyway ... is there any solution (is this different from this one for Deepin?)

     
  • thijs van severen

    gave up on this but then i found Asbru (fork of PAC that is still maintained) and this solved my problems. I was able to import my PAC connections without any issues :-)
    https://www.asbru-cm.net/

     

Log in to post a comment.