LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-12-2018, 10:38 AM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
patch for /usr/share/wicd/curses/netentry_curses.py


I installed slackwarearm current as of 05/03 today. While configuring a wireless connection using wicd-curses via ssh while still wired to a banana pro I recieved this traceback when I tried to save my settings.
Code:
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1149, in call_update_ui
    self.update_ui(True)
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1161, in update_ui
    self.handle_keys(input_data[1])
  File "/usr/share/wicd/curses/wicd-curses.py", line 1040, in handle_keys
    self.diag = WirelessSettingsDialog(pos, self.frame)
  File "/usr/share/wicd/curses/netentry_curses.py", line 503, in __init__
    self.set_values()
  File "/usr/share/wicd/curses/netentry_curses.py", line 544, in set_values
    wireless.GetWirelessProperty(networkID, 'bitrate')
ValueError: dbus.Boolean(True) is not in list
The patch below is based on a netentry_curses.py found here: https://bugs.launchpad.net/wicd/+bug...ntry_curses.py

It will fix the problem. It has been tested by me today after patching the original /usr/share/wicd/curses/netentry_curses.py which was installed from slackwarearm-current/extra/wicd/wicd-1.7.4-arm-1.txz.
Code:
--- orig-netentry_curses.py	2018-03-12 18:00:49.830000580 +1100
+++ netentry_curses.py	2018-03-12 15:08:37.770000491 +1100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
 """
     netentry_curses -- everyone's favorite networks settings dialogs... in text
     form!
@@ -538,12 +538,16 @@
         self.bitrates = wireless.GetAvailableBitrates()
         self.bitrates.append('auto')
         self.bitrate_combo.set_list(self.bitrates)
-        if wireless.GetWirelessProperty(networkID, 'bitrate'):
-            self.bitrate_combo.set_focus(
-                self.bitrates.index(
-                    wireless.GetWirelessProperty(networkID, 'bitrate')
-                )
-            )
+
+        # bitrate property is sometimes None
+        chosen_bitrate = wireless.GetWirelessProperty(networkID, 'bitrate')
+        if chosen_bitrate not in self.bitrates:
+            chosen_bitrate = 'auto'
+
+        self.bitrate_combo.set_focus(
+            self.bitrates.index(chosen_bitrate)
+        )
+
         self.allow_lower_bitrates_chkbox.set_state(
             to_bool(self.format_entry(networkID, 'allow_lower_bitrates'))
         )
 
Old 03-12-2018, 01:37 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311
As I suspect that this problem exists on x86 too, you should move this to the main forum; unless it can be proved that it's ARM only in which case I'll apply it locally.
 
Old 03-13-2018, 03:14 AM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
Yup, need to download wicd most recent from x86 and test on a big box. Will get to it asaic.
 
Old 03-15-2018, 05:17 AM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311Reputation: 1311
Quote:
Originally Posted by justwantin View Post
Yup, need to download wicd most recent from x86 and test on a big box. Will get to it asaic.
Just move this thread into the main forum - it'll probably take a minute or two for someone to validate that the bug exists in -current.
 
Old 03-16-2018, 06:01 PM   #5
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
I couldn't figure out how to do it. I did contact monitors but nothing happened

Last edited by justwantin; 03-16-2018 at 06:08 PM. Reason: tyop
 
Old 03-16-2018, 07:46 PM   #6
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Current ChangeLog

extra/wicd/wicd-1.7.4-x86_64-3.txz: Rebuilt.
Patched to fix saving settings with wicd-curses. Thanks to justwantin.

Well there ya go!

Last edited by glorsplitz; 03-16-2018 at 07:47 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No networks available in wicd-curses hedron Linux - Wireless Networking 3 05-02-2016 08:43 PM
wicd-curses bitrate error justwantin Slackware - ARM 2 02-18-2016 02:42 AM
Problems with wicd-curses in console SharpyWarpy Linux - Networking 7 04-28-2013 08:52 PM
[SOLVED] wicd-curses? newb123 Slackware 6 05-10-2011 03:43 AM
inputting WPA password with wicd-curses cmccullough Linux - Networking 2 10-14-2010 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration