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:

$ 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:

$ 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 [NOPARSE]“devel:languages:perl/openSUSE_11.4”[/NOPARSE] 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

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!

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

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: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?

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::Plugin::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.

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!

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:languages:perl 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/users?project=devel%3Alanguages%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