[DebianGIS-dev] Bug#599330: python-mapnik: broken on mips*: ImportError: invalid mode parameter
Hello Jakub, On Wed, 6 Oct 2010 19:25:58 +0200, Jakub Wilk wrote: mapnik is not importable on mips{,el}: $ python -c 'import mapnik' Traceback (most recent call last): File string, line 1, in module File /usr/lib/pymodules/python2.6/mapnik/__init__.py, line 53, in module from _mapnik import * ImportError: invalid mode parameter I believe that the attached (untested) patch fixes this bug. Probably not, since the error happens later than what you patched (and it also has an except ImportError, so that traceback shouldn't have happened at all, if that was the point of failure). I'll investigate this more. Thank you, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] [SCM] mapnik branch, master, updated. debian/0.7.0-2-8-g46fb3c8
The following commit has been merged in the master branch: commit 46fb3c8762dbd45e18737edf93414ad82c3d3865 Author: David Paleino da...@debian.org Date: Sat Oct 9 16:24:56 2010 +0200 debian/patches/03-fix_ImportError_mips.patch added, fixes un-importability on mips{,-el} due to a wrong import. Thanks Jakub Wilk (Closes: #599330) diff --git a/debian/changelog b/debian/changelog index d63fe50..db32e2b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +mapnik (0.7.1-2) UNRELEASED; urgency=low + + * debian/patches/03-fix_ImportError_mips.patch added, fixes +un-importability on mips{,-el} due to a wrong import. Thanks +Jakub Wilk (Closes: #599330) + + -- David Paleino da...@debian.org Sat, 09 Oct 2010 16:24:00 +0200 + mapnik (0.7.1-1) unstable; urgency=low * New upstream version diff --git a/debian/patches/03-fix_ImportError_mips.patch b/debian/patches/03-fix_ImportError_mips.patch new file mode 100644 index 000..92d2555 --- /dev/null +++ b/debian/patches/03-fix_ImportError_mips.patch @@ -0,0 +1,21 @@ +From: Jakub Wilk jw...@debian.org +Subject: fix import, so that it really works without guessing the values +Origin: vendor +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599330 +Forwarded: no + +--- + bindings/python/mapnik/__init__.py |2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- mapnik.orig/bindings/python/mapnik/__init__.py mapnik/bindings/python/mapnik/__init__.py +@@ -42,7 +42,7 @@ import os + + from sys import getdlopenflags, setdlopenflags + try: +-from ctypes import RTLD_NOW, RTLD_GLOBAL ++from DLFCN import RTLD_NOW, RTLD_GLOBAL + except ImportError: + RTLD_NOW = 2 + RTLD_GLOBAL = 256 diff --git a/debian/patches/series b/debian/patches/series index 29bb7a5..bb7c079 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 01-generate_local_docs.patch 02-fix_FTBFS_binutils-gold.patch +03-fix_ImportError_mips.patch -- C++/Python toolkit for developing GIS applications ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] Bug#599330: python-mapnik: broken on mips*: ImportError: invalid mode parameter
On Sat, 9 Oct 2010 12:22:09 +0200, David Paleino wrote: On Wed, 6 Oct 2010 19:25:58 +0200, Jakub Wilk wrote: mapnik is not importable on mips{,el}: $ python -c 'import mapnik' Traceback (most recent call last): File string, line 1, in module File /usr/lib/pymodules/python2.6/mapnik/__init__.py, line 53, in module from _mapnik import * ImportError: invalid mode parameter I believe that the attached (untested) patch fixes this bug. Probably not, since the error happens later than what you patched (and it also has an except ImportError, so that traceback shouldn't have happened at all, if that was the point of failure). I'll investigate this more. Seems like you were right. :) Preparing an upload with your patch included, thank you. David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] [SCM] mapnik branch, master, updated. debian/0.7.0-2-9-g9aa7add
The following commit has been merged in the master branch: commit 9aa7add2c5ba28de2c695c3d3f91cca974fe040c Author: David Paleino da...@debian.org Date: Sat Oct 9 16:50:16 2010 +0200 Releasing to sid diff --git a/debian/changelog b/debian/changelog index db32e2b..119090b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,10 @@ -mapnik (0.7.1-2) UNRELEASED; urgency=low +mapnik (0.7.1-2) unstable; urgency=low * debian/patches/03-fix_ImportError_mips.patch added, fixes un-importability on mips{,-el} due to a wrong import. Thanks Jakub Wilk (Closes: #599330) - -- David Paleino da...@debian.org Sat, 09 Oct 2010 16:24:00 +0200 + -- David Paleino da...@debian.org Sat, 09 Oct 2010 16:25:18 +0200 mapnik (0.7.1-1) unstable; urgency=low -- C++/Python toolkit for developing GIS applications ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] [SCM] mapnik annotated tag, debian/0.7.1-1, created. debian/0.7.1-1
The annotated tag, debian/0.7.1-1 has been created at 0194a2f2a5be5c27f5096c3dd2133b7b3ae075d8 (tag) tagging 0fd254e24e52af4719df2605e6b5db179d6f7790 (commit) replaces debian/0.7.0-2 tagged by David Paleino on Tue Aug 31 13:03:42 2010 +0200 - Shortlog Debian release -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkx84Y4ACgkQ5qqQFxOSsXS2BQCgiA00JUcql+NZOydHLmqAf2Jo swwAoLv0wCV+ccgHE0ySIW7CazlaeQFL =Ttxg -END PGP SIGNATURE- David Paleino (7): Imported Upstream version 0.7.1 Merge commit 'upstream/0.7.1' New upstream version debian/patches/00-fix_amd64_libdir.patch removed, exception for Debian/Ubuntu added in upstream code 02-fix_FTBFS_binutils-gold.patch refreshed to apply to the new code 03-fix_typo.patch removed, merged upstream Releasing to sid --- -- C++/Python toolkit for developing GIS applications ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] [SCM] mapnik annotated tag, debian/0.7.1-2, created. debian/0.7.1-2
The annotated tag, debian/0.7.1-2 has been created at 2fb0faa0b802a043bb9c66c70cb1c225ec133b84 (tag) tagging 9aa7add2c5ba28de2c695c3d3f91cca974fe040c (commit) replaces debian/0.7.1-1 tagged by David Paleino on Sat Oct 9 16:50:23 2010 +0200 - Shortlog Debian release -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkywgS8ACgkQ5qqQFxOSsXSZaACeO+sJ/XMPYb9QAxTnT7B4igL3 2a4AoKHZ3EFy4xC4JwANGLyqyrPRY0VH =ha0G -END PGP SIGNATURE- David Paleino (2): debian/patches/03-fix_ImportError_mips.patch added, fixes un-importability on mips{,-el} due to a wrong import. Thanks Jakub Wilk (Closes: #599330) Releasing to sid --- -- C++/Python toolkit for developing GIS applications ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] [SCM] mapnik annotated tag, upstream/0.7.1, created. upstream/0.7.1
The annotated tag, upstream/0.7.1 has been created at ebc5802c1bad41ba3b31c5a8eb5c076f3ff93eda (tag) tagging e189e274937e1b5ed6181e7dfe2b6de34ebf7f9b (commit) replaces upstream/0.7.0 tagged by David Paleino on Thu Mar 25 18:48:03 2010 +0100 - Shortlog Upstream version 0.7.1 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkurodMACgkQ5qqQFxOSsXSFsQCaAlDRY2IFtxkdees79PG9TtX/ l2EAn1HAPIXsGDJB+aLFFeuKe3FCcpuh =dZU1 -END PGP SIGNATURE- David Paleino (1): Imported Upstream version 0.7.1 --- -- C++/Python toolkit for developing GIS applications ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] Processing of mapnik_0.7.1-2_i386.changes
mapnik_0.7.1-2_i386.changes uploaded successfully to localhost along with the files: mapnik_0.7.1-2.dsc mapnik_0.7.1-2.debian.tar.gz libmapnik0.7_0.7.1-2_i386.deb libmapnik-dev_0.7.1-2_i386.deb mapnik-utils_0.7.1-2_i386.deb python-mapnik_0.7.1-2_i386.deb mapnik-doc_0.7.1-2_all.deb Greetings, Your Debian queue daemon (running on host franck.debian.org) ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] mapnik_0.7.1-2_i386.changes ACCEPTED into unstable
Accepted: libmapnik-dev_0.7.1-2_i386.deb to main/m/mapnik/libmapnik-dev_0.7.1-2_i386.deb libmapnik0.7_0.7.1-2_i386.deb to main/m/mapnik/libmapnik0.7_0.7.1-2_i386.deb mapnik-doc_0.7.1-2_all.deb to main/m/mapnik/mapnik-doc_0.7.1-2_all.deb mapnik-utils_0.7.1-2_i386.deb to main/m/mapnik/mapnik-utils_0.7.1-2_i386.deb mapnik_0.7.1-2.debian.tar.gz to main/m/mapnik/mapnik_0.7.1-2.debian.tar.gz mapnik_0.7.1-2.dsc to main/m/mapnik/mapnik_0.7.1-2.dsc python-mapnik_0.7.1-2_i386.deb to main/m/mapnik/python-mapnik_0.7.1-2_i386.deb Override entries for your package: libmapnik-dev_0.7.1-2_i386.deb - optional libdevel libmapnik0.7_0.7.1-2_i386.deb - optional libs mapnik-doc_0.7.1-2_all.deb - optional doc mapnik-utils_0.7.1-2_i386.deb - optional utils mapnik_0.7.1-2.dsc - source libs python-mapnik_0.7.1-2_i386.deb - optional python Announcing to debian-devel-chan...@lists.debian.org Closing bugs: 599330 Thank you for your contribution to Debian. ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] Bug#599330: marked as done (python-mapnik: broken on mips*: ImportError: invalid mode parameter)
Your message dated Sat, 09 Oct 2010 15:02:57 + with message-id e1p4awr-0006bv...@franck.debian.org and subject line Bug#599330: fixed in mapnik 0.7.1-2 has caused the Debian Bug report #599330, regarding python-mapnik: broken on mips*: ImportError: invalid mode parameter 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 ow...@bugs.debian.org immediately.) -- 599330: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599330 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems ---BeginMessage--- Package: python-mapnik Version: 0.7.1-1 Severity: grave Tags: patch User: debian-m...@lists.debian.org Usertags: mips Justification: renders package unusable (on mips mipsel) mapnik is not importable on mips{,el}: $ python -c 'import mapnik' Traceback (most recent call last): File string, line 1, in module File /usr/lib/pymodules/python2.6/mapnik/__init__.py, line 53, in module from _mapnik import * ImportError: invalid mode parameter I believe that the attached (untested) patch fixes this bug. BTW, such a breakage could be detected earlier if test suite were run at build time. -- Jakub Wilk diff --git a/bindings/python/mapnik/__init__.py b/bindings/python/mapnik/__init__.py --- a/bindings/python/mapnik/__init__.py +++ b/bindings/python/mapnik/__init__.py @@ -42,7 +42,7 @@ from sys import getdlopenflags, setdlopenflags try: -from ctypes import RTLD_NOW, RTLD_GLOBAL +from DLFCN import RTLD_NOW, RTLD_GLOBAL except ImportError: RTLD_NOW = 2 RTLD_GLOBAL = 256 signature.asc Description: Digital signature ---End Message--- ---BeginMessage--- Source: mapnik Source-Version: 0.7.1-2 We believe that the bug you reported is fixed in the latest version of mapnik, which is due to be installed in the Debian FTP archive: libmapnik-dev_0.7.1-2_i386.deb to main/m/mapnik/libmapnik-dev_0.7.1-2_i386.deb libmapnik0.7_0.7.1-2_i386.deb to main/m/mapnik/libmapnik0.7_0.7.1-2_i386.deb mapnik-doc_0.7.1-2_all.deb to main/m/mapnik/mapnik-doc_0.7.1-2_all.deb mapnik-utils_0.7.1-2_i386.deb to main/m/mapnik/mapnik-utils_0.7.1-2_i386.deb mapnik_0.7.1-2.debian.tar.gz to main/m/mapnik/mapnik_0.7.1-2.debian.tar.gz mapnik_0.7.1-2.dsc to main/m/mapnik/mapnik_0.7.1-2.dsc python-mapnik_0.7.1-2_i386.deb to main/m/mapnik/python-mapnik_0.7.1-2_i386.deb 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 599...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. David Paleino da...@debian.org (supplier of updated mapnik 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 ftpmas...@debian.org) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Format: 1.8 Date: Sat, 09 Oct 2010 16:25:18 +0200 Source: mapnik Binary: libmapnik0.7 libmapnik-dev mapnik-utils python-mapnik mapnik-doc Architecture: source i386 all Version: 0.7.1-2 Distribution: unstable Urgency: low Maintainer: Debian GIS Project pkg-grass-devel@lists.alioth.debian.org Changed-By: David Paleino da...@debian.org Description: libmapnik-dev - C++/Python toolkit for developing GIS applications (devel) libmapnik0.7 - C++/Python toolkit for developing GIS applications (libraries) mapnik-doc - C++/Python toolkit for developing GIS applications (doc) mapnik-utils - C++/Python toolkit for developing GIS applications (utilities) python-mapnik - C++/Python toolkit for developing GIS applications (Python) Closes: 599330 Changes: mapnik (0.7.1-2) unstable; urgency=low . * debian/patches/03-fix_ImportError_mips.patch added, fixes un-importability on mips{,-el} due to a wrong import. Thanks Jakub Wilk (Closes: #599330) Checksums-Sha1: b4537f7963f1289f106632ab5b97153502723660 1856 mapnik_0.7.1-2.dsc f7a5e0a1ac9daecfd9e3caeb0519fa1ff8f62420 10816 mapnik_0.7.1-2.debian.tar.gz a8cc633d94c5b3cf1b0f1d64db809acc2b75931a 1043264 libmapnik0.7_0.7.1-2_i386.deb 62629b955b986aef606c3a6d29ec3869aaa97b35 97248 libmapnik-dev_0.7.1-2_i386.deb 7eb4ddc83e4858c3efe51acf20688eec4c64ce2f 66028 mapnik-utils_0.7.1-2_i386.deb a4c8f8b7881569514d249a226fe9757c96b9da71 1236028 python-mapnik_0.7.1-2_i386.deb f65eb3b721eff9fe8a5dffda4eab1dc2752870a0 2242110 mapnik-doc_0.7.1-2_all.deb Checksums-Sha256: fc145a6e27958d620c83dcea6fb9617716a45a1c3cbb95a9ed1cb8992c134019 1856 mapnik_0.7.1-2.dsc b921d663f3193f8aef0898d703404bea6c64d05d43b10c508f22c9af250235db 10816