Created attachment 306363 [details] emerge--info Compile wicd, wpa_supplicant (+ssl +gnutls +eap-sim ), wicd-client-kde run wicd-client-kde, choose WPA/WEP/WPA2 network, check "Use encryption" Actual results: no possible encryption types are suggested. No field to type password. Expected result: Drop-down menu with encryption options are became available, like when you start wicd-gtk
Sounds like an upstream issue. Could you please file a bug upstream and link here back?
link to bug in upstream https://bugs.kde.org/show_bug.cgi?id=297267
Hi KDE Team. You may want to check out the wicd ebuild where we do the following: # Need to ensure that generated scripts use Python 2 at run time. sed -e "s:self.python = '/usr/bin/python':self.python = '/usr/bin/python2':" -i setup.py || die "sed failed" Cheers, Thomas
> Evgeny 2012-04-01 21:57:15 UTC > Thank you it's real in it. I set default python to python2 and restart wicd, > dbus and kde and now it works fine. Thank you. @Evgeny Is the bug still valid?
I cant find any python related source files in tarball. So i guess the mentioned problem in upstream bug about active python version is in net-misc/wicd.
*** Bug 437592 has been marked as a duplicate of this bug. ***
Created attachment 326034 [details] comparison of wicd-gtk client and wicd-kde-client under python-3 I cannot see how this is a net-misc/wicd issue, because the wicd gtk client works just fine irrespective of whether python-3 or python-2 is set default. View the attached screenshot to see what I mean. Here, python-3 is set default. After a restart, wicd-gtk works just fine, but wicd-kde-client does not. This is a valid bug and should be reopened.
Created attachment 326614 [details, diff] Patch to pass name of python binary to cmake
I had the same problem. We need to had -DPYTHONBIN=/usr/bin/python2 to cmake options in order to get encryption field working correctly. I saw someone setting this in CFLAGS, but doesn't work for me. I attached a small and ugly patch, with this, it works for me, could you try ? Maybe someone can make a nice patch and add it to the ebuild for the mainstream tree ?
users complaining about this in #gentoo please double check if this bug is valid
(In reply to comment #5) > I cant find any python related source files in tarball. So i guess the > mentioned problem in upstream bug about active python version is in > net-misc/wicd. I think this bug needs another look, clearly the wicd-kde code does use python. It uses the default system "python", which needs to be changed to "python2" if this code is known to be python2-only. Right? # grep -Ri python wicd-kde/ wicd-kde/ChangeLog:- Add cmake option to specify which python binary to use wicd-kde/applet/config-python.h.cmake:#define PYTHONBIN "@PYTHONBIN@" wicd-kde/applet/global.cpp:#include <config-python.h> wicd-kde/applet/global.cpp: wpath.start(PYTHONBIN, QStringList() << "-c" << "from wicd import wpath; print wpath.etc"); wicd-kde/applet/global.cpp: wpath.start(PYTHONBIN, QStringList() << "-c" << "from wicd import wpath; print wpath.encryption"); wicd-kde/applet/CMakeLists.txt:if (NOT PYTHONBIN) wicd-kde/applet/CMakeLists.txt: set (PYTHONBIN "python" CACHE STRING "python command") wicd-kde/applet/CMakeLists.txt:endif (NOT PYTHONBIN) wicd-kde/applet/CMakeLists.txt:configure_file (config-python.h.cmake config-python.h) wicd-kde/INSTALL:#optional: you can specify which python binary to use (default is "python") wicd-kde/INSTALL:#cmake -DPYTHONBIN=/path/to/python -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. #
An user in #gentoo indicated the following patch may have solved the issue (or possibly a wicd upgrade). I can't really test myself, as I don't have a system with both a wifi card and kde. --- a/wicd-kde/applet/CMakeLists.txt +++ b/wicd-kde/applet/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT PYTHONBIN) - set (PYTHONBIN "python" CACHE STRING "python command") + set (PYTHONBIN "python2" CACHE STRING "python command") endif (NOT PYTHONBIN) configure_file (config-python.h.cmake config-python.h) Likely it would be possible to set the variable through -D arguments to cmake, which would be better.
I have tested Erik's patch, and it does indeed resolve the problem. Can we commit this to a keyworded ebuild?
Created attachment 326646 [details, diff] wicd-client-kde-force-python2.patch This patch for the ebuild should make it force python2 as required
Thanks everyone, this is now fixed in CVS. + 16 Oct 2012; Michael Palimaka <kensington@gentoo.org> + +wicd-client-kde-0.3.0-r1.ebuild: + Force python-2, wrt bug #409375.