Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409375 - kde-misc/wicd-client-kde requires python-2 to configure encrypted network
Summary: kde-misc/wicd-client-kde requires python-2 to configure encrypted network
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 437592 (view as bug list)
Depends on:
Blocks: 412063
  Show dependency tree
 
Reported: 2012-03-22 20:28 UTC by Evgeny
Modified: 2012-10-16 11:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge--info (wicd_wicd-client-kde_wpa_supplicant__emerge.info.txt,12.98 KB, text/plain)
2012-03-22 20:28 UTC, Evgeny
Details
comparison of wicd-gtk client and wicd-kde-client under python-3 (wicd-client-kde-wicd-gtk_comparison.png,620.92 KB, image/png)
2012-10-08 21:15 UTC, Stephen Bosch
Details
Patch to pass name of python binary to cmake (kde4-meta_patch_python2.patch,301 bytes, patch)
2012-10-15 15:05 UTC, MasterPrenium
Details | Diff
wicd-client-kde-force-python2.patch (wicd-client-kde-force-python2.patch,393 bytes, patch)
2012-10-15 20:31 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny 2012-03-22 20:28:19 UTC
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
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2012-03-23 07:15:27 UTC
Sounds like an upstream issue. Could you please file a bug upstream and link here back?
Comment 2 Evgeny 2012-04-01 21:20:08 UTC
link to bug in upstream https://bugs.kde.org/show_bug.cgi?id=297267
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2012-04-13 07:52:36 UTC
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
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2012-04-16 11:02:25 UTC
> 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?
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2012-04-19 20:54:55 UTC
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.
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2012-10-08 20:33:12 UTC
*** Bug 437592 has been marked as a duplicate of this bug. ***
Comment 7 Stephen Bosch 2012-10-08 21:15:58 UTC
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.
Comment 8 MasterPrenium 2012-10-15 15:05:13 UTC
Created attachment 326614 [details, diff]
Patch to pass name of python binary to cmake
Comment 9 MasterPrenium 2012-10-15 15:06:29 UTC
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 ?
Comment 10 Julian Ospald 2012-10-15 16:46:40 UTC
users complaining about this in #gentoo

please double check if this bug is valid
Comment 11 Ben Kohler gentoo-dev 2012-10-15 16:47:35 UTC
(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` ..
#
Comment 12 eroen 2012-10-15 18:12:49 UTC
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.
Comment 13 Stephen Bosch 2012-10-15 20:15:21 UTC
I have tested Erik's patch, and it does indeed resolve the problem.

Can we commit this to a keyworded ebuild?
Comment 14 Ben Kohler gentoo-dev 2012-10-15 20:31:33 UTC
Created attachment 326646 [details, diff]
wicd-client-kde-force-python2.patch

This patch for the ebuild should make it force python2 as required
Comment 15 Michael Palimaka (kensington) gentoo-dev 2012-10-16 11:57:57 UTC
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.