Bug#691998: TypeError: decoding Unicode is not supported

2012-11-01 Thread Muhammad Safri Dzalfaiz
Package: gdebi
Followup-For: Bug #691998

Dear Maintainer,

downgrade it to 0.8.5 make it work again.

I download the older version on
http://debian.linuxmint.com/latest/pool/main/g/gdebi/

aragorn@aragorn-1215b ~/Download $ sudo dpkg -i *.deb
Selecting previously unselected package gdebi.
(Reading database ... 324564 files and directories currently installed.)
Unpacking gdebi (from gdebi_0.8.5_all.deb) ...
dpkg: warning: downgrading gdebi-core from 0.8.6 to 0.8.5
Preparing to replace gdebi-core 0.8.6 (using gdebi-core_0.8.5_all.deb) ...
Unpacking replacement gdebi-core ...
dpkg: warning: downgrading gdebi-kde from 0.8.6 to 0.8.5
Preparing to replace gdebi-kde 0.8.6 (using gdebi-kde_0.8.5_all.deb) ...
Unpacking replacement gdebi-kde ...
Setting up gdebi-core (0.8.5) ...
Processing triggers for man-db ...
Setting up gdebi-kde (0.8.5) ...
Setting up gdebi (0.8.5) ...
Processing triggers for desktop-file-utils ...
aragorn@aragorn-1215b ~/Download $



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gdebi depends on:
ii  gdebi-core0.8.5
ii  gir1.2-gtk-3.03.4.2-4
ii  gir1.2-vte-2.90   1:0.32.2-1
ii  gksu  2.0.2-6
ii  gnome-icon-theme  3.4.0-2
ii  python2.7.3~rc2-1
ii  python-gi 3.2.2-1

Versions of packages gdebi recommends:
ii  libgtk2-perl  2:1.244-1
ii  shared-mime-info  1.0-1+b1

gdebi suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#691998: TypeError: decoding Unicode is not supported

2012-11-01 Thread Stuart Prescott
Control: severity -1 serious
Control: tags -1 patch

This bug leaves the gdebi-kde executable completely broken -- it can't even 
generate help output let alone install packages.

In gdebi-kde, _ is set to the ugettext function rather than gettext ( (as 
opposed to gdebi-gtk where it is gettext). The result of 

help=unicode(_(Run non-interactive (dangerous!)),UTF-8))

is that unicode is trying to decode a unicode object as UTF-8 rather than a 
string. Python can't do that, so you get the reported error.

The attached patch removes what I believe to be the unicode(…, UTF-8) call.

cheers
Stuart

-- 
Stuart Prescotthttp://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/ stu...@debian.org
GPG fingerprintBE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
GPG fingerprint90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
diff -Nru gdebi-0.8.6/debian/changelog gdebi-0.8.6+nmu1/debian/changelog
--- gdebi-0.8.6/debian/changelog	2012-10-11 21:07:45.0 +0100
+++ gdebi-0.8.6+nmu1/debian/changelog	2012-11-01 09:57:59.0 +
@@ -1,3 +1,10 @@
+gdebi (0.8.6+nmu1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Don't try to decode a unicode string as UTF-8 in gdeb-kde (Closes: #691998)
+
+ -- Stuart Prescott stu...@debian.org  Thu, 01 Nov 2012 09:47:13 +
+
 gdebi (0.8.6) unstable; urgency=low
 
   * gdebi, GDebi/GDebiCli.py:
diff -Nru gdebi-0.8.6/gdebi-kde gdebi-0.8.6+nmu1/gdebi-kde
--- gdebi-0.8.6/gdebi-kde	2012-10-11 20:56:58.0 +0100
+++ gdebi-0.8.6+nmu1/gdebi-kde	2012-11-01 09:57:59.0 +
@@ -64,7 +64,7 @@
 parser.add_option(-n, --non-interactive,
   action=store_true, dest=non_interactive,
   default=False,
-  help=unicode(_(Run non-interactive (dangerous!)),UTF-8))
+  help=_(Run non-interactive (dangerous!)))
 (options, args) = parser.parse_args()
 
 try:


signature.asc
Description: This is a digitally signed message part.


Bug#691998: TypeError: decoding Unicode is not supported

2012-10-31 Thread Muhammad Safri Dzalfaiz
Package: gdebi-kde
Version: 0.8.6
Severity: important

Dear Maintainer,

   * What led up to the situation?
Upgrading gdebi package several days ago (if im not mistaken)
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
cant use gdebi since then, have to use dpkg -i
   * What was the outcome of this action?
aragorn@aragorn-1215b ~/Linux $ sudo gdebi-kde
ia32-crossover_11.3.1-1_amd64.deb
Traceback (most recent call last):
  File /usr/bin/gdebi-kde, line 67, in module
help=unicode(_(Run non-interactive (dangerous!)),UTF-8))
TypeError: decoding Unicode is not supported

   * What outcome did you expect instead?
gdebi shows up and working



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gdebi-kde depends on:
ii  gdebi-core   0.8.6
ii  kde-runtime  4:4.8.4-1
ii  kdebase-runtime  4:4.8.4-1
ii  kdesudo  3.4.2.4-1
ii  python   2.7.3~rc2-1
ii  python-kde4  4:4.8.4-1

Versions of packages gdebi-kde recommends:
ii  shared-mime-info  1.0-1+b1

gdebi-kde suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org