[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gdesklets, python ve unicode üçgeni...



Merhaba

gdesklets ile lmsensors 0.8 i çalıştırınca sonuç alamıyorum. lmsensors çalışır durumda (sensors komutu ve gkrellm ile verileri görüntüleyebiliyorum, buna dayanarak gdesklets ile ilgili bi sorun olduğunu düşünüyorum).

gdesklets'in hata logunu anlayamadım, eklenti python ile yazılmış, belki python'a daha hakim biri bana yardım edebilir:

/Log messages of /home/chaos/.gdesklets/logs/gdesklets%3A0.0.log ==========================================================[11/13/05-22:53:31]=== Registering new control "/usr/lib/gdesklets/Controls/ArrayBuffer". ==========================================================[11/13/05-22:53:31]=== Registering new control "/usr/lib/gdesklets/Controls/EventPipe". ==========================================================[11/13/05-22:53:31]=== Registering new control "/usr/lib/gdesklets/Controls/Sensors". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/Controls/Time". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/Controls/System". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/Controls/Calendar". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/Controls/HDDTemp". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/Controls/URI". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/Countdown2". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/Boxmail". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/SideCandySytadin". ==========================================================[11/13/05-22:53:32]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/IExec". ==========================================================[11/13/05-22:53:33]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/NewsGrab". ==========================================================[11/13/05-22:53:33]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/IMPC". ==========================================================[11/13/05-22:53:33]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/Popmail". ==========================================================[11/13/05-22:53:33]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/RBox". ==========================================================[11/13/05-22:53:33]=== Registering new control "/usr/lib/gdesklets/../../share/gdesklets/Controls/YahooWeather". ==========================================================[11/13/05-22:54:14]=== Deprecation: Sensors are deprecated since v0.30. Please consider using controls and inline scripts. ADD WATCH('id1131915254061642volt',) ==========================================================[11/13/05-22:54:14]=== Deprecation: Sensors are deprecated since v0.30. Please consider using controls and inline scripts. ADD WATCH('id1131915254061642THbg',) ==========================================================[11/13/05-22:54:14]=== Deprecation: Sensors are deprecated since v0.30. Please consider using controls and inline scripts. ADD WATCH('id1131915254061642THb',) ==========================================================[11/13/05-22:54:14]=== Deprecation: Sensors are deprecated since v0.30. Please consider using controls and inline scripts. ADD WATCH('id1131915254061642THico',) ==========================================================[11/13/05-22:54:14]=== Deprecation: Sensors are deprecated since v0.30. Please consider using controls and inline scripts. ADD WATCH('id1131915254061642THg',) ==========================================================[11/13/05-22:54:14]=== Adding "/usr/share/gdesklets/Displays/lmsensors/lmsensors-Psi-volt.display" with ID "id1131915254061642" to the desklet list. Lmsensors Voltage sensor starting. Unhandled exception in thread started by <bound method LMSensorsSensor.__get_value_thread of <lmsensors.LMSensorsSensor object at 0xb6c9470c>> ==========================================================[11/13/05-22:54:14]=== === Unhandled error! Something bad and unexpected happened. 'utf8' codec can't decode byte 0xb0 in position 16: unexpected code byte in /usr/share/gdesklets/Sensors/lmsensors/__init__.py: line 206 __get_value_thread in /usr/share/gdesklets/Sensors/lmsensors/__init__.py: line 120 __get_sensor_data /usr/share/gdesklets/Sensors/lmsensors/__init__.py 115 if status != 0: return 116 117 lines = output.splitlines() 118 119 for line in lines: > 120 line = unicode(line) 121 # line with just one single word on it -> chip name 122 if re.match ("^[^:\s]+$", line): 123 chipname = line 124 else: 125 # name colon number open-parenthesis 126 # TODO: also extract max and min, and color accordingly [['rect-rect-black', 'rect-rect-black'], ['round-gradient-white', 'round-gradient- white'], ['round-round-black', 'round-round-black'], ['rect-rect-white', 'rect-rect- white'], ['round-rect-black', 'round-rect-black'], ['round-round-white', 'round- round-white'], ['round-gradient-black', 'round-gradient-black'], ['round-rect-white', 'round-rect-white']] color [['black-big', 'black-big'], ['black-big-alpha', 'black-big-alpha'], ['black-ext', 'black-ext'], ['black-thin', 'black-thin'], ['white-big', 'white-big'], ['white-ext', 'white-ext'], ['white-med', 'white-med'], ['white-thin', 'white-thin']] [['crystal', 'crystal']] [['dark', 'dark'], ['light', 'light']]
/Şimdiden teşekkürler...



Reply to: