Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 281099

Summary: net-misc/cnetworkmanager-0.21 connect error
Product: Gentoo Linux Reporter: Andrey <knya18>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: gbin
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: New ebuild correcting the problem
The patch from upstream correcting this bug

Description Andrey 2009-08-11 13:06:36 UTC
cnetworkmanager -C myssid --wpa-pass=mypass

Traceback (most recent call last):
  File "/usr/bin/cnetworkmanager", line 296, in <module>
    c = settings.WpaPsk(ssid, options.wpa_pass)
  File "/usr/lib/python2.6/site-packages/networkmanager/applet/settings.py", line 130, in __init__
    self["802-11-wireless"]["security"] = "802-11-wireless-security"
  File "/usr/lib/python2.6/site-packages/networkmanager/applet/settings.py", line 15, in __getitem__
    return self.conmap.__getitem__(key)
TypeError: string indices must be integers, not str


Reproducible: Always
Comment 1 Guillaume BINET 2009-08-12 20:04:29 UTC
I tinkered super calls in
/usr/lib64/python2.6/site-packages/networkmanager/applet/settings.py
now, this bit of code executes but it still doesn't connect.

It looks like as it is this code never worked.

I gonna investigate in the git upstream.

Note : the 0.8.1 version worked flawlessly for me.



Comment 3 Guillaume BINET 2009-08-13 23:03:49 UTC
Created attachment 201182 [details]
New ebuild correcting the problem

Just added the patch in the ebuild
Comment 4 Guillaume BINET 2009-08-13 23:04:54 UTC
Created attachment 201184 [details, diff]
The patch from upstream correcting this bug
Comment 5 Robert Piasek (RETIRED) gentoo-dev 2009-08-14 10:28:36 UTC
Patch added. Thank you!