Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281099 - net-misc/cnetworkmanager-0.21 connect error
Summary: net-misc/cnetworkmanager-0.21 connect error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 13:06 UTC by Andrey
Modified: 2009-08-14 10:28 UTC (History)
1 user (show)

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


Attachments
New ebuild correcting the problem (cnetworkmanager-0.21-r1.ebuild,778 bytes, text/plain)
2009-08-13 23:03 UTC, Guillaume BINET
Details
The patch from upstream correcting this bug (wepwapfix-0.21.patch,2.93 KB, patch)
2009-08-13 23:04 UTC, Guillaume BINET
Details | Diff

Note You need to log in before you can comment on or make changes to 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!