Results 1 to 6 of 6

Thread: Padre problem - GetUnicodeKey

  1. #1
    Join Date
    Dec 2010
    Location
    California, USA
    Posts
    50

    Default Padre problem - GetUnicodeKey

    Hi all,

    I have been trying to get Padre to work. As long as I am only trying to read files, it works fine. However, once I try to insert a character, it immediately closes.
    When run from the command line, I get the following:
    Code:
    $ padre
    Can't locate object method "GetUnicodeKey" via package "Wx::KeyEvent" at /usr/lib/perl5/vendor_perl/5.12.3/Padre/Document/Perl.pm line 1539.
    Perl exited with active threads:
    	3 running and unjoined
    	0 finished and unjoined
    	0 running and detached
    I was advised on the web(for another distro) to supply the output of the following:
    Code:
    $ perl -MWx -le'print  "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()'
    Wx Version: 0.98 wxWidgets 2.8.11
    My OS version is 11.4
    Padre was installed from the package "perl-Padre", from the "devel:languages:perl/openSUSE_11.4" repo.

    When searched, it seems that I am not the only one with this problem, not even limited to just openSuSE. Mandriva users have it too.
    On my Windows 7 machine, this problem does not occur.

    Does anyone have any ideas why this is happening and/or what I can do to fix it?

    Thanks in advance,
    Thomas
    SuperMicro P4SCE (Pentium 4 HT)
    3 GB DDR1 RAM
    nVidia GeForce FX 5500
    openSUSE 12.3(3.7.10-1.36-desktop) XFCE

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Padre problem - GetUnicodeKey

    On 12/06/2011 06:26 AM, thomas23272 wrote:
    > I am not the only one with this problem,
    > not even limited to just openSuSE. Mandriva users have it too.
    > On my Windows 7 machine, this problem does not occur.


    then, it seems this is not an openSUSE problem (but rather a problem
    with the linux version of Padre)....so, i suggest you also ask where
    there are a lot of Padre users and helpers....somewhere here:
    http://padre.perlide.org/ where there are links to support, wiki etc..

    --
    DD http://tinyurl.com/DD-Caveat
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Padre problem - GetUnicodeKey

    Am 06.12.2011 10:02, schrieb DenverD:
    > then, it seems this is not an openSUSE problem


    It is an openSUSE problem, this problem seems to originate from the way
    padre is built on a system, if built against the wx unicode packages it
    works, if built against the ansi wx packages it does not work.

    Thomas: Please report this as a bug to the packager only they can solve it.


    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  4. #4

    Default Re: Padre problem - GetUnicodeKey

    thomas23272 wrote:
    > Hi all,
    >
    > I have been trying to get Padre to work. As long as I am only trying to
    > read files, it works fine. However, once I try to insert a character, it
    > immediately closes.
    > When run from the command line, I get the following:
    >
    > Code:
    > --------------------
    > $ padre
    > Can't locate object method "GetUnicodeKey" via package "Wx::KeyEvent" at /usr/lib/perl5/vendor_perl/5.12.3/Padre/Document/Perl.pm line 1539.
    > Perl exited with active threads:
    > 3 running and unjoined
    > 0 finished and unjoined
    > 0 running and detached
    >
    > --------------------
    >
    > I was advised on the web(for another distro) to supply the output of
    > the following:
    >
    > Code:
    > --------------------
    > $ perl -MWx -le'print "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()'
    > Wx Version: 0.98 wxWidgets 2.8.11
    >
    > --------------------
    >
    > My OS version is 11.4
    > Padre was installed from the package "perl-Padre", from the
    > "devel:languageserl/openSUSE_11.4" repo.
    >
    > When searched, it seems that I am not the only one with this problem,
    > not even limited to just openSuSE. Mandriva users have it too.
    > On my Windows 7 machine, this problem does not occur.
    >
    > Does anyone have any ideas why this is happening and/or what I can do
    > to fix it?


    I don't know much about Padre, or Wx but a quick search of CPAN shows
    that Wx::KeyEvent appears to be provided by Padre:lugin::WxWidgets
    rather than by Wx.

    So if it was me, I would try installing that package and see if it fixes
    the problem. If so, I would report it as a broken dependency.

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Padre problem - GetUnicodeKey

    On 12/06/2011 12:55 PM, Martin Helm wrote:
    > It is an openSUSE problem,


    ok..


    > this problem seems to originate from the way
    > padre is built on a system, if built against the wx unicode packages it
    > works, if built against the ansi wx packages it does not work.



    is it supposed to (or, should it) work against either unicode or ansi?
    maybe just the README needs to define what should work, and not..

    --
    DD
    openSUSE®, the "German Engineered Automobiles" of operating systems!

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Padre problem - GetUnicodeKey

    I have to be a bit more precise since a small error slipped in here in
    my first post. The problem is in the perl-Wx package which is built
    against the non unicode Wx libraries. By accident I wrote padre instead
    of perl-Wx (perl-Wx is what padre depends on) and this perl-Wx package
    needs the change (the unicode versions of wx are shipped in our
    repositories, in fact they are more or less the default packages and the
    ansi versions deal more as a compitibility layer for legacy software).

    The GetUnicodeKey cannot work in such a case. It is not supposed to work
    with the nonunicode Wx libraries, no unicode functionality is supposed
    to work with the nonunicode Wx libs.

    I see that as a packaging error in the devel:languageserl repository
    for this package. I never ran into it because I d not use myself perl or
    perl-Wx bindings (but python and the python wx bindings).
    Hence my suggestion to contact the packagers of that repository directly
    and ask them to change it.
    It is an extra repository so I think it should not go to novell bugzilla
    but here
    https://build.opensuse.org/project/u...nguages%3Aperl

    The alternative is of course to build the whole thing including the
    dependencies directly or to download the perl-Wx rpm change the spec
    file and rebuild that (maybe the easier solution).

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •