Your message dated Sun, 16 Nov 2014 15:20:09 +0000
with message-id <[email protected]>
and subject line Bug#769737: fixed in pyparted 3.10.0-1.1
has caused the Debian Bug report #769737,
regarding Broken import path renders python3-parted unusable
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
769737: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769737
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-parted
Version: 3.10.0-1
Severity: grave
Tags: patch

With Python 3, pyparted cannot be imported:

$ sudo aptitude install python-parted python3-parted
$ python -c 'import parted'
$ python3 -c 'import parted'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/parted/__init__.py", line 55, in <module>
    from parted.device import Device
  File "/usr/lib/python3/dist-packages/parted/device.py", line 31, in <module>
    from decorators import localeC
ImportError: No module named 'decorators'

This has already been fixed upstream. The attached debdiff includes this fix.

Regards,
Christian

diff -Nru pyparted-3.10.0/debian/changelog pyparted-3.10.0/debian/changelog
--- pyparted-3.10.0/debian/changelog    2014-09-30 20:10:56.000000000 +0200
+++ pyparted-3.10.0/debian/changelog    2014-11-16 01:49:48.000000000 +0100
@@ -1,3 +1,11 @@
+pyparted (3.10.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport patch Fix-localeC-imports.patch from upstream which fixes an
+    ImportError that rendered the python3-parted package unusable.
+
+ -- Christian Kastner <[email protected]>  Sun, 16 Nov 2014 00:59:49 +0100
+
 pyparted (3.10.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru pyparted-3.10.0/debian/patches/Fix-localeC-imports.patch 
pyparted-3.10.0/debian/patches/Fix-localeC-imports.patch
--- pyparted-3.10.0/debian/patches/Fix-localeC-imports.patch    1970-01-01 
01:00:00.000000000 +0100
+++ pyparted-3.10.0/debian/patches/Fix-localeC-imports.patch    2014-11-16 
00:56:30.000000000 +0100
@@ -0,0 +1,60 @@
+From ed960211d0a23db67fbec4e134365e5ff331fd7d Mon Sep 17 00:00:00 2001
+From: David Cantrell <[email protected]>
+Date: Wed, 22 Oct 2014 09:52:55 -0400
+Subject: [PATCH] Fix localeC imports in a handful of src/parted/*.py files.
+
+Need to use 'from parted.decorators import localeC'
+
+Also fix one instance of 'from parted.cachedlist import CachedList' in
+disk.py
+
+Origin: 
https://github.com/dcantrell/pyparted/commit/ed960211d0a23db67fbec4e134365e5ff331fd7d
+Last-Update: 2014-11-16
+
+---
+ src/parted/device.py     | 2 +-
+ src/parted/disk.py       | 4 ++--
+ src/parted/filesystem.py | 2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+Index: pyparted-3.10.0/src/parted/device.py
+===================================================================
+--- pyparted-3.10.0.orig/src/parted/device.py
++++ pyparted-3.10.0/src/parted/device.py
+@@ -28,7 +28,7 @@ import warnings
+ import parted
+ import _ped
+ 
+-from decorators import localeC
++from parted.decorators import localeC
+ 
+ class Device(object):
+     """Device()
+Index: pyparted-3.10.0/src/parted/disk.py
+===================================================================
+--- pyparted-3.10.0.orig/src/parted/disk.py
++++ pyparted-3.10.0/src/parted/disk.py
+@@ -25,8 +25,8 @@
+ import _ped
+ import parted
+ 
+-from cachedlist import CachedList
+-from decorators import localeC
++from parted.cachedlist import CachedList
++from parted.decorators import localeC
+ 
+ class Disk(object):
+     """Disk()
+Index: pyparted-3.10.0/src/parted/filesystem.py
+===================================================================
+--- pyparted-3.10.0.orig/src/parted/filesystem.py
++++ pyparted-3.10.0/src/parted/filesystem.py
+@@ -25,7 +25,7 @@
+ import _ped
+ import parted
+ 
+-from decorators import localeC
++from parted.decorators import localeC
+ 
+ # XXX: add docstrings!
+ 
diff -Nru pyparted-3.10.0/debian/patches/series 
pyparted-3.10.0/debian/patches/series
--- pyparted-3.10.0/debian/patches/series       2014-09-30 20:10:56.000000000 
+0200
+++ pyparted-3.10.0/debian/patches/series       2014-11-16 00:55:19.000000000 
+0100
@@ -1 +1,2 @@
 no-last-flag-check.patch
+Fix-localeC-imports.patch

--- End Message ---
--- Begin Message ---
Source: pyparted
Source-Version: 3.10.0-1.1

We believe that the bug you reported is fixed in the latest version of
pyparted, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
intrigeri <[email protected]> (supplier of updated pyparted package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 16 Nov 2014 10:57:22 +0100
Source: pyparted
Binary: python-parted python3-parted python-parted-dbg python3-parted-dbg
Architecture: source amd64
Version: 3.10.0-1.1
Distribution: unstable
Urgency: medium
Maintainer: Parted Maintainer Team <[email protected]>
Changed-By: intrigeri <[email protected]>
Description:
 python-parted - Python interface for libparted
 python-parted-dbg - Python interface for libparted - Debugging symbols
 python3-parted - Python 3 interface for libparted
 python3-parted-dbg - Python 3 interface for libparted - Debugging symbols
Closes: 769737
Changes:
 pyparted (3.10.0-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Backport patch Fix-localeC-imports.patch from upstream which fixes an
     ImportError that rendered the python3-parted package unusable.
     Thanks to Christian Kastner <[email protected]> for the patch (Closes: 
#769737).
Checksums-Sha1:
 c02138851f56d6afe9344cf227ec82930861b7a8 2278 pyparted_3.10.0-1.1.dsc
 e523de8ac8c86ba7872827a36405ad63a9adc531 4532 pyparted_3.10.0-1.1.debian.tar.xz
 f25ade14e0065aa3c931f0110511b73c1ff96d18 162752 
python-parted_3.10.0-1.1_amd64.deb
 b7123a86fa4a7b2524a63b8a7070d6cf55110676 161340 
python3-parted_3.10.0-1.1_amd64.deb
 b9def36dfb1f87f347052e44fb8208a36a67fa1c 148018 
python-parted-dbg_3.10.0-1.1_amd64.deb
 c4fc6a565a896bd7273de2cd48e9c1d8c197c5ae 148228 
python3-parted-dbg_3.10.0-1.1_amd64.deb
Checksums-Sha256:
 c60d3c5111a8bc894800cbf794b54a3776115fb6b075f77a8a87d7b7c0bc17de 2278 
pyparted_3.10.0-1.1.dsc
 e25352089de01153de4fda283f79bfcb95132469574ca27048232b5318b1f923 4532 
pyparted_3.10.0-1.1.debian.tar.xz
 41dfb90d2103d39c6246050f9d86adfa1970fbc025f9f75e6ca673c55acd6914 162752 
python-parted_3.10.0-1.1_amd64.deb
 b10d30f53739888f58630ae5c5a713b06c3c8d4cb3cd02659b660ca70d6b73f5 161340 
python3-parted_3.10.0-1.1_amd64.deb
 8f87877026a18faeec86790bbaf0af0feb76668bb34c720c16879dd4279f3627 148018 
python-parted-dbg_3.10.0-1.1_amd64.deb
 99b0068c96173d4ea3e2dba9d3c2c325bb96e8a04f913fa82965de312ada45bc 148228 
python3-parted-dbg_3.10.0-1.1_amd64.deb
Files:
 5cf23799997c40593bdc3aca8ded7968 2278 python optional pyparted_3.10.0-1.1.dsc
 41d747254df08b9c6308a122d230dea7 4532 python optional 
pyparted_3.10.0-1.1.debian.tar.xz
 1437ba0e7868099582d4bf0c0ec8c719 162752 python optional 
python-parted_3.10.0-1.1_amd64.deb
 30fd57cd51b71f6798164da461726134 161340 python optional 
python3-parted_3.10.0-1.1_amd64.deb
 2850322c10597a3a58d4fdb58d7eccb0 148018 debug extra 
python-parted-dbg_3.10.0-1.1_amd64.deb
 a9b0fd0c5de71f18868df1b0a84cfbcd 148228 debug extra 
python3-parted-dbg_3.10.0-1.1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJUaHcoAAoJELrOFdKldJj/yFwP/1FxkhDw3yV6RJEEoeIHMj51
e6NdAGrJjdlSuhE9BksR7A52FYsAkk3JTsVPdX9TccnLWx7zP7tcC7IrQkKjHR0m
UtTCdfDVhugkQIip2I776DdZzxUZai9msDfY9aXhb6qbMMVfG1AheXb6lxQhmwwA
Iq2UUuN5r0XsdV8W/WyG5mHZ20Bccukk/z1vvA2hxCr4P4DohNkN5wzxMatvqOvD
ExHVTf07U070T/sHmKbFcASipmbwc0PkGg0La+pDEfENChtmlL4sI72tZGTEupsM
VgcigY48//9tQbypz7T3EgdT8/b+Vt+TIRL89ZcOHZEatFsr6KEsKw9XzJ/eHxWY
nxcZMsvW9KpER96xii7zWi5Rqv3k7EI8z7tT30GnDepbGvJIjggVUKm2y+HSaI7y
1/bc+GnTNn9D34jaJnY8BJpxbX++/luWQ8IuGfTdbrXfAoZvaT3GGXeYI7tN0bEc
ekgiN4C5yzxQZrWGug/NzZyoD9cQPOsfEIj8016EnlZRyM2jWXcbIcIQMItGCJ0B
WPe4e3JMdnEjilh83E8fKsXSRXFihybDwdtF0zdxDhyfdDTVj2/3kSibAkSKDSu0
rpOuQjNvwkBfn5/WtQ6GY8xWGB7p4+QKl3nzSsykcCXBOa1MORtgEDew/bV0r/Fz
pJZYby8nUV+7rdfC1rYb
=KmXC
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to