[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-02-21 Thread Benjamin Drung
This bug is fixed with 0.98.5.2-1 in jaunty. The example code runs
without exceptions.

** Changed in: matplotlib (Ubuntu)
   Status: Triaged = Fix Released

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread gpk
It does, but I haven't had time to boil down the test case.  Sorry.

Kjell Braden wrote:
 We are closing this bug report because it lacks the information we need to 
 investigate the problem. If this still happens to you, please provide a test 
 case.
 Thanks for your understanding.
 
 ** Changed in: matplotlib (Ubuntu)
Status: Incomplete = Invalid


-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Benjamin Drung
Setting status back to incomplete.

** Changed in: matplotlib (Ubuntu)
   Status: Invalid = Incomplete

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread agb
here is an example of code that fails on 64 bit machines running 8.10, but 
works on 8.04.
Just run it with eg
python tmp.py

** Attachment added: Example of code that shows bug
   http://launchpadlibrarian.net/21208878/tmp.py

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Kjell Braden
Thanks, this testcase seems to work. I'll try some debugging.

** Changed in: matplotlib (Ubuntu)
   Status: Incomplete = Confirmed

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Kjell Braden
** Changed in: python-numpy (Ubuntu)
Sourcepackagename: matplotlib = python-numpy
 Assignee: (unassigned) = Kjell Braden (afflux)
   Status: Confirmed = In Progress

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread John D Hunter
On Wed, Jan 14, 2009 at 8:38 AM, Kjell Braden fn...@pentabarf.de wrote:
 Thanks, this testcase seems to work. I'll try some debugging.

 ** Changed in: matplotlib (Ubuntu)
   Status: Incomplete = Confirmed

 --
 python-matplotlib: Exception when drawing image on 64-bit system
 https://bugs.launchpad.net/bugs/295719
 You received this bug notification because you are a direct subscriber
 of the bug.


I have not been able to replicate the bug on a 64bit ubuntu 8.10 box.
here is the platform info for the machine I tested on using the script
http://launchpadlibrarian.net/21208878/tmp.py.  I am running svn HEAD
though, but I am not aware of anything that would have changed
regarding float32 images on 64 bit architectures

uqbar[~] uname -a
Linux uqbar 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008
x86_64 GNU/Linux
uqbar[~] cat /etc/issue
Ubuntu 8.10 \n \l

uqbar[~] python -c 'import platform;print platform.architecture()'
('64bit', 'ELF')

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Kjell Braden
John, in svn HEAD r6036 fixed this problem, which seems to need a newer
numpy version, (PyArray_SimpleNewFromData does not use the same
conversion code for the dimensions as PyArray_FromDimsAndData uses)

The attached patch fixes this issue for me. Can someone confirm that
this does not affect i386?

We have to wait for bug 317208 and two more sync requests to be done
before we can upload this change, as matpotlib currently FTBFS.

** Attachment added: fix_backendgdb_pointers.patch
   http://launchpadlibrarian.net/21217636/fix_backendgdb_pointers.patch

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Kjell Braden
Woops, accidentally changed the affected source package.

** Changed in: matplotlib (Ubuntu)
Sourcepackagename: python-numpy = matplotlib

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-14 Thread Kjell Braden
** Changed in: matplotlib (Ubuntu)
   Importance: Undecided = Medium
   Status: In Progress = Triaged

** Changed in: matplotlib (Ubuntu)
 Assignee: Kjell Braden (afflux) = (unassigned)

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2009-01-13 Thread Kjell Braden
We are closing this bug report because it lacks the information we need to 
investigate the problem. If this still happens to you, please provide a test 
case.
Thanks for your understanding.

** Changed in: matplotlib (Ubuntu)
   Status: Incomplete = Invalid

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2008-11-09 Thread Kjell Braden
Can you please provide some come snippet to recreate this bug?

** Changed in: matplotlib (Ubuntu)
   Status: New = Incomplete

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2008-11-09 Thread gpk
At the moment, only a big complicated one.  However, I think Benjamin Drung dug 
up
something worth inspecting.   My bet is that he found the problem.

Please take a look at the incompatible pointer type problem he found; if that 
isn't relevant
or isn't trivial to fix, I'll boil my code down to a small test case.

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 295719] Re: python-matplotlib: Exception when drawing image on 64-bit system

2008-11-08 Thread Benjamin Drung
Thank you for taking the time to report this bug and helping to make
Ubuntu better. The package is build once for i386 and once for amd64. So
there should be no 32 and 64 bit libraries mixed. Building matplotlib
0.98.3-6 on intrepid produces following warning. It looks like that the
warning has something to do with this bug.

building 'matplotlib.backends._backend_gdk' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -g -O2 -fPIC 
-I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include -I. 
-I/usr/include -I. -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 
-I/usr/include/python2.4 -c src/backend_gdk.c -o 
build/temp.linux-x86_64-2.4/src/backend_gdk.o
In file included from /usr/include/gtk-2.0/gtk/gtk.h:224,
 from /usr/include/pygtk-2.0/pygtk/pygtk.h:8,
 from src/backend_gdk.c:9:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration 
isn’t a prototype
src/backend_gdk.c: In function ‘pixbuf_get_pixels_array’:
src/backend_gdk.c:48: warning: passing argument 2 of ‘(struct PyObject * 
(*)(int,  int *, struct PyArray_Descr *, char *))*(PyArray_API + 544u)’ from 
incompatible pointer type


** Bug watch added: SourceForge.net Tracker #2243945
   http://sourceforge.net/support/tracker.php?aid=2243945

** Also affects: matplotlib via
   http://sourceforge.net/support/tracker.php?aid=2243945
   Importance: Unknown
   Status: Unknown

-- 
python-matplotlib: Exception when drawing image on 64-bit system
https://bugs.launchpad.net/bugs/295719
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs