You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(33) |
Dec
(20) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(7) |
Feb
(44) |
Mar
(51) |
Apr
(43) |
May
(43) |
Jun
(36) |
Jul
(61) |
Aug
(44) |
Sep
(25) |
Oct
(82) |
Nov
(97) |
Dec
(47) |
| 2005 |
Jan
(77) |
Feb
(143) |
Mar
(42) |
Apr
(31) |
May
(93) |
Jun
(93) |
Jul
(35) |
Aug
(78) |
Sep
(56) |
Oct
(44) |
Nov
(72) |
Dec
(75) |
| 2006 |
Jan
(116) |
Feb
(99) |
Mar
(181) |
Apr
(171) |
May
(112) |
Jun
(86) |
Jul
(91) |
Aug
(111) |
Sep
(77) |
Oct
(72) |
Nov
(57) |
Dec
(51) |
| 2007 |
Jan
(64) |
Feb
(116) |
Mar
(70) |
Apr
(74) |
May
(53) |
Jun
(40) |
Jul
(519) |
Aug
(151) |
Sep
(132) |
Oct
(74) |
Nov
(282) |
Dec
(190) |
| 2008 |
Jan
(141) |
Feb
(67) |
Mar
(69) |
Apr
(96) |
May
(227) |
Jun
(404) |
Jul
(399) |
Aug
(96) |
Sep
(120) |
Oct
(205) |
Nov
(126) |
Dec
(261) |
| 2009 |
Jan
(136) |
Feb
(136) |
Mar
(119) |
Apr
(124) |
May
(155) |
Jun
(98) |
Jul
(136) |
Aug
(292) |
Sep
(174) |
Oct
(126) |
Nov
(126) |
Dec
(79) |
| 2010 |
Jan
(109) |
Feb
(83) |
Mar
(139) |
Apr
(91) |
May
(79) |
Jun
(164) |
Jul
(184) |
Aug
(146) |
Sep
(163) |
Oct
(128) |
Nov
(70) |
Dec
(73) |
| 2011 |
Jan
(235) |
Feb
(165) |
Mar
(147) |
Apr
(86) |
May
(74) |
Jun
(118) |
Jul
(65) |
Aug
(75) |
Sep
(162) |
Oct
(94) |
Nov
(48) |
Dec
(44) |
| 2012 |
Jan
(49) |
Feb
(40) |
Mar
(88) |
Apr
(35) |
May
(52) |
Jun
(69) |
Jul
(90) |
Aug
(123) |
Sep
(112) |
Oct
(120) |
Nov
(105) |
Dec
(116) |
| 2013 |
Jan
(76) |
Feb
(26) |
Mar
(78) |
Apr
(43) |
May
(61) |
Jun
(53) |
Jul
(147) |
Aug
(85) |
Sep
(83) |
Oct
(122) |
Nov
(18) |
Dec
(27) |
| 2014 |
Jan
(58) |
Feb
(25) |
Mar
(49) |
Apr
(17) |
May
(29) |
Jun
(39) |
Jul
(53) |
Aug
(52) |
Sep
(35) |
Oct
(47) |
Nov
(110) |
Dec
(27) |
| 2015 |
Jan
(50) |
Feb
(93) |
Mar
(96) |
Apr
(30) |
May
(55) |
Jun
(83) |
Jul
(44) |
Aug
(8) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
(1) |
| 2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
|
2
|
3
|
4
(1) |
5
(11) |
6
(1) |
|
7
(1) |
8
(4) |
9
|
10
|
11
(2) |
12
(2) |
13
(3) |
|
14
(2) |
15
(8) |
16
(4) |
17
(3) |
18
|
19
|
20
|
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
|
28
|
29
(1) |
30
|
|
|
|
|
|
From: gary r. <gar...@gm...> - 2013-04-08 23:36:34
|
ceil doesn't work for me
I tried
figsize = [np.ceil(x / float(dpi)) for x in (arr.shape[1], arr.shape[0])]
and it fails on my second test when dpi=2 and i=25
result=26x26
Gary
On 9 April 2013 07:03, Michael Droettboom <md...@st...> wrote:
> On 04/08/2013 02:38 PM, Benjamin Root wrote:
>
>
>
>
> On Sun, Apr 7, 2013 at 4:39 AM, gary ruben <gar...@gm...> wrote:
>
>> Hi, I haven't looked at this list for a long time, so hi to all the
>> active devs.
>> I just came across a problem in the image.py imsave() function.
>>
>> Problem:
>> At an ipython --pylab prompt, typing
>>
>> a = rand(29,29)
>> imsave('test.png', a)
>>
>> incorrectly generates a 28x28 pixel image.
>> This happens for several array sizes (I initially saw it for 226x226).
>>
>> Line 1272 of image.py is
>> figsize = [x / float(dpi) for x in (arr.shape[1], arr.shape[0])]
>>
>> figsize interacts with the bounding box code somehow to create off-by-one
>> results for certain values of array shape.
>>
>>
>> Possible solution:
>> To fix this properly, I think the float cast should be removed and
>> integer-based math should be used, but I thought that since it was rounding
>> down in the cases I saw, a change to the following should fix this:
>>
>> figsize = [(x + 0.5) / float(dpi) for x in (arr.shape[1], arr.shape[0])]
>>
>> and indeed this seems to work.
>> To verify this, I ran the following brute-force test of all image sizes
>> up to 1024x1024 at some common dpi values:
>>
>> import matplotlib.pyplot as plt
>> import numpy as np
>> import os
>>
>> for dpi in [75, 100, 150, 300, 600, 1200]:
>> for i in range(1,1025):
>> print dpi, i,
>> im = np.random.random((i,i))
>> fname = 'test{:03d}.png'.format(i)
>> plt.imsave(fname, im, dpi=dpi)
>> im = plt.imread(fname)[:,:,0]
>> print im.shape
>> assert im.shape == (i, i)
>> os.remove(fname)
>>
>> and everything passed.
>>
>> For completeness I also explored the dpi-space with these loop ranges
>> and the above loop body:
>>
>> for dpi in range(1, 101):
>> for i in range(25, 36):
>> ...
>>
>> and all was still well.
>>
>>
>> Workaround:
>> For the moment I've set dpi=1 in my call to imsave which effectively
>> reverts its behaviour to the original imsave code prior to the introduction
>> of the dpi parameter.
>>
>> I think this testing is rigorous enough to make this change.
>> If you agree, has anyone got time to change this, or shall I do a pull
>> request when I have time?
>>
>> thanks,
>> Gary
>>
>>
> Good catch on this. So you are saying that this bug was introduced
> relatively recently with the dpi kwarg? I would suggest you make a PR so
> that this doesn't get lost (or at the very least file a bug report). As
> for the fix itself, off the top of my head, wouldn't math.ceil() do what we
> want? I prefer to be explicit in any intents rather than just simply (x +
> 0.5) / float(dpi). As for the test, I would wonder if some sort of
> restricted version of that test might not be good to do? I am thinking
> about 10 different sized plots and we wouldn't even need to have a the
> assert check or file removal test, as the image comparison framework would
> throw an exception when attempting to compare two images of different sizes
> (I think...).
>
>
> I think this bug goes back at least to hash 17192518, by me in May 2010.
> The suggested fix (probably using ceil to be more explicit as you suggest)
> seems right.
>
> As for the test, I think just `imsave` to a buffer, and loading that
> buffer back in with `imread` and asserting the sizes are the same should be
> sufficient.
>
> Mike
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
|
|
From: Michael D. <md...@st...> - 2013-04-08 21:03:21
|
On 04/08/2013 02:38 PM, Benjamin Root wrote:
>
>
>
> On Sun, Apr 7, 2013 at 4:39 AM, gary ruben <gar...@gm...
> <mailto:gar...@gm...>> wrote:
>
> Hi, I haven't looked at this list for a long time, so hi to all
> the active devs.
> I just came across a problem in the image.py imsave() function.
>
> Problem:
> At an ipython --pylab prompt, typing
>
> a = rand(29,29)
> imsave('test.png', a)
>
> incorrectly generates a 28x28 pixel image.
> This happens for several array sizes (I initially saw it for 226x226).
>
> Line 1272 of image.py is
> figsize = [x / float(dpi) for x in (arr.shape[1], arr.shape[0])]
>
> figsize interacts with the bounding box code somehow to create
> off-by-one results for certain values of array shape.
>
>
> Possible solution:
> To fix this properly, I think the float cast should be removed and
> integer-based math should be used, but I thought that since it was
> rounding down in the cases I saw, a change to the following should
> fix this:
>
> figsize = [(x + 0.5) / float(dpi) for x in (arr.shape[1],
> arr.shape[0])]
>
> and indeed this seems to work.
> To verify this, I ran the following brute-force test of all image
> sizes up to 1024x1024 at some common dpi values:
>
> import matplotlib.pyplot as plt
> import numpy as np
> import os
>
> for dpi in [75, 100, 150, 300, 600, 1200]:
> for i in range(1,1025):
> print dpi, i,
> im = np.random.random((i,i))
> fname = 'test{:03d}.png'.format(i)
> plt.imsave(fname, im, dpi=dpi)
> im = plt.imread(fname)[:,:,0]
> print im.shape
> assert im.shape == (i, i)
> os.remove(fname)
>
> and everything passed.
>
> For completeness I also explored the dpi-space with these loop
> ranges and the above loop body:
>
> for dpi in range(1, 101):
> for i in range(25, 36):
> ...
>
> and all was still well.
>
>
> Workaround:
> For the moment I've set dpi=1 in my call to imsave which
> effectively reverts its behaviour to the original imsave code
> prior to the introduction of the dpi parameter.
>
> I think this testing is rigorous enough to make this change.
> If you agree, has anyone got time to change this, or shall I do a
> pull request when I have time?
>
> thanks,
> Gary
>
>
> Good catch on this. So you are saying that this bug was introduced
> relatively recently with the dpi kwarg? I would suggest you make a PR
> so that this doesn't get lost (or at the very least file a bug
> report). As for the fix itself, off the top of my head, wouldn't
> math.ceil() do what we want? I prefer to be explicit in any intents
> rather than just simply (x + 0.5) / float(dpi). As for the test, I
> would wonder if some sort of restricted version of that test might not
> be good to do? I am thinking about 10 different sized plots and we
> wouldn't even need to have a the assert check or file removal test, as
> the image comparison framework would throw an exception when
> attempting to compare two images of different sizes (I think...).
I think this bug goes back at least to hash 17192518, by me in May
2010. The suggested fix (probably using ceil to be more explicit as you
suggest) seems right.
As for the test, I think just `imsave` to a buffer, and loading that
buffer back in with `imread` and asserting the sizes are the same should
be sufficient.
Mike
|
|
From: Benjamin R. <ben...@ou...> - 2013-04-08 18:38:46
|
On Sun, Apr 7, 2013 at 4:39 AM, gary ruben <gar...@gm...> wrote:
> Hi, I haven't looked at this list for a long time, so hi to all the active
> devs.
> I just came across a problem in the image.py imsave() function.
>
> Problem:
> At an ipython --pylab prompt, typing
>
> a = rand(29,29)
> imsave('test.png', a)
>
> incorrectly generates a 28x28 pixel image.
> This happens for several array sizes (I initially saw it for 226x226).
>
> Line 1272 of image.py is
> figsize = [x / float(dpi) for x in (arr.shape[1], arr.shape[0])]
>
> figsize interacts with the bounding box code somehow to create off-by-one
> results for certain values of array shape.
>
>
> Possible solution:
> To fix this properly, I think the float cast should be removed and
> integer-based math should be used, but I thought that since it was rounding
> down in the cases I saw, a change to the following should fix this:
>
> figsize = [(x + 0.5) / float(dpi) for x in (arr.shape[1], arr.shape[0])]
>
> and indeed this seems to work.
> To verify this, I ran the following brute-force test of all image sizes up
> to 1024x1024 at some common dpi values:
>
> import matplotlib.pyplot as plt
> import numpy as np
> import os
>
> for dpi in [75, 100, 150, 300, 600, 1200]:
> for i in range(1,1025):
> print dpi, i,
> im = np.random.random((i,i))
> fname = 'test{:03d}.png'.format(i)
> plt.imsave(fname, im, dpi=dpi)
> im = plt.imread(fname)[:,:,0]
> print im.shape
> assert im.shape == (i, i)
> os.remove(fname)
>
> and everything passed.
>
> For completeness I also explored the dpi-space with these loop ranges and
> the above loop body:
>
> for dpi in range(1, 101):
> for i in range(25, 36):
> ...
>
> and all was still well.
>
>
> Workaround:
> For the moment I've set dpi=1 in my call to imsave which effectively
> reverts its behaviour to the original imsave code prior to the introduction
> of the dpi parameter.
>
> I think this testing is rigorous enough to make this change.
> If you agree, has anyone got time to change this, or shall I do a pull
> request when I have time?
>
> thanks,
> Gary
>
>
Good catch on this. So you are saying that this bug was introduced
relatively recently with the dpi kwarg? I would suggest you make a PR so
that this doesn't get lost (or at the very least file a bug report). As
for the fix itself, off the top of my head, wouldn't math.ceil() do what we
want? I prefer to be explicit in any intents rather than just simply (x +
0.5) / float(dpi). As for the test, I would wonder if some sort of
restricted version of that test might not be good to do? I am thinking
about 10 different sized plots and we wouldn't even need to have a the
assert check or file removal test, as the image comparison framework would
throw an exception when attempting to compare two images of different sizes
(I think...).
Cheers!
Ben Root
|
|
From: Michael D. <md...@st...> - 2013-04-08 15:25:00
|
Hey there, Just getting to this after a vacation. I think I was stymied by the fact that the Fedora package for pycxx provides a pkg-config file, whereas, as you point out, it is not upstream. I'll put my further comments on the issue. Cheers, Mike On 04/05/2013 11:23 PM, Fernando Perez wrote: > On Fri, Apr 5, 2013 at 2:51 PM, Julian Taylor > <jta...@go...> wrote: > >> I filed an issue: >> https://github.com/matplotlib/matplotlib/issues/1884 > Go figure, it was an actual bug! Well, thanks a lot for tracking it down :) > > I guess for now I'll just remove pycxx-dev from my system. > Fortunately I don't need it for anything else. But it means that > right now, mpl can't be built on a system with the matplotlib > build-deps loaded, which is a bummer. > > Cheers, > > f > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel |
|
From: gary r. <gar...@gm...> - 2013-04-07 08:40:19
|
Hi, I haven't looked at this list for a long time, so hi to all the active
devs.
I just came across a problem in the image.py imsave() function.
Problem:
At an ipython --pylab prompt, typing
a = rand(29,29)
imsave('test.png', a)
incorrectly generates a 28x28 pixel image.
This happens for several array sizes (I initially saw it for 226x226).
Line 1272 of image.py is
figsize = [x / float(dpi) for x in (arr.shape[1], arr.shape[0])]
figsize interacts with the bounding box code somehow to create off-by-one
results for certain values of array shape.
Possible solution:
To fix this properly, I think the float cast should be removed and
integer-based math should be used, but I thought that since it was rounding
down in the cases I saw, a change to the following should fix this:
figsize = [(x + 0.5) / float(dpi) for x in (arr.shape[1], arr.shape[0])]
and indeed this seems to work.
To verify this, I ran the following brute-force test of all image sizes up
to 1024x1024 at some common dpi values:
import matplotlib.pyplot as plt
import numpy as np
import os
for dpi in [75, 100, 150, 300, 600, 1200]:
for i in range(1,1025):
print dpi, i,
im = np.random.random((i,i))
fname = 'test{:03d}.png'.format(i)
plt.imsave(fname, im, dpi=dpi)
im = plt.imread(fname)[:,:,0]
print im.shape
assert im.shape == (i, i)
os.remove(fname)
and everything passed.
For completeness I also explored the dpi-space with these loop ranges and
the above loop body:
for dpi in range(1, 101):
for i in range(25, 36):
...
and all was still well.
Workaround:
For the moment I've set dpi=1 in my call to imsave which effectively
reverts its behaviour to the original imsave code prior to the introduction
of the dpi parameter.
I think this testing is rigorous enough to make this change.
If you agree, has anyone got time to change this, or shall I do a pull
request when I have time?
thanks,
Gary
|
|
From: Fernando P. <fpe...@gm...> - 2013-04-06 03:24:24
|
On Fri, Apr 5, 2013 at 2:51 PM, Julian Taylor <jta...@go...> wrote: > I filed an issue: > https://github.com/matplotlib/matplotlib/issues/1884 Go figure, it was an actual bug! Well, thanks a lot for tracking it down :) I guess for now I'll just remove pycxx-dev from my system. Fortunately I don't need it for anything else. But it means that right now, mpl can't be built on a system with the matplotlib build-deps loaded, which is a bummer. Cheers, f |
|
From: Julian T. <jta...@go...> - 2013-04-05 21:51:53
|
On 05.04.2013 23:35, Julian Taylor wrote: > On 05.04.2013 23:16, Fernando Perez wrote: >> On Fri, Apr 5, 2013 at 1:49 PM, Julian Taylor >> <jta...@go...> wrote: >> >>> strange, it isn't linked against libpng at all. I can't reproduce that >>> on my Ubuntu machine with git head. >>> >>> Do you still have a buildlog? >>> Maybe do a new build from a clean folder (and save the log). >> >> I just did a fully clean rebuild in a fresh clone, and the same thing >> happens. Build log here: >> >> http://pastebin.com/eCGbEvKb >> >> The only thing that jumpts at me is: >> >> Package PyCXX was not found in the pkg-config search path. >> Perhaps you should add the directory containing `PyCXX.pc' >> to the PKG_CONFIG_PATH environment variable >> No package 'PyCXX' found >> >> which I don't understand, as pycxx is clearly installed: >> >> (master)longs[matplotlib]> apt-cache policy python-cxx >> python-cxx: >> Installed: 6.2.4-1 >> Candidate: 6.2.4-1 >> Version table: >> *** 6.2.4-1 0 >> 500 http://ubuntu.cs.utah.edu/ubuntu/ quantal/universe amd64 Packages >> 100 /var/lib/dpkg/status >> >> >> Puzzled... >> > > > actually the presence of the PyCXX package seems to be the problem. If I > have it installed it fails, if not it works. Looks like some weird bug > in the build system. > Why is it looking for a pkg-config file? PyCXX does not provide one. > > I though system PyCXX could not be used because it needed unmerged patches? > Btw. I could merge the patches into the Debian package if they are > forwarded to me. > I filed an issue: https://github.com/matplotlib/matplotlib/issues/1884 |
|
From: Julian T. <jta...@go...> - 2013-04-05 21:35:46
|
On 05.04.2013 23:16, Fernando Perez wrote: > On Fri, Apr 5, 2013 at 1:49 PM, Julian Taylor > <jta...@go...> wrote: > >> strange, it isn't linked against libpng at all. I can't reproduce that >> on my Ubuntu machine with git head. >> >> Do you still have a buildlog? >> Maybe do a new build from a clean folder (and save the log). > > I just did a fully clean rebuild in a fresh clone, and the same thing > happens. Build log here: > > http://pastebin.com/eCGbEvKb > > The only thing that jumpts at me is: > > Package PyCXX was not found in the pkg-config search path. > Perhaps you should add the directory containing `PyCXX.pc' > to the PKG_CONFIG_PATH environment variable > No package 'PyCXX' found > > which I don't understand, as pycxx is clearly installed: > > (master)longs[matplotlib]> apt-cache policy python-cxx > python-cxx: > Installed: 6.2.4-1 > Candidate: 6.2.4-1 > Version table: > *** 6.2.4-1 0 > 500 http://ubuntu.cs.utah.edu/ubuntu/ quantal/universe amd64 Packages > 100 /var/lib/dpkg/status > > > Puzzled... > actually the presence of the PyCXX package seems to be the problem. If I have it installed it fails, if not it works. Looks like some weird bug in the build system. Why is it looking for a pkg-config file? PyCXX does not provide one. I though system PyCXX could not be used because it needed unmerged patches? Btw. I could merge the patches into the Debian package if they are forwarded to me. |
|
From: Fernando P. <fpe...@gm...> - 2013-04-05 21:17:38
|
On Fri, Apr 5, 2013 at 1:49 PM, Julian Taylor <jta...@go...> wrote: > strange, it isn't linked against libpng at all. I can't reproduce that > on my Ubuntu machine with git head. > > Do you still have a buildlog? > Maybe do a new build from a clean folder (and save the log). I just did a fully clean rebuild in a fresh clone, and the same thing happens. Build log here: http://pastebin.com/eCGbEvKb The only thing that jumpts at me is: Package PyCXX was not found in the pkg-config search path. Perhaps you should add the directory containing `PyCXX.pc' to the PKG_CONFIG_PATH environment variable No package 'PyCXX' found which I don't understand, as pycxx is clearly installed: (master)longs[matplotlib]> apt-cache policy python-cxx python-cxx: Installed: 6.2.4-1 Candidate: 6.2.4-1 Version table: *** 6.2.4-1 0 500 http://ubuntu.cs.utah.edu/ubuntu/ quantal/universe amd64 Packages 100 /var/lib/dpkg/status Puzzled... f |
|
From: Julian T. <jta...@go...> - 2013-04-05 20:49:32
|
On 05.04.2013 22:32, Fernando Perez wrote: > On Fri, Apr 5, 2013 at 10:06 AM, Julian Taylor > <jta...@go...> wrote: >> >> whats the output of: >> ldd >> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so >> apt-cache policy libpng12-dev >> >> the system libpng in ubuntu 12.10 does have this symbol defined, maybe >> you are picking up some other installation. > > Here's what I get: > > longs[~]> ldd /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so > linux-vdso.so.1 => (0x00007fff56dff000) > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f97ecaeb000) > libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f97ec8d4000) > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f97ec6b7000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f97ec2f8000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f97ebffb000) > /lib64/ld-linux-x86-64.so.2 (0x00007f97ed04b000) > > > longs[~]> apt-cache policy libpng12-dev > libpng12-dev: > Installed: 1.2.49-1ubuntu1 > Candidate: 1.2.49-1ubuntu1 > Version table: > *** 1.2.49-1ubuntu1 0 > 500 http://ubuntu.cs.utah.edu/ubuntu/ quantal/main amd64 Packages > 100 /var/lib/dpkg/status > > > Thanks for any insights you may provide... > > f > strange, it isn't linked against libpng at all. I can't reproduce that on my Ubuntu machine with git head. Do you still have a buildlog? Maybe do a new build from a clean folder (and save the log). |
|
From: Fernando P. <fpe...@gm...> - 2013-04-05 20:33:03
|
On Fri, Apr 5, 2013 at 10:06 AM, Julian Taylor
<jta...@go...> wrote:
>
> whats the output of:
> ldd
> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so
> apt-cache policy libpng12-dev
>
> the system libpng in ubuntu 12.10 does have this symbol defined, maybe
> you are picking up some other installation.
Here's what I get:
longs[~]> ldd /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so
linux-vdso.so.1 => (0x00007fff56dff000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f97ecaeb000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f97ec8d4000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f97ec6b7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f97ec2f8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f97ebffb000)
/lib64/ld-linux-x86-64.so.2 (0x00007f97ed04b000)
longs[~]> apt-cache policy libpng12-dev
libpng12-dev:
Installed: 1.2.49-1ubuntu1
Candidate: 1.2.49-1ubuntu1
Version table:
*** 1.2.49-1ubuntu1 0
500 http://ubuntu.cs.utah.edu/ubuntu/ quantal/main amd64 Packages
100 /var/lib/dpkg/status
Thanks for any insights you may provide...
f
|
|
From: Julian T. <jta...@go...> - 2013-04-05 17:06:46
|
On 05.04.2013 07:37, Fernando Perez wrote: > Well, I'm using the system libpng, which is what puzzles me: there > should be no need for me to modify my LD_..., and I haven't done so in > the past. I'll have to dig into the build tomorrow to figure out > exactly what's going on there... > whats the output of: ldd /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so apt-cache policy libpng12-dev the system libpng in ubuntu 12.10 does have this symbol defined, maybe you are picking up some other installation. > Will report back. > > > On Thu, Apr 4, 2013 at 9:24 PM, Damon McDougall > <dam...@gm... <mailto:dam...@gm...>> wrote: > > > > > On Thu, Apr 4, 2013 at 10:51 PM, Fernando Perez > <fpe...@gm... <mailto:fpe...@gm...>> wrote: > > Thanks, Damon, for this info. > > Based on this, I've tested now on another, different system with > the same version of linux and can't reproduce it either. Very > odd, but it looks like something is amiss on my end, so let me > investigate further before anyone burns further cycles on the issue. > > Cheers, > > f > > > On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall > <dam...@gm... <mailto:dam...@gm...>> > wrote: > > On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez > <fpe...@gm... <mailto:fpe...@gm...>> wrote: > > Hi folks, > > I'm getting the following error from a clean build of > master on an > ubuntu 12.10 machine: > > longs[junk]> python -c 'import matplotlib._png' > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: > /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: > undefined symbol: png_create_read_struct > > > I hadn't seen anything like this recently, nor can I > find similar > reports, so I'm wondering if anyone knows what's going > on, or if it's > an error on my side. I can try to bisect it but I > figured I'd ask > first in case it's obvious to someone else... > > Cheers, > > f > > > Hi Fernando, > > I can't recreate this on OS X with the current git master > branch, which is at 11e7ed. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > > > > Any time, Fernando. > > Out of curiosity, is the png_create_read_struct a symbol from > libpng? If so, try adding wherever your libpng lives to your > LD_LIBRARY_PATH and see what happens. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > > > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |
|
From: Mike K. <mc...@gm...> - 2013-04-05 12:01:59
|
I've had problems like this using a git-source matplotlib and macports. This usually happens after libpng is upgraded. Turns out a 'python setup.py install ...' in matplotlib will not solve things until you manually delete the contents of the matplotlib build/ directory. After which new go at setup.py install will link to the new libpng library. 'make clean' will not do this for you (which is probably an oversight in the matplotlib Makefile). Don't know if this will help for linux. M On 4/5/13 1:37 AM, Fernando Perez wrote: > Well, I'm using the system libpng, which is what puzzles me: there > should be no need for me to modify my LD_..., and I haven't done so in > the past. I'll have to dig into the build tomorrow to figure out > exactly what's going on there... > > Will report back. > > > On Thu, Apr 4, 2013 at 9:24 PM, Damon McDougall > <dam...@gm... <mailto:dam...@gm...>> wrote: > > > > > On Thu, Apr 4, 2013 at 10:51 PM, Fernando Perez > <fpe...@gm... <mailto:fpe...@gm...>> wrote: > > Thanks, Damon, for this info. > > Based on this, I've tested now on another, different system with > the same version of linux and can't reproduce it either. Very > odd, but it looks like something is amiss on my end, so let me > investigate further before anyone burns further cycles on the issue. > > Cheers, > > f > > > On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall > <dam...@gm... <mailto:dam...@gm...>> > wrote: > > On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez > <fpe...@gm... <mailto:fpe...@gm...>> wrote: > > Hi folks, > > I'm getting the following error from a clean build of > master on an > ubuntu 12.10 machine: > > longs[junk]> python -c 'import matplotlib._png' > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: > /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: > undefined symbol: png_create_read_struct > > > I hadn't seen anything like this recently, nor can I > find similar > reports, so I'm wondering if anyone knows what's going > on, or if it's > an error on my side. I can try to bisect it but I > figured I'd ask > first in case it's obvious to someone else... > > Cheers, > > f > > > Hi Fernando, > > I can't recreate this on OS X with the current git master > branch, which is at 11e7ed. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > > > > Any time, Fernando. > > Out of curiosity, is the png_create_read_struct a symbol from > libpng? If so, try adding wherever your libpng lives to your > LD_LIBRARY_PATH and see what happens. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > > > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |
|
From: Fernando P. <fpe...@gm...> - 2013-04-05 05:37:50
|
Well, I'm using the system libpng, which is what puzzles me: there should be no need for me to modify my LD_..., and I haven't done so in the past. I'll have to dig into the build tomorrow to figure out exactly what's going on there... Will report back. On Thu, Apr 4, 2013 at 9:24 PM, Damon McDougall <dam...@gm...>wrote: > > > > On Thu, Apr 4, 2013 at 10:51 PM, Fernando Perez <fpe...@gm...>wrote: > >> Thanks, Damon, for this info. >> >> Based on this, I've tested now on another, different system with the same >> version of linux and can't reproduce it either. Very odd, but it looks >> like something is amiss on my end, so let me investigate further before >> anyone burns further cycles on the issue. >> >> Cheers, >> >> f >> >> >> On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall < >> dam...@gm...> wrote: >> >>> On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez <fpe...@gm...>wrote: >>> >>>> Hi folks, >>>> >>>> I'm getting the following error from a clean build of master on an >>>> ubuntu 12.10 machine: >>>> >>>> longs[junk]> python -c 'import matplotlib._png' >>>> Traceback (most recent call last): >>>> File "<string>", line 1, in <module> >>>> ImportError: >>>> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: >>>> undefined symbol: png_create_read_struct >>>> >>>> >>>> I hadn't seen anything like this recently, nor can I find similar >>>> reports, so I'm wondering if anyone knows what's going on, or if it's >>>> an error on my side. I can try to bisect it but I figured I'd ask >>>> first in case it's obvious to someone else... >>>> >>>> Cheers, >>>> >>>> f >>>> >>> >>> Hi Fernando, >>> >>> I can't recreate this on OS X with the current git master branch, which >>> is at 11e7ed. >>> >>> Best wishes, >>> Damon >>> >>> -- >>> Damon McDougall >>> http://www.damon-is-a-geek.com >>> Institute for Computational Engineering Sciences >>> 201 E. 24th St. >>> Stop C0200 >>> The University of Texas at Austin >>> Austin, TX 78712-1229 >>> >> >> > Any time, Fernando. > > Out of curiosity, is the png_create_read_struct a symbol from libpng? If > so, try adding wherever your libpng lives to your LD_LIBRARY_PATH and see > what happens. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > |
|
From: Damon M. <dam...@gm...> - 2013-04-05 04:24:25
|
On Thu, Apr 4, 2013 at 10:51 PM, Fernando Perez <fpe...@gm...>wrote: > Thanks, Damon, for this info. > > Based on this, I've tested now on another, different system with the same > version of linux and can't reproduce it either. Very odd, but it looks > like something is amiss on my end, so let me investigate further before > anyone burns further cycles on the issue. > > Cheers, > > f > > > On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall <dam...@gm... > > wrote: > >> On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez <fpe...@gm...>wrote: >> >>> Hi folks, >>> >>> I'm getting the following error from a clean build of master on an >>> ubuntu 12.10 machine: >>> >>> longs[junk]> python -c 'import matplotlib._png' >>> Traceback (most recent call last): >>> File "<string>", line 1, in <module> >>> ImportError: >>> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: >>> undefined symbol: png_create_read_struct >>> >>> >>> I hadn't seen anything like this recently, nor can I find similar >>> reports, so I'm wondering if anyone knows what's going on, or if it's >>> an error on my side. I can try to bisect it but I figured I'd ask >>> first in case it's obvious to someone else... >>> >>> Cheers, >>> >>> f >>> >> >> Hi Fernando, >> >> I can't recreate this on OS X with the current git master branch, which >> is at 11e7ed. >> >> Best wishes, >> Damon >> >> -- >> Damon McDougall >> http://www.damon-is-a-geek.com >> Institute for Computational Engineering Sciences >> 201 E. 24th St. >> Stop C0200 >> The University of Texas at Austin >> Austin, TX 78712-1229 >> > > Any time, Fernando. Out of curiosity, is the png_create_read_struct a symbol from libpng? If so, try adding wherever your libpng lives to your LD_LIBRARY_PATH and see what happens. Best wishes, Damon -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 |
|
From: Fernando P. <fpe...@gm...> - 2013-04-05 03:52:31
|
Thanks, Damon, for this info. Based on this, I've tested now on another, different system with the same version of linux and can't reproduce it either. Very odd, but it looks like something is amiss on my end, so let me investigate further before anyone burns further cycles on the issue. Cheers, f On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall <dam...@gm...>wrote: > On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez <fpe...@gm...>wrote: > >> Hi folks, >> >> I'm getting the following error from a clean build of master on an >> ubuntu 12.10 machine: >> >> longs[junk]> python -c 'import matplotlib._png' >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> ImportError: >> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: >> undefined symbol: png_create_read_struct >> >> >> I hadn't seen anything like this recently, nor can I find similar >> reports, so I'm wondering if anyone knows what's going on, or if it's >> an error on my side. I can try to bisect it but I figured I'd ask >> first in case it's obvious to someone else... >> >> Cheers, >> >> f >> > > Hi Fernando, > > I can't recreate this on OS X with the current git master branch, which is > at 11e7ed. > > Best wishes, > Damon > > -- > Damon McDougall > http://www.damon-is-a-geek.com > Institute for Computational Engineering Sciences > 201 E. 24th St. > Stop C0200 > The University of Texas at Austin > Austin, TX 78712-1229 > |
|
From: Damon M. <dam...@gm...> - 2013-04-05 03:06:57
|
On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez <fpe...@gm...> wrote: > Hi folks, > > I'm getting the following error from a clean build of master on an > ubuntu 12.10 machine: > > longs[junk]> python -c 'import matplotlib._png' > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: > /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: > undefined symbol: png_create_read_struct > > > I hadn't seen anything like this recently, nor can I find similar > reports, so I'm wondering if anyone knows what's going on, or if it's > an error on my side. I can try to bisect it but I figured I'd ask > first in case it's obvious to someone else... > > Cheers, > > f > Hi Fernando, I can't recreate this on OS X with the current git master branch, which is at 11e7ed. Best wishes, Damon -- Damon McDougall http://www.damon-is-a-geek.com Institute for Computational Engineering Sciences 201 E. 24th St. Stop C0200 The University of Texas at Austin Austin, TX 78712-1229 |
|
From: Fernando P. <fpe...@gm...> - 2013-04-04 23:41:43
|
Hi folks, I'm getting the following error from a clean build of master on an ubuntu 12.10 machine: longs[junk]> python -c 'import matplotlib._png' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so: undefined symbol: png_create_read_struct I hadn't seen anything like this recently, nor can I find similar reports, so I'm wondering if anyone knows what's going on, or if it's an error on my side. I can try to bisect it but I figured I'd ask first in case it's obvious to someone else... Cheers, f |